7 Replies Latest reply on Oct 19, 2007 1:18 AM by Scott Stark

    Integration on JBoss5: NullPointerException deploying jmsra.

    Clebert Suconic Master

      Something was changed on the Application Server.

      When I execute the org.jboss.test.jbossmessaging.ra.RaJMSSessionUnitTestCase I'm getting a NPE, because of the deployment of /extra/clebert/workspaces/svn-trunk-jboss/trunk/testsuite/output/lib/jmsra.jar

      12:03:59,760 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/extra/clebert/workspaces/svn-trunk-jboss/trunk/testsuite/output/lib/jmsra.jar state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/extra/clebert/workspaces/svn-trunk-jboss/trunk/testsuite/output/lib/jmsra.jar
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:728)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:669)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:495)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:354)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:812)
       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:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       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:668)
       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.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:270)
       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:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
       at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
       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:157)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
       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:668)
       at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:815)
       at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:416)
       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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
       at sun.rmi.transport.Transport$1.run(Transport.java:153)
       at java.security.AccessController.doPrivileged(Native Method)
       at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
       at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
       at org.jboss.metadata.ejb.jboss.ContainerConfigurationsMetaDataWrapper.<init>(ContainerConfigurationsMetaDataWrapper.java:60)
       at org.jboss.metadata.ejb.jboss.JBossMetaDataWrapper.<init>(JBossMetaDataWrapper.java:57)
       at org.jboss.deployment.JBossEjbParsingDeployer.parse(JBossEjbParsingDeployer.java:104)
       at org.jboss.deployment.JBossEjbParsingDeployer.parse(JBossEjbParsingDeployer.java:44)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:223)
       ... 65 more
      


        • 1. Re: Integration on JBoss5: NullPointerException deploying jm
          Scott Stark Master

          Yes, see the metadata discussion. The trunk as been switched to use the jboss-metadata project, which uses jaxb style processing. This means unspecified elements will be null rather than empty was was the case before.

          • 2. Re: Integration on JBoss5: NullPointerException deploying jm
            Clebert Suconic Master

            Looking at the source code, this NPE is because of the lacking of a primary key:

             for(String key : primary.keySet()) <<-- here
             {
            



            A primary key wouldn't mean anything here. Or we change the behavior of nulls on empty tags, or we change the metadata to test for nulls on those things.

            • 3. Re: Integration on JBoss5: NullPointerException deploying jm
              Clebert Suconic Master

              The null pointer exception is gone, but whenever I deploy a MDB on trunk I get this error now.

              12:01:04,027 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:binding=message-driven-bean,jndiName=local/MDBExample@6173902,plugin=invoker,service=EJB state=Create mode=Manual requiredState=Installed
              org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData@718e31[name=destination descriptions=[DescriptionMetaData@13864d9[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(maxMessages=1), ActivationConfigProperty(DLQMaxResent=10), ActivationConfigProperty(DLQJNDIName=queue/DLQ), ActivationConfigProperty(useDLQ=true), ActivationConfigProperty(keepAlive=30000), ActivationConfigProperty(providerAdapterJNDI=DefaultJMSProvider), ActivationConfigProperty(maxSession=15), ActivationConfigProperty(minSession=1)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
               at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:95)
               at org.jboss.resource.deployers.RARDeployment.createActivationSpec(RARDeployment.java:312)
               at org.jboss.resource.deployers.RARDeployment.internalInvoke(RARDeployment.java:276)
               at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
               at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
               at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:448)
               at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.startService(JBossMessageEndpointFactory.java:197)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:299)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.GeneratedMethodAccessor3.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:157)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
               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:668)
               at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:167)
               at $Proxy4.start(Unknown Source)
               at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
               at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
               at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
               at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:239)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
               at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
               at org.jboss.system.ServiceController.start(ServiceController.java:431)
               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:157)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
               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:668)
               at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:194)
               at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:273)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:299)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.GeneratedMethodAccessor3.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:157)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
               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:668)
               at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:167)
               at $Proxy4.start(Unknown Source)
               at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
               at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
               at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
               at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:239)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
               at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
               at org.jboss.system.ServiceController.start(ServiceController.java:431)
               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:157)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
               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:668)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy62.start(Unknown Source)
               at org.jboss.ejb.EjbModule.startService(EjbModule.java:477)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:299)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.GeneratedMethodAccessor3.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:157)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
               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:668)
               at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:167)
               at $Proxy4.start(Unknown Source)
               at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
               at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
               at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
               at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:239)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
               at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
               at org.jboss.system.ServiceController.start(ServiceController.java:431)
               at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:149)
               at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:107)
               at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
               at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:65)
               at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:728)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:749)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:781)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:669)
               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:495)
               at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:354)
               at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
               at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
               at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
               at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
               at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
               at java.lang.Thread.run(Thread.java:595)
              12:01:04,044 WARN [HDScanner] Failed to process changes
              org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
              
              *** CONTEXTS IN ERROR: Name -> Error
              
              jboss.j2ee:binding=message-driven-bean,jndiName=local/MDBExample@6173902,plugin=invoker,service=EJB -> org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData@718e31[name=destination descriptions=[DescriptionMetaData@13864d9[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(maxMessages=1), ActivationConfigProperty(DLQMaxResent=10), ActivationConfigProperty(DLQJNDIName=queue/DLQ), ActivationConfigProperty(useDLQ=true), ActivationConfigProperty(keepAlive=30000), ActivationConfigProperty(providerAdapterJNDI=DefaultJMSProvider), ActivationConfigProperty(maxSession=15), ActivationConfigProperty(minSession=1)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
              
              
               at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:620)
               at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:393)
               at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:291)
               at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
               at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
               at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
               at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
               at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
               at java.lang.Thread.run(Thread.java:595)
              


              • 5. Re: Integration on JBoss5: NullPointerException deploying jm
                Clebert Suconic Master


                Scott fixed the NPEs, but now we have another problem.

                Something is broken on ejb-links.. and that's why those destinations were not working. The only test that was supposed to fail on that list is SecurityTest (because of some change made by Anil.. all the others are supposed to work).


                I deployed the destination plus jmsra.jar... and when I look at the jndi-tree I see:

                Ejb 2.1 Module: "jmsra.jar"
                
                java:comp namespace of the JMSSession bean:
                
                Failed on lookup, javax.naming.NameNotFoundException: comp not bound
                
                javax.naming.NameNotFoundException: comp not bound
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
                 at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
                 at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
                 at org.jboss.naming.JNDIView.list(JNDIView.java:182)
                 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:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
                 at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:187)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:285)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
                
                
                java:comp namespace of the QueuePublisher bean:
                
                Failed on lookup, javax.naming.NameNotFoundException: comp not bound
                
                javax.naming.NameNotFoundException: comp not bound
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
                 at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
                 at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
                 at org.jboss.naming.JNDIView.list(JNDIView.java:182)
                 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:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
                 at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:187)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:285)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
                
                
                java:comp namespace of the TopicPublisher bean:
                
                Failed on lookup, javax.naming.NameNotFoundException: comp not bound
                
                javax.naming.NameNotFoundException: comp not bound
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
                 at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
                 at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
                 at org.jboss.naming.JNDIView.list(JNDIView.java:182)
                 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:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
                 at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:187)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:285)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
                
                
                
                
                


                • 6. Re: Integration on JBoss5: NullPointerException deploying jm
                  Scott Stark Master

                  I see the problem and am fixing it.

                  • 7. Re: Integration on JBoss5: NullPointerException deploying jm
                    Scott Stark Master

                    With the latest metadata update all but the security tests are passing. I still see a lookup error from the TopicAdapter, but this is because of a race condition between shutting down the container on undeploy and some outstanding msgs.

                    tests-jbossmessaging-unit:
                     [junit] Running org.jboss.test.jbossmessaging.perf.JMSPerfStressTestCase
                     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 6.065 sec
                     [junit] Running org.jboss.test.jbossmessaging.perf.JMSReconnectStressTestCase
                     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.305 sec
                     [junit] Running org.jboss.test.jbossmessaging.perf.ReceiveNackClientStressTestCase
                     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.819 sec
                     [junit] Running org.jboss.test.jbossmessaging.perf.SendReplyPerfStressTestCase
                     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2.124 sec
                     [junit] Running org.jboss.test.jbossmessaging.ra.RaJMSSessionUnitTestCase
                     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 7.67 sec
                     [junit] Running org.jboss.test.jbossmessaging.ra.RaQueueUnitTestCase
                     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 5.76 sec
                     [junit] Running org.jboss.test.jbossmessaging.ra.RaSyncRecUnitTestCase
                     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.671 sec
                     [junit] Running org.jboss.test.jbossmessaging.ra.RaTopicUnitTestCase
                     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 5.624 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.ConcurrentDeliveryUnitTestCase
                     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 21.609 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.ConnectionConsumerUnitTestCase
                     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.985 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.JBossMessagingJoramUnitTestCase
                     [junit] Tests run: 198, Failures: 0, Errors: 0, Time elapsed: 21.313 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.JBossSessionRecoverUnitTestCase
                     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 13.526 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.MessageBodyUnitTestCase
                     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 10.214 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.MessageTypesUnitTestCase [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 1.96 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.RollBackUnitTestCase
                     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 5.205 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.SecurityUnitTestCase
                     [junit] Tests run: 30, Failures: 9, Errors: 0, Time elapsed: 17.217 sec
                     [junit] Test org.jboss.test.jbossmessaging.test.SecurityUnitTestCase FAILED [junit] Running org.jboss.test.jbossmessaging.test.TemporarySessionConnectionUnitTestCase
                     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.608 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.UnackedUnitTestCase
                     [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 29.137 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.XAResourceUnitTestCase
                     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.674 sec
                     [junit] Running org.jboss.test.jbossmessaging.test.XAResourceWrapperSmokeUnitTestCase
                     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.338 sec
                    
                    BUILD SUCCESSFUL
                    Total time: 3 minutes 5 seconds