1 Reply Latest reply on Sep 3, 2011 9:03 AM by Keith Babo

    NullPointerException from Orders demo in Quickstart (win 7 64 bit)

    Chris Chou Newbie

      Hi there,

       

      I'm very new to Switchyard and while following the getting started guide for release 0.1 I cannot seem to deploy the Orders service. Below is the console output:

       

      E:\AppCode\JBoss\switchyard-as7-0.1\bin>standalone.bat

      Config file not found E:\AppCode\JBoss\switchyard-as7-0.1\bin\standalone.conf.ba

      t

      ===============================================================================

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: E:\AppCode\JBoss\switchyard-as7-0.1

       

       

        JAVA: C:\Program Files (x86)\Java\jdk1.6.0_26\bin\java

       

       

        JAVA_OPTS: -Dprogram.name=standalone.bat  -server

       

       

      ===============================================================================

       

       

      19:43:53,326 INFO  [org.jboss.modules] JBoss Modules version 1.0.0.Beta17

      19:43:53,492 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.Beta8

      19:43:53,527 INFO  [org.jboss.as] JBoss AS 7.0.0.Beta3 "Salyut" starting

      19:43:53,942 INFO  [org.jboss.as.server] Activating core services

      19:43:54,048 INFO  [org.jboss.as] creating native management service using netwo

      rk interface (default) port (9999)

      19:43:54,053 INFO  [org.jboss.as] creating http management service using network

      interface (default) port (9990)

      19:43:54,066 INFO  [org.jboss.as.arquillian] Activating Arquillian Subsystem

      19:43:54,072 INFO  [org.jboss.as.ee] Activating EE subsystem

      19:43:54,107 INFO  [org.jboss.as.naming] Activating Naming Subsystem

      19:43:54,227 INFO  [org.jboss.as.connector.subsystems.datasources] Deploying JDB

      C-compliant driver class org.h2.Driver (version 1.2)

      19:43:54,237 INFO  [org.jboss.as.osgi] Activating OSGi Subsystem

      19:43:54,480 INFO  [org.jboss.as.webservices] Activating WebServices Extension

      19:43:54,573 INFO  [org.switchyard] Activating SwitchYard Extension

      19:43:54,605 INFO  [org.jboss.as.naming] Starting Naming Service

      19:43:54,606 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

      19:43:54,622 INFO  [org.jboss.as.deployment] (MSC service thread 1-3) Started Fi

      leSystemDeploymentService for directory E:\AppCode\JBoss\switchyard-as7-0.1\stan

      dalone\deployments

      19:43:54,627 INFO  [org.jboss.wsf.common.management.AbstractServerConfig] (MSC s

      ervice thread 1-7) JBoss Web Services - Stack CXF Server 4.0.0.Alpha4

      19:43:54,647 INFO  [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting

      version 3.1.0.Beta2

      19:43:54,669 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service

      thread 1-3) The Apache Tomcat Native library which allows optimal performance in

      production environments was not found on the java.library.path: C:\Program File

      s (x86)\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Wind

      ows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\

      WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common

      Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL Server\90\Tool

      s\binn\;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C

      :\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files

      \TortoiseSVN\bin;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\W

      IDCOMM\Bluetooth Software\syswow64;C:\Program Files\Dell\Dell Data Protection\Ac

      cess\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\Microsoft AS

      P.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Qt\2010.05\win

      32\bin;E:\AppCode\Sandpit\luban\Lib\Win32;C:\Program Files (x86)\PreEmptive Solu

      tions\Dotfuscator Professional Edition 4.9;C:\Program Files (x86)\Android\androi

      d-sdk\platform-tools;E:\AppCode\JBoss\apache-maven-3.0.3\bin;.

      19:43:54,683 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-

      5) Starting remote JMX connector

      19:43:54,704 WARN  [org.jboss.osgi.framework.internal.URLHandlerPlugin] (MSC ser

      vice thread 1-6) Unable to set the URLStreamHandlerFactory

      19:43:54,708 WARN  [org.jboss.osgi.framework.internal.URLHandlerPlugin] (MSC ser

      vice thread 1-6) Unable to set the ContentHandlerFactory

      19:43:54,756 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread

      1-7) Starting Coyote HTTP/1.1 on http-127.0.0.1-127.0.0.1-8080

      19:43:54,766 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service

      thread 1-8) live server is starting..

      19:43:54,934 INFO  [org.jboss.as.connector] (MSC service thread 1-2) Starting JC

      A Subsystem (JBoss IronJacamar 1.0.0.Beta5)

      19:43:54,953 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service

      thread 1-1) Bound JDBC Data-source [java:/H2DS]

      19:43:55,111 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC ser

      vice thread 1-8) Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445

      for CORE protocol

      19:43:55,125 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC ser

      vice thread 1-8) Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455

      for CORE protocol

      19:43:55,126 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service

      thread 1-8) HornetQ Server version 2.1.2.Final (Colmeia, 120) started

      19:43:55,174 INFO  [org.jboss.as] (MSC service thread 1-7) JBoss AS 7.0.0.Beta3

      "Salyut" started in 1988ms - Started 100 of 147 services (47 services are passiv

      e or on-demand)

      19:44:04,710 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Sta

      rting deployment of "switchyard-quickstart-demo-orders-0.1.0.jar"

      19:44:04,721 WARN  [org.jboss.vfs] (MSC service thread 1-1) VFS was unable to se

      t the URLStreamHandlerFactory.  This will have unpredictable results

      19:44:04,795 INFO  [org.jboss.weld] (MSC service thread 1-5) Processing CDI depl

      oyment: switchyard-quickstart-demo-orders-0.1.0.jar

      19:44:04,838 INFO  [org.jboss.weld] (MSC service thread 1-2) Starting Services f

      or CDI deployment: switchyard-quickstart-demo-orders-0.1.0.jar

      19:44:04,887 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900

      1.1.1 (Final)

      19:44:04,895 INFO  [org.switchyard] (MSC service thread 1-2) Deploying SwitchYar

      d application 'switchyard-quickstart-demo-orders-0.1.0.jar'

      19:44:04,906 INFO  [org.jboss.weld] (MSC service thread 1-5) Starting weld servi

      ce

      19:44:05,196 INFO  [org.switchyard] (MSC service thread 1-7) Starting SwitchYard

      service

      19:44:05,457 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC0000

      1: Failed to start service jboss.deployment.unit."switchyard-quickstart-demo-ord

      ers-0.1.0.jar".SwitchYardService: org.jboss.msc.service.StartException in servic

      e jboss.deployment.unit."switchyard-quickstart-demo-orders-0.1.0.jar".SwitchYard

      Service: Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont

      rollerImpl.java:1696)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

      utor.java:886) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

      .java:908) [:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      Caused by: java.lang.ExceptionInInitializerError

              at org.switchyard.component.camel.transformer.CamelTransformer.<init>(Ca

      melTransformer.java:41)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      [:1.6.0_26]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

      orAccessorImpl.java:39) [:1.6.0_26]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

      onstructorAccessorImpl.java:27) [:1.6.0_26]

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6

      .0_26]

              at java.lang.Class.newInstance0(Class.java:355) [:1.6.0_26]

              at java.lang.Class.newInstance(Class.java:308) [:1.6.0_26]

              at org.switchyard.transform.config.model.TransformerFactory.newTransform

      ers(TransformerFactory.java:126)

              at org.switchyard.transform.config.model.TransformerFactory.newTransform

      ers(TransformerFactory.java:74)

              at org.switchyard.transform.TransformerRegistryLoader.registerTransforme

      rs(TransformerRegistryLoader.java:84)

              at org.switchyard.transform.TransformerRegistryLoader.loadOOTBTransforms

      (TransformerRegistryLoader.java:132)

              at org.switchyard.deploy.internal.AbstractDeployment.init(AbstractDeploy

      ment.java:81)

              at org.switchyard.deploy.internal.Deployment.init(Deployment.java:104)

              at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(Sw

      itchYardDeployment.java:74)

              at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchY

      ardService.java:68)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont

      rollerImpl.java:1675)

              ... 3 more

      Caused by: org.apache.camel.RuntimeCamelException: java.lang.NullPointerExceptio

      n

              at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHe

      lper.java:1139)

              at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCam

      elContext.java:971)

              at org.switchyard.component.camel.transformer.CamelConverter.<init>(Came

      lConverter.java:49)

              at org.switchyard.component.camel.transformer.CamelConverter.<clinit>(Ca

      melConverter.java:37)

              ... 19 more

      Caused by: java.lang.NullPointerException

              at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPac

      kageScanClassResolver.java:260)

              at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPac

      kageScanClassResolver.java:211)

              at org.apache.camel.impl.DefaultPackageScanClassResolver.findAnnotated(D

      efaultPackageScanClassResolver.java:131)

              at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(An

      notationTypeConverterLoader.java:75)

              at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeCon

      verters(BaseTypeConverterRegistry.java:395)

              at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultT

      ypeConverter.java:41)

              at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)

              at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)

              at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:5

      2)

              at org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelC

      ontext.java:1593)

              at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelCont

      ext.java:884)

              at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCam

      elContext.java:969)

              ... 21 more

       

       

      19:44:05,474 INFO  [org.jboss.as.server] (MSC service thread 1-7) Service status

      report

        Services which failed to start:

            service jboss.deployment.unit."switchyard-quickstart-demo-orders-0.1.0.jar

      ".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deplo

      yment.unit."switchyard-quickstart-demo-orders-0.1.0.jar".SwitchYardService: Fail

      ed to start service

       

       

      19:44:05,485 INFO  [org.jboss.weld] (MSC service thread 1-5) Stopping weld servi

      ce

      19:44:05,494 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Sto

      pped deployment switchyard-quickstart-demo-orders-0.1.0.jar in 14ms

       

       

      Maven output indicated the demo is successfully built so what am I doing wrong? My java version is jdk6 update 22.

       

      Any help appreciated.

       

      Cheers,

      Chris