Re: [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]> |
Please find attached tcpmon output. Please see last response says connection "closed". On Tuesday, December 10, 2013 9:58:45 AM, Chamila Wijayarathna <[email protected]> wrote: Did you tried capturing packets send from client to service using tcpmon? On Dec 10, 2013 10:16 PM, "Amit Lonkar" <[email protected]> wrote: 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
TestAQxis2-tcpmon.log
(application/octet-stream, 6.5 KB)
============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: 127.0.0.1:3333 Transfer-Encoding: chunked e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 ==== Response ==== HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT 12c <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:lookupDbConfigPrimaryResponse xmlns:ns="http://webservices.optessa.com"><ns:return>5055</ns:return></ns:lookupDbConfigPrimaryResponse></soapenv:Body></soapenv:Envelope> 0 ============== ============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: 127.0.0.1:3333 Transfer-Encoding: chunked e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 ==== Response ==== HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT 12c <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:lookupDbConfigPrimaryResponse xmlns:ns="http://webservices.optessa.com"><ns:return>5056</ns:return></ns:lookupDbConfigPrimaryResponse></soapenv:Body></soapenv:Envelope> 0 ============== ============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: 127.0.0.1:3333 Transfer-Encoding: chunked e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 ==== Response ==== HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT 12c <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:lookupDbConfigPrimaryResponse xmlns:ns="http://webservices.optessa.com"><ns:return>5057</ns:return></ns:lookupDbConfigPrimaryResponse></soapenv:Body></soapenv:Envelope> 0 ============== ============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: 127.0.0.1:3333 Transfer-Encoding: chunked e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 ==== Response ==== HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT 12c <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:lookupDbConfigPrimaryResponse xmlns:ns="http://webservices.optessa.com"><ns:return>5058</ns:return></ns:lookupDbConfigPrimaryResponse></soapenv:Body></soapenv:Envelope> 0 ============== ============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: 127.0.0.1:3333 Transfer-Encoding: chunked e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 ==== Response ==== HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT 12c <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:lookupDbConfigPrimaryResponse xmlns:ns="http://webservices.optessa.com"><ns:return>5059</ns:return></ns:lookupDbConfigPrimaryResponse></soapenv:Body></soapenv:Envelope> 0 ============== ============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: 127.0.0.1:3333 Transfer-Encoding: chunked e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 ==== Response ==== HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT 12c <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:lookupDbConfigPrimaryResponse xmlns:ns="http://webservices.optessa.com"><ns:return>5060</ns:return></ns:lookupDbConfigPrimaryResponse></soapenv:Body></soapenv:Envelope> 0 ============== ============== Listen Port: 3333 Target Host: 127.0.0.1 Target Port: 9090 ==== Request ==== e2 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><lookupDbConfigPrimary xmlns="http://webservices.optessa.com" /></soapenv:Body></soapenv:Envelope> 0 POST /optessa/services/TestAxis2Service HTTP/1.1 Content-Type: text/xml; charset=UTF-8 SOAPAction: "" User-Agent: Axis2 Host: localhost:3333 Transfer-Encoding: chunked ==== Response ==== HTTP/1.1 400 Bad Request Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Date: Tue, 10 Dec 2013 17:08:31 GMT Connection: close 0 ==============