axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Read time out error while invoking a service
Date Thu, 05 Jan 2012 19:13:40 GMT


Please see below..


long soTimeout = (10 * 60 * 1000) + (5 * 1000); // Eight minutes and 5 seconds





From: Sathunuri, Hariprasad (US - Arlington) [] 
Sent: Thursday, January 05, 2012 2:10 PM
Subject: Read time out error while invoking a service 
Importance: High


Hi ,


I am getting the following error while invoking a service which returns lot of results :


org.apache.axis2.AxisFault: Read timed out

at org.apache.axis2.AxisFault.makeFault(

at org.apache.axis2.transport.http.HTTPSender.sendViaPost(

at org.apache.axis2.transport.http.HTTPSender.send(

at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(

at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(

at org.apache.axis2.engine.AxisEngine.send(

at org.apache.axis2.description.OutInAxisOperationClient.send(

at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(

at org.apache.axis2.client.OperationClient.execute(



Caused by: Read timed out

at Method)

at Source)

at Source)

at Source)

at org.apache.commons.httpclient.HttpParser.readRawLine(

at org.apache.commons.httpclient.HttpParser.readLine(

at org.apache.commons.httpclient.HttpConnection.readLine(

at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(

at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(

at org.apache.commons.httpclient.HttpMethodBase.readResponse(

at org.apache.commons.httpclient.HttpMethodBase.execute(

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(

at org.apache.commons.httpclient.HttpClient.executeMethod(

at org.apache.commons.httpclient.HttpClient.executeMethod(

at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(

at org.apache.axis2.transport.http.HTTPSender.sendViaPost(



Can some one advice me how to increase the time out on the client side and also please suggest
should I make change in stub code or client program ?


I tried the below code in my client program without any luck:


Options timeOut = new Options();



Thanks in advance,





This message (including any attachments) contains confidential information intended for a
specific individual and purpose, and is protected by law. If you are not the intended recipient,
you should delete this message.

Any disclosure, copying, or distribution of this message, or the taking of any action based
on it, is strictly prohibited. 






View raw message