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

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

Commit 8f7b8dfc6c3da5718b4922b7c92b11b43e978898 in karaf's branch 
refs/heads/karaf-4.3.x from Grzegorz Grzybek
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=8f7b8dfc6c ]

[KARAF-7550] Throw the actual target exception of InvocationTargetException in 
MBean invocation

(cherry picked from commit 488d676f796ad3e3bb60818cc7d25edddf2b8576)


> MBeanInvocationHandler should throw the cause of InvocationTargetException, 
> not ITE itself
> ------------------------------------------------------------------------------------------
>
>                 Key: KARAF-7550
>                 URL: https://issues.apache.org/jira/browse/KARAF-7550
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.3.3
>            Reporter: Grzegorz Grzybek
>            Assignee: Grzegorz Grzybek
>            Priority: Major
>
> KARAF-7234 fixed KARAF-6654 by throwing the exception from MBean invocation 
> instead of returning null.
> However, the exception thrown by 
> {{org.apache.karaf.management.internal.MBeanInvocationHandler#invoke()}} 
> should be the cause of {{java.lang.reflect.InvocationTargetException}}, not 
> this exception itself.
> Now, jconsole gets {{UndeclaredThrowableException}} instead of the actual 
> exception.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to