Quickstart RESTEasyBindingTest NPE
losmorales Sep 29, 2014 8:19 AMI'm trying out Switchyard for the first time. I'm using SY 2.0.0Alpha2 and Wildfly 8.1.0 final and when trying to deploy the rest-binding quickstart I get a NPE (see exception below). I'm fairly certain I set up SY on Wildfly appropriately and starting Wildfly doesn't give any errors. I also modified the rest-binding pom to use wildfly-maven-plugin 1.0.2.Final instead of the jboss-as-maven-plugin, ran mvn package successfully but fails on mvn -Pdeploy install:
Any ideas?
-------------------------------------------------------------------------------
Test set: org.switchyard.quickstarts.rest.binding.RESTEasyBindingTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 14.649 sec <<< FAILURE!
orderServiceRESTEndpoint(org.switchyard.quickstarts.rest.binding.RESTEasyBindingTest) Time elapsed: 0.023 sec <<< ERROR!
java.lang.Exception: org.switchyard.component.resteasy.RESTEasyPublishException: java.lang.NullPointerException
at org.switchyard.test.SwitchYardRunner.createTest(SwitchYardRunner.java:64)
at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:236)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:233)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:85)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: org.switchyard.component.resteasy.RESTEasyPublishException: java.lang.NullPointerException
at org.switchyard.component.resteasy.InboundHandler.doStart(InboundHandler.java:96)
at org.switchyard.deploy.BaseServiceHandler.start(BaseServiceHandler.java:59)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:623)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:145)
at org.switchyard.test.SwitchYardTestKit.deploy(SwitchYardTestKit.java:757)
at org.switchyard.test.SwitchYardTestKit.start(SwitchYardTestKit.java:177)
at org.switchyard.test.SwitchYardRunner.createTest(SwitchYardRunner.java:60)
... 22 more
Caused by: java.lang.NullPointerException
at org.jboss.resteasy.plugins.server.sun.http.HttpContextBuilder.bind(HttpContextBuilder.java:89)
at org.switchyard.component.resteasy.resource.StandaloneResourcePublisher.publish(StandaloneResourcePublisher.java:84)
at org.switchyard.component.resteasy.InboundHandler.doStart(InboundHandler.java:92)