4 Replies Latest reply on Jul 9, 2006 5:53 PM by starksm64

    JMX-console fails with mustang?

    elkner

      Not sure, what the real problem is, however, if I start Jboss 4.0.4GA with mustang instead of tiger, everything runs fine except the JMX console. Because of a "com.sun.management:type=HotSpotDiagnostic is not registered" exception the complete jmx-console is unusable.

      I made the following fix:

      --- jboss/varia/src/main/org/jboss/jmx/adaptor/control/Server.java.orig Sat Oct 29 07:06:40 2005
      +++ jboss/varia/src/main/org/jboss/jmx/adaptor/control/Server.java Thu Jun 29 00:09:52 2006
      @@ -30,6 +30,7 @@
       import java.util.TreeMap;
       import javax.management.Attribute;
       import javax.management.AttributeList;
      +import javax.management.InstanceNotFoundException;
       import javax.management.JMException;
       import javax.management.MBeanInfo;
       import javax.management.MBeanAttributeInfo;
      @@ -75,7 +76,18 @@
       while( objectNamesIter.hasNext() )
       {
       ObjectName name = (ObjectName) objectNamesIter.next();
      - MBeanInfo info = server.getMBeanInfo(name);
      + MBeanInfo info = null;
      + try {
      + info = server.getMBeanInfo(name);
      + } catch (InstanceNotFoundException inf) {
      + log.warn(inf.getLocalizedMessage());
      + if (log.isDebugEnabled()) {
      + log.debug("getDomainData", inf);
      + }
      + }
      + if (info == null) {
      + continue;
      + }
       String domainName = name.getDomain();
       MBeanData mbeanData = new MBeanData(name, info);
       DomainData data = (DomainData) domainData.get(domainName);

      Is it possible to apply the patch to the main branch ?