4 Replies Latest reply on Jul 31, 2006 3:50 PM by turksheadsw

    Problem with EJB3StandaloneBootstrap.shutdown() in ALPHA8

    dunks80 Newbie

      I just updated my tests to use embedded ejb alpha 8 from alpha 6. My first set of ejb tests run as normal. When I try to shutdown the the embedded ejb server i get the following errror....

      ...
      20:19:00,754 INFO [BaseTest] Shutting down embedded JBoss
      Jul 5, 2006 8:19:00 PM Repository retrieve
      FINER: name=jboss.ejb:service=EJBTimerService
      Jul 5, 2006 8:19:00 PM DefaultMBeanServerInterceptor getMBean
      
      FINER: jboss.ejb:service=EJBTimerService: Found no object
      20:19:00,858 INFO [MailServiceBean] Mail service 'java:/Mail' removed from JNDI
      Jul 5, 2006 8:19:00 PM Repository retrieve
      FINER: name=jboss.system:service=ServiceController
      Jul 5, 2006 8:19:00 PM DefaultMBeanServerInterceptor getMBean
      FINER: jboss.system:service=ServiceController: Found no object
      20:19:00,895 WARN [JDBCStateManager] Error in stop jboss.mq:service=StateManager
      javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
       at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:204)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.uninstallAction(KernelControllerContextActions.java:604)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.uninstall(KernelControllerContextActions.java:219)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58)
       at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:236)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:605)
       at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:575)
       at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:510)
       at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:194)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeployBean(AbstractKernelDeployer.java:367)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeployBeans(AbstractKernelDeployer.java:346)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeploy(AbstractKernelDeployer.java:149)
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.shutdown(EJB3StandaloneBootstrap.java:332)
      ...
      



      This creates a problem when I try to start up an new embedded server for the next set of tests b/c I'll get javax.management.InstanceAlreadyExistsException errors for the jboss.mq:service=PersistenceManager which couldn't be undeployed from the last set of tests. Anyone have any ideas?

        • 1. Re: Problem with EJB3StandaloneBootstrap.shutdown() in ALPHA
          dunks80 Newbie

          Upon furthur investigation it seems that this is not a problem unique to my test code. The mdb-standalone example in the emdedded-tutorials also fails to shutdown properly throwing the warning

           [java] WARN 06-07 08:09:59,992 (ServiceMBeanSupport.java:stop:210) -Error in stop jboss.mq:service=StateManager
           [java] javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
           [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
           [java] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
           [java] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
           [java] at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:204)
           [java] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
           [java] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
           [java] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
           [java] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
           [java] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
           [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
           [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.uninstallAction(KernelControllerContextActions.java:604)
           [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.uninstall(KernelControllerContextActions.java:219)
           [java] at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58)
           [java] at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:236)
           [java] at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:605)
           [java] at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:575)
           [java] at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:510)
           [java] at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:194)
           [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeployBean(AbstractKernelDeployer.java:367)
           [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeployBeans(AbstractKernelDeployer.java:346)
           [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.undeploy(AbstractKernelDeployer.java:149)
           [java] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.shutdown(EJB3StandaloneBootstrap.java:332)
           [java] at org.jboss.tutorial.mdbstandalone.Main.main(Main.java:60)
          


          The problem only seems to occur when trying to use jms with the embedded server. I don't see any mention of this problem on Jira. Is this a known bug?

          • 2. Re: Problem with EJB3StandaloneBootstrap.shutdown() in ALPHA
            dunks80 Newbie

            I reverted back to ALPHA7 and things are working again.

            • 3. Re: Problem with EJB3StandaloneBootstrap.shutdown() in ALPHA
              dunks80 Newbie

              Spoke too soon...

              Of course ALPHA7 still has the @javax.annotation.EJB so that causes problems where i have updated to the @javax.ejb.EJB annotation. Is anyone using ALPHA8 with any success?

              • 4. Re: Problem with EJB3StandaloneBootstrap.shutdown() in ALPHA
                turksheadsw Newbie

                I am getting the same issue.

                I'm not an expert on the JBoss Microkernel thingie, however, I think these exceptions are basically harmless.

                You can replace the ugly exceptions with less ugly warnings by pasting the following into your jboss-jms-beans.xml file right after the opening tag:

                 <bean name="jboss.system:service=ServiceController" class="org.jboss.system.ServiceController">
                 </bean>
                
                


                Now you'll see the following:

                WARN 31-07 15:42:23,702 (ServiceController.java:stop:480) -Ignoring request to stop nonexistent service: jboss.mq:service=StateManager
                WARN 31-07 15:42:23,702 (ServiceController.java:destroy:540) -Ignoring request to destroy nonexistent service: jboss.mq:service=StateManager
                WARN 31-07 15:42:23,717 (ServiceController.java:stop:480) -Ignoring request to stop nonexistent service: jboss.mq:service=PersistenceManager
                WARN 31-07 15:42:23,717 (ServiceController.java:destroy:540) -Ignoring request to destroy nonexistent service: jboss.mq:service=PersistenceManager