You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ninad Agate <na...@SERENA.com> on 2007/04/27 02:15:32 UTC
Axis2 1.1.1 java.net.SocketTimeoutException: Read timed out
I am using axis2 1.1.1 release. In my code I call
org.apache.axis2.client.ServiceClient.sendReceive(elem). It throws
following timeout exception after ~40 seconds. I have set
HTTPConstants.SO_TIMEOUT and HTTPConstants.CONNECTION_TIMEOUT properties
to 5 minutes. Has anyone run into this issue? Are there any other
timeout properties that I ned to set.
Thanks.
- Ninad
java.net.SocketTimeoutException: Read timed out; nested exception is:
org.apache.axis2.AxisFault: Read timed out; nested exception is:
java.net.SocketTimeoutException: Read timed out, . ., ITSVMsg.6, ,
org.apache.axis2.AxisFault: Read timed out; nested exception is:
java.net.SocketTimeoutException: Read timed out; nested exception is:
org.apache.axis2.AxisFault: Read timed out; nested exception is:
java.net.SocketTimeoutException: Read timed out
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:227)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:237)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:202)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579
)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
...
Caused by: org.apache.axis2.AxisFault: Read timed out; nested exception
is:
java.net.SocketTimeoutException: Read timed out
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:344)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:204)
... 28 more
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:235)
at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.jav
a:1115)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBa
se.java:1832)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase
.java:1590)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:995)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
96)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:541)
at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSend
er.java:119)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:335)
... 29 more
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Re: Axis2 1.1.1 java.net.SocketTimeoutException: Read timed out
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Try options.setTimeOutInMilliSeconds()
Michele
On Thu, 2007-04-26 at 17:15 -0700, Ninad Agate wrote:
> I am using axis2 1.1.1 release. In my code I call
> org.apache.axis2.client.ServiceClient.sendReceive(elem). It throws
> following timeout exception after ~40 seconds. I have
> set HTTPConstants.SO_TIMEOUT and HTTPConstants.CONNECTION_TIMEOUT
> properties to 5 minutes. Has anyone run into this issue? Are there any
> other timeout properties that I ned to set.
>
> Thanks.
>
> - Ninad
>
> java.net.SocketTimeoutException: Read timed out; nested exception is:
>
> org.apache.axis2.AxisFault: Read timed out; nested exception is:
>
> java.net.SocketTimeoutException: Read timed out, . ., ITSVMsg.6, ,
> org.apache.axis2.AxisFault: Read timed out; nested exception is:
>
> java.net.SocketTimeoutException: Read timed out; nested exception is:
>
> org.apache.axis2.AxisFault: Read timed out; nested exception is:
>
> java.net.SocketTimeoutException: Read timed out
>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
>
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
>
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
>
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
>
> ...
>
> Caused by: org.apache.axis2.AxisFault: Read timed out; nested
> exception is:
>
> java.net.SocketTimeoutException: Read timed out
>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
>
> ... 28 more
>
> 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:235)
>
> at
> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
>
> at
> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
>
> at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
>
> at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
>
> at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
>
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
>
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
>
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>
> at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
>
> at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
>
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
>
> ... 29 more
>
> **********************************************************************
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient,
> please contact the sender by reply e-mail and destroy all copies of
> the original message.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org