Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6281446

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: