org.jboss.webservice.client.PortProxy - Port error NullPoint
mcantrell Aug 25, 2005 10:45 AMI'm trying to build a DII client to my webservice as described in the Wiki here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=WSClientDII
It's throwing a RemoteException on call.invoke
ServiceFactoryImpl serviceFactory = (ServiceFactoryImpl) ServiceFactory.newInstance(); Service service = serviceFactory.createService( new URL(wsdlUrl), new URL(jaxRpcUrl), (URL) null, new QName(nameSpace, serviceName), null ); Call call = (Call) service.createCall(new QName(nameSpace, portName), methodName); Object o = call.invoke(new Object[]{order});
which reads:
Error executing remote service: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client faultSubcode: faultString: java.lang.NullPointerException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395) at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262) at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684) at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428) at org.jboss.axis.Message.getContentType(Message.java:494) at org.jboss.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386) at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126) at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73) at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160) at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123) at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:128) at org.jboss.axis.client.Call.invokeEngine(Call.java:3054) at org.jboss.axis.client.Call.invoke(Call.java:3039) at org.jboss.axis.client.Call.invoke(Call.java:2629) at org.jboss.axis.client.Call.invoke(Call.java:2538) at org.jboss.axis.client.Call.invokeInternal(Call.java:1976) at org.jboss.axis.client.Call.invoke(Call.java:1914) at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265) at com.mycompany.myapp.service.util.WebServiceClient.sendOrder(WebServiceClient.java:73) at com.mycompany.myapp.service.SonicStoreServiceImplTest.testSendRemoteOrder(SonicStoreServiceImplTest.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(IdeaJUnitAgent.java:57) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23) at com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:97) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
Has anyone else seen this error before? I'vev tried other clients and they seem to access the servce without any sort of problems.