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 Jeff <je...@cogentlogic.com> on 2005/05/20 16:20:54 UTC
Re: Timeout for service request.
MyLocator locator = new MyLocator();
MyStub stub = (MyStub)locator.getPort(MyPortType.class);
stub.setTimeout(600000); // 600000 ms => 10 min
Jeff Lawson
----- Original Message -----
From: <Gr...@emc.com>
To: <ax...@ws.apache.org>
Sent: Friday, May 20, 2005 10:21 AM
Subject: Timeout for service request.
Is there a way to change the read timeout on the Client side? I have an
operation that can take multiple minutes to complete. The following is the
failure that I get:
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
<http://schemas.xmlsoap.org/soap/envelope/}Server.userException>
faultSubcode:
faultString: java.net.SocketTimeoutException: Read timed out
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException
<http://xml.apache.org/axis/}stackTrace: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:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPS
ender.java:569)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:142)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
-----------------------------------------------------------------------
Clifford Grimm
Centera Integration Architect
EMC Centera Engineering
EMC² <http://www.emc.com/>
Where Information Lives
* Office: 508-249-5159 (toll free 877-362-2887 x45159)
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: grimm_clifford@emc.com <ma...@emc.com>
* Instant Messaging: grimm_clifford@yahoo.com