Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5933

JMX operations eat underlying exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBossAS-5.0.0.CR2
    • JBossAS-4.2.3.GA
    • JMX
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: