1 Reply Latest reply on Dec 7, 2001 8:02 AM by marc fleury

    JDK1.4 and J2EEManagement

    Adrian Brock Master

      Hi,

      Time to report this problem.

      I'm getting this error with JDK1.4beta

      01:10:56,163 DEBUG [org.jboss.deployment.ServiceDeployer] deploying with ServiceController mbean

      01:10:56,163 INFO [org.jboss.system.ServiceCreator] About to create the beanSingleJBoss:type=J2EEManagement,name=Manager
      01:10:56,293 ERROR [org.jboss.system.ServiceController] Could not create MBean: SingleJBoss:type=J2EEManagement,name=Manager
      javax.management.NotCompliantMBeanException: Getter isStateManageable cannot co-exist with getter getStateManageable
      at com.sun.management.jmx.Introspector.testConsistency(Introspector.java:328)
      at com.sun.management.jmx.Introspector.introspect(Introspector.java:264)
      at com.sun.management.jmx.Introspector.testCompliance(Introspector.java:134)
      at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:759)
      at org.jboss.system.ServiceCreator.create(ServiceCreator.java:85)
      at org.jboss.system.ServiceController.deploy(ServiceController.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
      at java.lang.reflect.Method.invoke(Method.java:327)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:756)
      at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:692)
      at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:206)
      at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:103)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
      at java.lang.reflect.Method.invoke(Method.java:327)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:199)
      at org.jboss.Main$1.run(Main.java:411)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:406)

      The problem is caused by J2EEManagementMBean having isStateManageable in both sub-interfaces

      javax.management.j2ee.J2EEManagement
      org.jboss.management.j2ee.J2EEManagedObjectMBean

      although both originally come from

      javax.management.j2ee.J2EEManagedObject

      It is also showing twice when I run javadoc.

      JMX RI seems to convert the first one it sees into
      a get and then gets confused.

      My question are, does this happen on JDK1.3? Is this a bug in JDK1.4 or JMX RI? Hopefully its the JDK, Sun don't support reference implementations.

      Regards,
      Adrian