1 Reply Latest reply on Feb 21, 2007 8:29 PM by Oliver Normann

    -Error installing to Instantiated: name=jms-rar-DeploymentIn

    Oliver Normann Newbie

      Hello, when i'm trying to run a JUnitTest in Embeddable RC9 i get the following exception:

      INFO 21-02 11:47:21,015 (Log4JLogger.java:info:94) -
      INFO 21-02 11:47:21,093 (Log4JLogger.java:info:94) ---- Bootstrapping Embedded JBoss ---
      DEBUG 21-02 11:47:21,718 (KernelFactory.java:assembleNewKernel:86) -Starting JBoss Kernel construction...
      DEBUG 21-02 11:47:22,062 (KernelFactory.java:assembleNewKernel:112) -Completed JBoss Kernel construction. Duration: 344 milliseconds
      WARN 21-02 11:47:23,921 (BeanSchemaBinding.java:init:233) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
      DEBUG 21-02 11:47:24,125 (BeanXMLDeployer.java:deploy:91) -Parsing file:/C:/_SERVER/jboss-EJB-3.0_Embeddable_ALPHA_9/conf/embedded-jboss-beans.xml took 1672 milliseconds
      DEBUG 21-02 11:47:25,171 (UserTransactionImpl.java:start:61) -new UserTx: org.jboss.ejb3.embedded.UserTransactionImpl@15c07d8
      INFO 21-02 11:47:25,703 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS'
      DEBUG 21-02 11:47:25,703 (BeanXMLDeployer.java:deploy:98) -Deploying file:/C:/_SERVER/jboss-EJB-3.0_Embeddable_ALPHA_9/conf/embedded-jboss-beans.xml took 3250 milliseconds
      DEBUG 21-02 11:47:27,140 (BeanXMLDeployer.java:deploy:91) -Parsing file:/C:/_SERVER/jboss-EJB-3.0_Embeddable_ALPHA_9/conf/jboss-jms-beans.xml took 94 milliseconds
      DEBUG 21-02 11:47:27,734 (ServiceMBeanSupport.java:jbossInternalCreate:256) -Creating JDBC2PersistenceManager
      DEBUG 21-02 11:47:27,750 (ServiceMBeanSupport.java:jbossInternalCreate:269) -Created JDBC2PersistenceManager
      DEBUG 21-02 11:47:27,765 (ServiceMBeanSupport.java:jbossInternalStart:285) -Starting JDBC2PersistenceManager
      DEBUG 21-02 11:47:27,765 (PersistenceManager.java:startService:1765) -Creating Schema
      DEBUG 21-02 11:47:27,812 (IdleRemover.java:internalRegisterPool:89) -internalRegisterPool: registering pool with interval 100000 old interval: 9223372036854775807
      DEBUG 21-02 11:47:27,828 (IdleRemover.java:internalRegisterPool:100) -internalRegisterPool: about to notify thread: old next: 1172054897828, new next: 1172054897828
      DEBUG 21-02 11:47:31,515 (PersistenceManager.java:startService:1768) -Resolving uncommited TXS
      DEBUG 21-02 11:47:31,562 (ServiceMBeanSupport.java:jbossInternalStart:301) -Started JDBC2PersistenceManager
      ERROR 21-02 11:47:31,656 (AbstractController.java:incrementState:440) -Error installing to Instantiated: name=jms-rar-DeploymentInfo state=Described
      java.lang.NullPointerException
       at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:201)
       at org.jboss.ejb3.embedded.resource.Ejb3DeploymentInfo.<init>(Ejb3DeploymentInfo.java:53)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:136)
       at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:103)
       at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:75)
       at org.jboss.kernel.plugins.dependency.InstantiateAction.installAction(InstantiateAction.java:52)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:97)
       at de.tfh_berlin.j2ee.moam.business.ejb.AbstractEJB3Test.startupEmbeddedJboss(AbstractEJB3Test.java:66)
       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.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
       at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
       at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
       at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
       at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
      DEBUG 21-02 11:47:31,734 (ServiceMBeanSupport.java:jbossInternalCreate:256) -Creating JDBCStateManager
      DEBUG 21-02 11:47:31,734 (ServiceMBeanSupport.java:jbossInternalCreate:269) -Created JDBCStateManager
      DEBUG 21-02 11:47:32,046 (PersistenceManager.java:internalRestoreQueue:698) -Restored 0 message(s) to: QUEUE.DLQ 0 need recovery.
      INFO 21-02 11:47:32,062 (DestinationMBeanSupport.java:setJNDIName:256) -Bound to JNDI name: queue/DLQ
      DEBUG 21-02 11:47:34,796 (BeanXMLDeployer.java:deploy:98) -Deploying file:/C:/_SERVER/jboss-EJB-3.0_Embeddable_ALPHA_9/conf/jboss-jms-beans.xml took 7750 milliseconds
      FATAL 21-02 11:47:34,796 (Log4JLogger.java:fatal:129) -Failure during bootstrap of Embedded JBoss
      java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:
      
      *** DEPLOYMENTS IN ERROR: Name -> Error
      jms-rar-DeploymentInfo -> java.lang.NullPointerException
      
      *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      jboss.jca:service=RARDeployment, name='jms-ra.rar' -> jms-rar-WorkManager{Configured:Installed}, jms-rar-DeploymentInfo{Instantiated:**ERROR**}
      
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:103)
       at de.tfh_berlin.j2ee.moam.business.ejb.AbstractEJB3Test.startupEmbeddedJboss(AbstractEJB3Test.java:66)
       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.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
       at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
       at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
       at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
       at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
      Caused by: java.lang.IllegalStateException: Incompletely deployed:
      
      *** DEPLOYMENTS IN ERROR: Name -> Error
      jms-rar-DeploymentInfo -> java.lang.NullPointerException
      
      *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      jboss.jca:service=RARDeployment, name='jms-ra.rar' -> jms-rar-WorkManager{Configured:Installed}, jms-rar-DeploymentInfo{Instantiated:**ERROR**}
      
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:99)
       ... 13 more
      INFO 21-02 11:47:34,812 (Log4JLogger.java:info:94) -Completed Bootstrapping of Embedded JBoss (13719ms)
      INFO 21-02 11:47:34,859 (Log4JLogger.java:info:94) ---- Shutting down Embedded JBoss ---
      INFO 21-02 11:47:34,875 (Queue.java:stop:116) -Unbinding JNDI name: queue/DLQ
      DEBUG 21-02 11:47:34,875 (JMSDestinationManager.java:closeDestination:724) -Closing destination QUEUE.DLQ
      DEBUG 21-02 11:47:34,890 (BasicThreadPool.java:stop:144) -stop, immediate=false
      DEBUG 21-02 11:47:35,062 (ServiceMBeanSupport.java:jbossInternalDestroy:341) -Destroying JDBCStateManager
      DEBUG 21-02 11:47:35,062 (ServiceMBeanSupport.java:jbossInternalDestroy:352) -Destroyed JDBCStateManager
      DEBUG 21-02 11:47:35,078 (ServiceMBeanSupport.java:jbossInternalStop:311) -Stopping JDBC2PersistenceManager
      DEBUG 21-02 11:47:35,093 (MessageCache.java:run:290) -Thread exiting.
      DEBUG 21-02 11:47:35,093 (ServiceMBeanSupport.java:jbossInternalStop:327) -Stopped JDBC2PersistenceManager
      DEBUG 21-02 11:47:35,109 (ServiceMBeanSupport.java:jbossInternalDestroy:341) -Destroying JDBC2PersistenceManager
      DEBUG 21-02 11:47:35,109 (ServiceMBeanSupport.java:jbossInternalDestroy:352) -Destroyed JDBC2PersistenceManager
      INFO 21-02 11:47:35,250 (Log4JLogger.java:info:94) -Embedded JBoss Shutdown Complete
      



      Anyone got this exception? I think it has something to do with jboss-jms-beans.xml:

       <bean name="jms-rar-WorkManager" class="org.jboss.ejb3.embedded.resource.JBossWorkManager">
       </bean>
      
       <bean name="jms-rar-DeploymentInfo" class="org.jboss.ejb3.embedded.resource.Ejb3DeploymentInfo">
       <constructor>
       <parameter class="java.lang.String">jms-ra.rar"</parameter>
       <parameter class="java.lang.String">javax.jms.MessageListener</parameter>
       <parameter class="java.lang.String">org.jboss.resource.adapter.jms.inflow.JmsActivationSpec</parameter>
       </constructor>
       </bean>
      
      original:
       <bean name="jboss.jca:name='jms-ra.rar', service=RARDeployment" class="org.jboss.ejb3.embedded.resource.RARDeployment">
      changed to:
      <bean name="jboss.jca:service=RARDeployment, name='jms-ra.rar'" class="org.jboss.ejb3.embedded.resource.RARDeployment">
       <constructor>
       <parameter class="org.jboss.deployment.DeploymentInfo">
       <inject bean="jms-rar-DeploymentInfo"/>
       </parameter>
       </constructor>
       <property name="workManager"><inject bean="jms-rar-WorkManager"/></property>
       </bean>
      


        • 1. Re: -Error installing to Instantiated: name=jms-rar-Deployme
          Oliver Normann Newbie

          solved it OMG... Forget about the changes in jboss-jms-beans.xml above.
          I thought there is a failure like the "xAConnectionJNDIRef"-property in
          ALPHA_8 and this could be the cause for the NPE.

          I use JUnit 4.1 and JBoss_Embeddable_ALPHA_9 with /conf and the jars in /lib in the classpath.
          I only forgot to add jms-ra.rar not "jar" grrr** and jcainflow.rar to the classpath.

          I didn't notice the rar-Extension in the declaration of the "jms-rar-DeploymentInfo"-bean the whole time.

          Lucky