Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!