You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Grzegorz Grzybek (Jira)" <ji...@apache.org> on 2022/09/16 06:48:00 UTC
[jira] [Updated] (KARAF-7550) MBeanInvocationHandler should throw the cause of InvocationTargetException, not ITE itself
[ https://issues.apache.org/jira/browse/KARAF-7550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grzegorz Grzybek updated KARAF-7550:
------------------------------------
Fix Version/s: 4.3.8
4.4.2
> 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
> Fix For: 4.3.8, 4.4.2
>
>
> 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)