Exception in DynamicMBean.getMBeanInfo() gets absorbed into less helpful exception

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 6
    • Component/s: core-svc
    • None
    • b43
    • generic
    • generic

      If a DynamicMBean (including an instance of StandardMBean or a subclass) throws an exception from its getMBeanInfo() method, this causes registration of that DynamicMBean to fail with a NotCompliantMBeanException. The original exception is lost, except for its detail message. In particular you cannot see its stack trace or nested exception.

      The specific unhelpful exception message was:
      javax.management.NotCompliantMBeanException: Can't obtain MBeanInfo from
      DynamicMBean: javax.management.RuntimeErrorException: Error thrown in
      operation dottedNameGet
          at
      com.sun.jmx.mbeanserver.BaseMetaDataImpl.getMBeanClassName(BaseMetaDataImpl.java:163)
      [...]
      ###@###.### 2005-06-07 10:36:13 GMT

            Assignee:
            Luis-Miguel Alventosa (Inactive)
            Reporter:
            Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: