DemoATRecoveryModule.register() throws NPE on EAP6.1
igarashitm Sep 11, 2013 2:18 AMHi folks,
I'm now trying to deploy xts-demo on EAP 6.1 with using standalone-xts.xml copied from docs/examples/configs directory, but it fails with following errors:
15:08:01,270 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/xts-demo-webservices]] (ServerService Thread Pool -- 70) JBWEB000287: Exception sending context initialized event to listener instance of class com.jboss.jbosstm.xts.demo.services.recovery.DemoATRecoveryListener: java.lang.NullPointerException
at com.jboss.jbosstm.xts.demo.services.recovery.DemoATRecoveryModule.register(DemoATRecoveryModule.java:42) [xts-demo-core-4.17.4.Final.jar:]
at com.jboss.jbosstm.xts.demo.services.recovery.DemoATRecoveryListener.contextInitialized(DemoATRecoveryListener.java:15) [xts-demo-core-4.17.4.Final.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
15:08:01,290 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/xts-demo-webservices]] (ServerService Thread Pool -- 70) JBWEB000287: Exception sending context initialized event to listener instance of class com.jboss.jbosstm.xts.demo.services.recovery.DemoBARecoveryListener: java.lang.NullPointerException
at com.jboss.jbosstm.xts.demo.services.recovery.DemoBARecoveryModule.register(DemoBARecoveryModule.java:43) [xts-demo-core-4.17.4.Final.jar:]
at com.jboss.jbosstm.xts.demo.services.recovery.DemoBARecoveryListener.contextInitialized(DemoBARecoveryListener.java:15) [xts-demo-core-4.17.4.Final.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
15:08:01,304 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/opt/JBossEAP/jboss-eap-6.1/xts/data/wsdl/ws-t11-coordinator.deployment/CompletionCoordinatorRPCService.wsdl
15:08:01,305 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://schemas.arjuna.com/ws/2005/10/wsarjtx}TerminationCoordinatorRPCPortTypeImplService from class com.arjuna.webservices11.wsarjtx.sei.TerminationCoordinatorRPCPortTypeImpl
15:08:01,314 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-2) Setting the server's publish address to be http://localhost:8080/ws-t11-participant/BusinessAgreementWithCoordinatorCompletionParticipantService
15:08:01,323 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 70) JBWEB001103: Error detected during context /xts-demo-webservices start, will stop it
I checked out 4.17.4.Final tag from https://github.com/jbosstm/quickstart to build the xts-demo. Do I need to do something else to register this RecoveryModule?
Thanks,
Tomo