error deploying switchyard application in EAP
bhaskarsk Mar 25, 2014 9:23 AMHi,
I am new to switchyard and having problems with the startups.
I am creating a switch yard project in the switchyard plugin on eclipse and trying to deploy it on the eap installed through (jboss-eap-6.0.0.fsw.ci-installer). I am getting the following error. i found out the switchyard module supported on the eap was 1.1.0.M3-redhat-2.
And even in the quickstarts, it was 1.1.0.M3-redhat-2, i changed it 1.1.0.M4 so that the compilation was successfull and the deployment also worked fine. However creating a new application on eclipse and changing the switchyard version to 1.1.0.M4 in pom.xml, still it is failing with the below error.
========================================================================================================
18:27:26,605 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "switchyard-example-0.0.1-SNAPSHOT.jar" (runtime-name: "switchyard-example-0.0.1-SNAPSHOT.jar")
18:27:28,448 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment switchyard-example-0.0.1-SNAPSHOT.jar
18:27:29,671 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: switchyard-example-0.0.1-SNAPSHOT.jar
18:27:29,800 INFO [org.switchyard] (MSC service thread 1-2) Deploying SwitchYard application 'switchyard-example-0.0.1-SNAPSHOT.jar'
18:27:29,894 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment switchyard-example-0.0.1-SNAPSHOT.jar
18:27:30,313 INFO [org.switchyard] (MSC service thread 1-4) Starting SwitchYard service
18:27:31,508 INFO [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-4) JMX enabled.
18:27:31,564 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-4) Apache Camel 1.1.0.M3-redhat-2 (CamelContext: camel-2) is starting
18:27:32,482 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-4) Loaded 181 type converters
18:27:32,595 INFO [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-4) StatisticsLevel at All so enabling load performance statistics
18:27:32,615 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-4) Total 0 routes, of which 0 is started.
18:27:32,615 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-4) Apache Camel 1.1.0.M3-redhat-2 (CamelContext: camel-2) started in 1.051 seconds
18:27:32,671 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."switchyard-example-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example-0.0.1-SNAPSHOT.jar".SwitchYardService: java.lang.NullPointerException
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:80)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: java.lang.NullPointerException
at org.switchyard.deploy.internal.Deployment.getActivationTypes(Deployment.java:234)
at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:96)
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73)
... 5 more
18:27:32,718 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "switchyard-example-0.0.1-SNAPSHOT.jar" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-example-0.0.1-SNAPSHOT.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-example-0.0.1-SNAPSHOT.jar\".SwitchYardService: java.lang.NullPointerException
Caused by: java.lang.NullPointerException"}}
18:27:32,944 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016009: Stopping weld service for deployment switchyard-example-0.0.1-SNAPSHOT.jar
18:27:33,098 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment switchyard-example-0.0.1-SNAPSHOT.jar (runtime-name: switchyard-example-0.0.1-SNAPSHOT.jar) in 292ms
===============================================================================================
Thanks in Advance!!!