Hi,

- How does the two CONNECTION_TIMEOUT and SO_TIMEOUT relates to each
other ?
  What effect  will get if I set these two to 30 minutes (1800000
millis) ? I know
  the impact of SO_TIMEOUT, but I am not sure about the interpretation
of the CONNECTION_TIMEOUT.

- Should I set them both in the axis2.xml ?

Thanks,

Gul


-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 05, 2007 7:27 PM
To: [email protected]
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" <[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to