1 Reply Latest reply on Aug 29, 2014 10:59 AM by Rob Cernich

    Switchyard remote invoker throws NPE

    Ilia Krechetov Newbie

      Hello, everybody.
      I am using SY-1.1.0 Final, JBoss EAP 6.1.
      I tried to run swithyard-remote-invoker quickstart,  and everything worked fine for me. (If i run remoteClient class, positioned in the test directory of quickstart). But, if i try to invoke this quickstart from another application, using the same settings, i always get the following error:

       

      12:27:58,140 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/switchyard-remote].[SwitchYardRemotingServlet]] (http-localhost/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet SwitchYardRemotingServlet threw exception: java.lang.NullPointerException

        at org.switchyard.serial.graph.Factory.getFactory(Factory.java:49) [switchyard-serial-1.1.0.Final.jar:1.1.0.Final]

        at org.switchyard.serial.graph.node.AccessNode.decompose(AccessNode.java:127) [switchyard-serial-1.1.0.Final.jar:1.1.0.Final]

        at org.switchyard.serial.graph.Graph.decomposeReference(Graph.java:145) [switchyard-serial-1.1.0.Final.jar:1.1.0.Final]

        at org.switchyard.serial.graph.node.AccessNode$1.run(AccessNode.java:135) [switchyard-serial-1.1.0.Final.jar:1.1.0.Final]

        at org.switchyard.serial.graph.Graph.decomposeRoot(Graph.java:131) [switchyard-serial-1.1.0.Final.jar:1.1.0.Final]

        at org.switchyard.serial.graph.GraphSerializer.deserialize(GraphSerializer.java:61) [switchyard-serial-1.1.0.Final.jar:1.1.0.Final]

        at org.switchyard.component.sca.SwitchYardRemotingServlet.doPost(SwitchYardRemotingServlet.java:78) [switchyard-component-sca-1.1.0.Final.jar:1.1.0.Final]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

       

       

      I have no ideas about the reason of such issue, can someone give me any advice?