Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

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

vinayak bhadage
Greenhorn

Joined: Apr 03, 2008
Posts: 1
hi,
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(AxisFault.java:417)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:265)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.attinisoft.printerservice.PrinterServicesStub.scanForBarcode(PrinterServicesStub.java:315)
at Test.main(Test.java:26)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
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(AbstractHTTPSender.java:520)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
... 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,
-vinayak
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help org.apache.axis2.AxisFault: Read timed out exception
 
Similar Threads
WebServices-Apache Axis2-Rampart - Read Time out exception.
Web services in HTTPS. org.apache.axis2.AxisFault: Read timed out
Rampart Axis2 passwordCallback method - Urgent Please
can't run rampart client
Unable to sendViaPost to url