You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Rastislav Papp (Jira)" <ji...@apache.org> on 2021/08/05 12:59:00 UTC

[jira] [Created] (KARAF-7234) JMX -

Rastislav Papp created KARAF-7234:
-------------------------------------

             Summary: JMX - 
                 Key: KARAF-7234
                 URL: https://issues.apache.org/jira/browse/KARAF-7234
             Project: Karaf
          Issue Type: Bug
          Components: karaf
    Affects Versions: 4.3.2, 4.3.1
            Reporter: Rastislav Papp


Fix of KARAF-6654 causes all JMX operations to hide exceptions thrown to client. In other words, whenever I call karaf operation via JMX, and an exception is thrown, I do not see this exception happening. 

Reason is this code by [~ffang] in {{org.apache.karaf.management.internal.MBeanInvocationHandler}}:

{code:java}
try {
    return method.invoke(wrapped, args);
} catch (InvocationTargetException e) {
    return null;
}
{code}

It does exactly what it says, ignores the exception and returns null. My JMX client gets the null value, and no exception. 





--
This message was sent by Atlassian Jira
(v8.3.4#803005)