2 Replies Latest reply on Aug 26, 2005 5:10 AM by Darran Lofthouse

    org.jboss.webservice.client.PortProxy - Port error NullPoint

    Mike Cantrell Newbie

      I'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.


        • 1. Re: org.jboss.webservice.client.PortProxy - Port error NullP
          Mike Cantrell Newbie

          I forgot to post the server logs:

          09:46:55,787 DEBUG [ServiceEndpointServletJSE] doGet: http://localhost:8080/store-ws/StorePosServiceEndpoint?wsdl
          09:46:55,787 DEBUG [ServiceEndpointServletJSE] Set transport.url=/store-ws/StorePosServiceEndpoint
          09:46:55,787 DEBUG [ServiceEndpointServletJSE] Process wsdl request
          09:46:56,027 DEBUG [ServiceEndpointServletJSE] doGet: http://localhost:8080/store-ws/StorePosServiceEndpoint?wsdl
          09:46:56,027 DEBUG [ServiceEndpointServletJSE] Set transport.url=/store-ws/StorePosServiceEndpoint
          09:46:56,027 DEBUG [ServiceEndpointServletJSE] Process wsdl request
          09:46:58,931 DEBUG [ServerSocketManagerHandler] Exiting on IOE
          java.net.SocketException: Connection reset
           at java.net.SocketInputStream.read(SocketInputStream.java:168)
           at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
           at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
           at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:67)
           at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2200)
           at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2380)
           at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2447)
           at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2519)
           at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2668)
           at java.io.ObjectInputStream.readByte(ObjectInputStream.java:864)
           at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:290)
           at java.lang.Thread.run(Thread.java:595)
          09:46:58,931 DEBUG [SocketManager] End ReadTask.run
          


          • 2. Re: org.jboss.webservice.client.PortProxy - Port error NullP
            Darran Lofthouse Master

            Yes this is a known issue

            http://jira.jboss.com/jira/browse/JBWS-187

            When posting can you please include the JBoss version and JDK version you are using.