This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Web Services and the fly likes need help org.apache.axis2.AxisFault: Read timed out exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "need help org.apache.axis2.AxisFault: Read timed out exception" Watch "need help org.apache.axis2.AxisFault: Read timed out exception" New topic

need help org.apache.axis2.AxisFault: Read timed out exception

vinayak bhadage

Joined: Apr 03, 2008
Posts: 1
I am new to axis webs service.I created web service using axis2.1.3 .In this web service i am converting received pdf document to tiff file using ghostscript. but this process is taking time as per size of document. so I getting the following exception on client side..

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.OutOnlyAxisOperationClient.executeImpl(
at org.apache.axis2.client.OperationClient.execute(
at com.attinisoft.printerservice.PrinterServicesStub.scanForBarcode(
at Test.main(
Caused by: Read timed out
at Method)
at org.apache.commons.httpclient.HttpParser.readRawLine(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readLine(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.readLine(Unknown Source)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(Unknown Source)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source)
at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
... 8 more


In axis2.xml file i set these parameters ..
<!--This will give out the timout of the configuration ontexts, in milliseconds-->
<parameter name="ConfigContextTimeoutInterval">300000</parameter>
<parameter name="SO_TIMEOUT" locked="false">300000</parameter>
<parameter name="CONNECTION_TIMEOUT" locked="false">300000</parameter>

But still i am getting same exception.

Any help will be appreciated.

Thanks & regards,
I agree. Here's the link:
subject: need help org.apache.axis2.AxisFault: Read timed out exception
jQuery in Action, 3rd edition