Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-19721

The MBeanInvocationHandler fix in JIRA ENTESB-19690 was incomplete and it ends up with an UndeclaredThrowableException being thrown.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.11.1-GA
    • fuse-7.11-GA
    • Karaf
    • None

    Description

      The Karaf commit

      https://github.com/apache/karaf/commit/d93d71c8600ad36655c318a59dc6188fefe9d349

      does now make the InvocationTargetException being thrown in the end (the PrivilegedActionException wrapping it, a few lines after in the other catch the pae.getCause() value ends up being the InvocationTargetException.

      InvocationTargetException being a checked exception, this is recognized not being declared by the invoked method, ending up in a UndeclaredThrowableException being thrown.

      Karaf should update

      https://github.com/apache/karaf/blob/main/management/server/src/main/java/org/apache/karaf/management/internal/MBeanInvocationHandler.java

      around the catch clause in line 74 so that in case the cause being a InvocationTargetException, it throws that exception cause.

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              rhn-support-qluo Joe Luo
              Petr Pinkas Petr Pinkas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: