3 Replies Latest reply on Apr 7, 2014 9:09 AM by kcbabo

    error deploying switchyard application in EAP

    bhaskarsk

      Hi,

       

      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!!!

        • 1. Re: error deploying switchyard application in EAP
          kcbabo

          Let's start with where you are getting SY from.  Are you installing a distribution from the SwitchYard downloads page or is this a Fuse Service Works (possibly 6.0 Beta) installation?

          • 2. Re: error deploying switchyard application in EAP
            bhaskarsk

            1) I had installed fuse works using jboss-eap-6.0.0.fsw.ci-installer. Inbuilt switchyard support seems to be 1.1.0.M3-redhat-2. My switchyard application was built on switcyard 1.1.0.Final support tools.

             

            fsw EAP version as below.

            JBoss Enterprise Application Platform - Version 6.1.0.GA

            Red Hat JBoss Fuse Service Works - Version 6.0.0.ER6-redhat-1

             

            2) Then i downloaded switchyard-installer-1.1.0.Final as mentioned in the installation guide and upgraded the switchyard modules in eap to 1.1.0.Final. Even after that when i deploy switchyard application built using 1.1.0.Final jars, the fsw EAP seems to be running older version(1.1.0.M3-redhat-2) of switchyard support. Not sure where to change the version.

             

            3) Then i installed only EAP 6.0.1 separately and deploy my application, it seems to be working fine.

            • 3. Re: error deploying switchyard application in EAP
              kcbabo

              The installer should not be used for upgrading an installation.  If you are using the product installer for FSW 6.0 GA, then it will install an instance of EAP for you.  If you are using the community installer, then use a fresh install of EAP 6.1 and then point the SwitchYard installer at that.