5 Replies Latest reply: Jan 23, 2012 5:30 AM by r.reimann RSS

    NullPointerException inside RaXmlDeploymentProcessor after moving a resource adapter into EAR

    r.reimann Newbie

      Due to classloader issues at runtime like the one described in this post http://alexsmirnov.wordpress.com/2011/05/18/neo4j-java-ee-connector/#comment-63 i tried to move my RAR into an EAR. This change solved the runtime classloader issues but now i'm getting the exception attached below during the deployment of the EAR that contains my RAR. When i switch back to standalone deployment of the RAR the deployment exception disapears.

       

      Despite this exception/error message the EAR is getting deployed and the connector is accessible. Any hint on how i could resolve the exception during deployment would be appreciated. 

      I attached my resource adapter config from standalone-full.xml and the ra.xml.

       

      Regards

      Robert

       

      Deployment Log:

      14:05:25,220 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-13) Starting deployment of "example-service.ear"
      14:05:25,370 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) Starting deployment of "example-connector.rar"
      14:05:25,370 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "example-service-ejb.jar"
      14:05:25,509 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-8) JNDI bindings for session bean named ExampleConnectorBean 
      in deployment unit subdeployment "example-service-ejb.jar" of deployment "example-service.ear" are as follows:
        java:global/example-service/example-service-ejb/ExampleConnectorBean!com.example.adapter.example.common.ExampleConnectorRemote
        java:app/example-service-ejb/ExampleConnectorBean!com.example.adapter.example.common.ExampleConnectorRemote
        java:module/ExampleConnectorBean!com.example.adapter.example.common.ExampleConnectorRemote
        java:global/example-service/example-service-ejb/ExampleConnectorBean!com.example.adapter.example.common.ExampleConnectorLocal
        java:app/example-service-ejb/ExampleConnectorBean!com.example.adapter.example.common.ExampleConnectorLocal
        java:module/ExampleConnectorBean!com.example.adapter.example.common.ExampleConnectorLocal
      
      14:05:25,560 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-14) JBAS010406: Registered connection factory java:/eis/com.example.adapter.example.connector
      14:05:25,561 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-14) IJ020002: Deployed: file:/Users/rr/develop/jboss71CR1b/standalone/tmp/vfs/deploymente3aa587807deddb/example-connector.rar-fb7497907a122f03/contents/
      14:05:25,562 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-5) JBAS010401: Bound JCA ConnectionFactory [java:/eis/com.example.adapter.example.connector]
      14:05:25,562 ERROR [org.jboss.msc.service] (MSC service thread 1-16) MSC00002: Invocation of listener "org.jboss.as.connector.deployers.processors.RaXmlDeploymentProcessor$1@7fec0e19" failed: java.lang.NullPointerException
        at org.jboss.as.connector.deployers.processors.RaXmlDeploymentProcessor$1.transition(RaXmlDeploymentProcessor.java:186) [jboss-as-connector-7.1.0.CR1b.jar:7.1.0.CR1b]
        at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1429) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:49) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1952) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
        at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]
      
      14:05:25,644 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "example-service.ear"
      

       

       

       

      EAR structure:

      example-service.ear
      |
      |____lib
      | |____example-interface.jar
      |____META-INF
      | |____application.xml
      | |____jboss-app.xml
      | |____jboss-deployment-structure.xml
      | |____MANIFEST.MF
      |____example-connector.rar
      | |____META-INF
      | | |____MANIFEST.MF
      | | |____ra.xml
      | |____example-connector-jar.jar
      |____example-service-ejb.jar