[Axis2] - intermittent error "The input stream for an incoming message is null."

Amit Lonkar <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hi

I have a very simple web service which just return a String. Calling the webservice in a loop throws the exception below.

Attached
- TestAxis2Service.java
- services.xml
- TestAxis2ServiceClient.java
- TestAxis2Service.wsdl

Exception in thread "main" org.apache.axis2.AxisFault: The input stream for an incoming message is null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)
at TestAxis2ServiceClient.callWebservice(TestAxis2ServiceClient.java:52)
at TestAxis2ServiceClient.main(TestAxis2ServiceClient.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Your help with this is appreciated.

Thanks
Amit


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
TestAxis2Service.wsdl (application/octet-stream, 4.5 KB) - not displayed
TestAxis2ServiceClient.java (application/octet-stream, 1.9 KB) - not displayed
TestAxis2Service.java (application/octet-stream, 819 B) - not displayed
services.xml (text/xml, 596 B)
<service name="TestAxis2Service"  scope="application">
    <description>
        Test Axis2 Service
    </description>

    <messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
                         class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
                         class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </messageReceivers>

    <parameter name="ServiceClass">com.optessa.webservices.TestAxis2Service</parameter>
</service>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.