1 Reply Latest reply on Jan 30, 2006 8:20 AM by Torbjørn Staff

    @Management deployment error

    Torbjørn Staff Newbie

      2006-01-30 11:16:40,729 WARN [org.jboss.system.ServiceController]
      Problem starting service jboss.j2ee:service=EJB3,name=InitializeDat abaseMBean
      java.lang.RuntimeException: Problem registering @Management interface for @Service class InitializeDatabaseMBean
      at
      org.jboss.ejb3.service.ServiceContainer.registerManagementInterface
      (ServiceContainer.java:309)
      at org.jboss.ejb3.service.ServiceContainer.start
      (ServiceContainer.java:70)
      at org.jboss.ejb3.service.ServiceManager.startService
      (ServiceManager.java:97)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart
      (ServiceMBeanSupport.java:274)
      at
      org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle
      (ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke
      (DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke
      (ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start
      (ServiceController.java:428)
      at org.jboss.system.ServiceController.start
      (ServiceController.java:446)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke
      (DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
      176)
      at $Proxy95.start(Unknown Source)
      at org.jboss.ejb3.Ejb3JmxDeployment.start
      (Ejb3JmxDeployment.java:258)
      at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:39)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart
      (ServiceMBeanSupport.java:274)
      at
      org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle
      (ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke
      (DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke
      (ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start
      (ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke
      (DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
      176)
      at $Proxy10.start(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:228)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke
      (AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at
      org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
      (ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke
      (DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
      176)
      at $Proxy11.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:
      989)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:
      979)
      at org.jboss.deployment.MainDeployer.deploy
      (MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy
      (MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke
      (DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke
      (AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at
      org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
      (ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
      176)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy
      (URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan
      (URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner
      $ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner.startService
      (AbstractDeploymentScanner.java:265)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart
      (ServiceMBeanSupport.java:274)
      at
      org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle
      (ServiceMBeanSupport.java:230)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke
      (ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start
      (ServiceController.java:428)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
      176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:
      989)
      at org.jboss.deployment.MainDeployer.deploy
      (MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy
      (MainDeployer.java:753)
      at org.jboss.deployment.MainDeployer.deploy
      (MainDeployer.java:737)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke
      (AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at
      org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
      (ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke
      (AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke
      (MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
      176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart
      (ServerImpl.java:453)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:
      330)
      at org.jboss.Main.boot(Main.java:187)
      at org.jboss.Main$1.run(Main.java:438)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.RuntimeException: Error creating MBeanProxy:
      jboss.system:service=ServiceController
      at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:365)
      at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:
      65)
      at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:
      344)
      at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:
      308)
      at org.jboss.ejb3.service.ServiceMBeanDelegate.register
      (ServiceMBeanDelegate.java:69)
      at
      org.jboss.ejb3.service.ServiceContainer.registerManagementInterface
      (ServiceContainer.java:303)
      ... 137 more
      Caused by: javax.management.InstanceNotFoundException:
      jboss.system:service=ServiceController
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean
      (DefaultMBeanServerInterceptor.java:1010)
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo
      (DefaultMBeanServerInterceptor.java:1303)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo
      (JmxMBeanServer.java:903)
      at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:357)
      ... 142 more

        • 1. Re: @Management deployment error
          Torbjørn Staff Newbie

          Ooops.. not the idea to send off the whole stacktrace there ;-)

          Anyway, we are having some problems deploying EJB3 style MBeans in our test (soon to be production) environment. We're on JBoss 4.0.3 SP1 patched to EJB3 RC3. Everything deploys and works fine on my local machine (same setup), but deployment fails on the test server (Linux Ubuntu Java 1.5.06, 64-bit hardware) with the error message "Problem registering @Management interface for @Service class" (sorry for the long stacktrace above)

          Bean class is annotated with @Service, @Management and @Depends. No annotation on the interface. Any ideas anyone?

          If this is a bug, is it likely to be fixed with the EJB3 RC4 release? Otherwise we might be forced to convert to old-style MBeans.

          Thanks in advance for any valuable input :-)