JBoss 4.2.3 with JDK 1.6 throws javax.management.NotCompliantMBeanException during deployment
deepak.techie Apr 12, 2010 7:32 AMHi,
I am working on migration of our product from JDK 1.5 to 1.6.
When we ran the JBoss 4.2.3 server on JDK 1.6 it throws the following exception:
[com.j2fe.management.JVMStats] ERROR - Starting failed baseinfradev:service=JVMStats,j2eeApplication=baseinfradev
javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object
at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:102)
at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:182)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
at com.j2fe.management.JVMStats.registerJVM(JVMStats.java:55)
at com.j2fe.management.JVMStats.startService(JVMStats.java:36)
at com.j2fe.jmx.ServiceSupport.start(ServiceSupport.java:413)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.j2fe.jmx.ServiceInvoker.invoke(ServiceInvoker.java:353)
at com.j2fe.jmx.ServiceInvoker.invoke(ServiceInvoker.java:340)
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.j2fe.misc.ClassUtils$ReflectionHandler.invoke(ClassUtils.java:215)
at com.j2fe.jmx.ServiceSupport$ContextExecuter.invoke(ServiceSupport.java:1077)
at $Proxy62.invoke(Unknown Source)
at com.j2fe.jmx.ServiceSupport$2.doRetrieve(ServiceSupport.java:1028)
at com.j2fe.jmx.ServiceSupport$InvokeMethodSecure.run(ServiceSupport.java:1409)
at com.j2fe.security.JBossSecurityPropagation.execute(JBossSecurityPropagation.java:149)
at com.j2fe.jmx.ServiceSupport.invoke(ServiceSupport.java:1031)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at com.j2fe.jmx.ServiceStarter.execute(ServiceStarter.java:249)
at com.j2fe.jmx.ServiceStarter.start(ServiceStarter.java:236)
at com.j2fe.jmx.ServiceStarter.startServices(ServiceStarter.java:167)
at com.j2fe.jmx.ServiceStarter.startSecureServices(ServiceStarter.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.j2fe.jmx.ServiceInvoker.invoke(ServiceInvoker.java:353)
at com.j2fe.jmx.ServiceInvoker.invoke(ServiceInvoker.java:340)
The JVMStats class is actually trying to register the ManagementFactory.getClassLoadingMXBean().
Our product gets deployed without any issues on JBoss 4.2.3 with JDK 1.5.
We tried to deploy the same application on JBoss 6.1 M2, we got the same exception as above.
Please let me know if anybody has any clue why this gets failed please let me know.
Thanks,
Deepak