Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-1170

JMX operations eat underlying exception.

XMLWordPrintable

    • Release Notes

      Inside of both MBeanSeverImpl and the RawDynamicInvoker, exceptions are being eaten, when the getMBeanInfo method is being called. The only thing thrown is the NotCompliantMBeanException with a canned exception message. The underlying exception can be anything from a classloader issue, to just a plain old CNF Exception. This code needs to be changed so that the underlying exception is propagated out to be seen in the log.

      the code is...
      try

      { this.info = getMBeanInfo(); }
      catch (Exception e)
      { throw new NotCompliantMBeanException("Cannot obtain MBeanInfo, for: " + oname); }

      which just eats the underlying Exception.


      This should be

      try
      { this.info = getMBeanInfo(); }

      catch (Exception e)

      { throw new NotCompliantMBeanException("Cannot obtain MBeanInfo, for: " + oname, e); }

      And NotCompliantMBeanException should be chaned to take the nested exception.

              dandread1@redhat.com Dimitrios Andreadis
              rhn-support-jhowell William Howell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: