axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gul Onural" <onu...@nortel.com>
Subject RE: SocketTimeoutExcetion: Read timed out
Date Wed, 06 Jun 2007 00:02:13 GMT
What value we should set if we want SO_TIMEOUT and CONNECTION_TIMEOUT to
be indefinite, (i.e. never time out value) ? 

Gul

-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Tuesday, June 05, 2007 7:27 PM
To: axis-user@ws.apache.org
Subject: Re: SocketTimeoutExcetion: Read timed out

the timeout default is 30 secs e.g.

increment org.apache.axis2.client.Options {
    /*** Default blocking timeout value. *******/
    public static final int DEFAULT_TIMEOUT_MILLISECONDS = 30 * 1000; ..
}

set Socket timeout and Connection timeout in axis2.xml and reset
AxisServlet For Socket timeout:
<parameter name="SO_TIMEOUT" locked="false">some_int_value</parameter>

For Connection timeout:
 <parameter name="CONNECTION_TIMEOUT" 
locked="false">some_int_value</parameter>

HTH/
Martin
This mail message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message
is addressed.  If you have received this email message in error, please
notify the sender immediately by telephone or email and destroy the
original message without making a copy.  Thank you.

----- Original Message -----
From: "CrystalCracker" <sudarshan.acharya@gmail.com>
To: <axis-user@ws.apache.org>
Sent: Tuesday, June 05, 2007 6:31 PM
Subject: SocketTimeoutExcetion: Read timed out


>
> Guys,
> I am workin on my first webserice project using axis:
> Here is how I have made the call after creating the client stubs from
the
> wsdl:
>
> getClientStub().getTestData();
>
> This is giving me the following SocketTimeOutException. Any idea what 
> could
> be wrong??
>
> Thanks a lot.
>
>
> AxisFault
> faultCode:
{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:
> 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.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSend
er.java:583)
> at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava: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:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at
>
com.rackspace.iss.oraint.customer.invoice.CustomerInvoiceWSBindingStub.g
etCustomerInvoice(CustomerInvoiceWSBindingStub.java:363)
> at test.CustometInvoiceTest.main(CustometInvoiceTest.java:38)
>
> {http://xml.apache.org/axis/}hostname:user-e046cb8f85
>
> java.net.SocketTimeoutException: Read timed out
> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava: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:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at
>
com.rackspace.iss.oraint.customer.invoice.CustomerInvoiceWSBindingStub.g
etCustomerInvoice(CustomerInvoiceWSBindingStub.java:363)
> at test.CustometInvoiceTest.main(CustometInvoiceTest.java:38)
> 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.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSend
er.java:583)
> at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> ... 11 more
> -- 
> View this message in context: 
>
http://www.nabble.com/SocketTimeoutExcetion%3A-Read-timed-out-tf3874694.
html#a10979051
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message