[ 
https://issues.apache.org/jira/browse/KARAF-7234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403678#comment-17403678
 ] 

ASF subversion and git services commented on KARAF-7234:
--------------------------------------------------------

Commit 0b55c1743e47fb39c5e6999270eb268855bf7902 in karaf's branch 
refs/heads/main from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=0b55c17 ]

Merge pull request #1416 from jbonofre/KARAF-7234

[KARAF-7234] Throw JMX exception in order for client to get it

> JMX - exceptions are ignored
> ----------------------------
>
>                 Key: KARAF-7234
>                 URL: https://issues.apache.org/jira/browse/KARAF-7234
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.1, 4.3.2
>            Reporter: Rastislav Papp
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>
> 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)

Reply via email to