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 Bo Xie <mr...@gmail.com> on 2007/02/05 19:18:47 UTC
Axis2 - how to set client timeout
Hi All,
Please help me in setting up the client timeout. I tried the following, it
did not work.
stub._getServiceClient().getOptions().setProperty(
org.apache.axis2.transport.
http.HTTPConstants.CONNECTION_TIMEOUT, new
Integer("7200000"));
With this, I still see the client connection timed out exception in about
5 seconds when the server side is taking its time(sometime a couple of
minutes).
run.client:
[java] org.apache.axis2.AxisFault: Read timed out; nested exception is:
[java] java.net.SocketTimeoutException: Read timed out; nested
exception is:
[java] org.apache.axis2.AxisFault: Read timed out; nested exception
is:
[java] java.net.SocketTimeoutException: Read timed out
[java] at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
CommonsHTTPTransportSender.java:225)
[java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java
:670)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:365)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:295)
[java] at
samples.quickstart.service.xmlbeans.StockQuoteServiceStub.getPrice(
StockQuoteServiceStub.java:193)
[java] at samples.quickstart.clients.XMLBEANSClient.getPrice(
XMLBEANSClient.java:48)
[java] at samples.quickstart.clients.XMLBEANSClient.main(
XMLBEANSClient.java:16)
Thanks,
-Bo
Re: Axis2 - how to set client timeout
Posted by Bo Xie <mr...@gmail.com>.
Hi,
Looks like the SO_TIMEOUT value is overwritten by the following timeout, so
the doc is not accurate.
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds().
Thanks,
-Bo
On 2/5/07, Davanum Srinivas <da...@gmail.com> wrote:
>
> http://wso2.org/library/230#SO_TIMEOUT
>
> On 2/5/07, Bo Xie <mr...@gmail.com> wrote:
> > Hi All,
> >
> > Please help me in setting up the client timeout. I tried the
> following, it
> > did not work.
> >
> >
> > stub._getServiceClient().getOptions().setProperty(
> org.apache.axis2.transport.
> > http.HTTPConstants.CONNECTION_TIMEOUT ,
> > new Integer("7200000"));
> >
> > With this, I still see the client connection timed out exception in
> about
> > 5 seconds when the server side is taking its time(sometime a couple of
> > minutes).
> >
> > run.client:
> > [java] org.apache.axis2.AxisFault: Read timed out; nested
> exception
> > is:
> > [java] java.net.SocketTimeoutException: Read timed out; nested
> > exception is:
> > [java] org.apache.axis2.AxisFault: Read timed out; nested
> exception
> > is:
> > [java] java.net.SocketTimeoutException: Read timed out
> > [java] at
> > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:225)
> > [java] at org.apache.axis2.engine.AxisEngine.send
> > (AxisEngine.java:670)
> > [java] at
> > org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:365)
> > [java] at
> > org.apache.axis2.description.OutInAxisOperationClient.execute(
> OutInAxisOperation.java
> > :295)
> > [java] at
> > samples.quickstart.service.xmlbeans.StockQuoteServiceStub.getPrice(
> StockQuoteServiceStub.java:193)
> > [java] at
> > samples.quickstart.clients.XMLBEANSClient.getPrice(XMLBEANSClient.java
> :48)
> > [java] at
> > samples.quickstart.clients.XMLBEANSClient.main(XMLBEANSClient.java:16)
> >
> > Thanks,
> > -Bo
> >
> >
>
>
> --
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: Axis2 - how to set client timeout
Posted by Davanum Srinivas <da...@gmail.com>.
http://wso2.org/library/230#SO_TIMEOUT
On 2/5/07, Bo Xie <mr...@gmail.com> wrote:
> Hi All,
>
> Please help me in setting up the client timeout. I tried the following, it
> did not work.
>
>
> stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.
> http.HTTPConstants.CONNECTION_TIMEOUT ,
> new Integer("7200000"));
>
> With this, I still see the client connection timed out exception in about
> 5 seconds when the server side is taking its time(sometime a couple of
> minutes).
>
> run.client:
> [java] org.apache.axis2.AxisFault: Read timed out; nested exception
> is:
> [java] java.net.SocketTimeoutException: Read timed out; nested
> exception is:
> [java] org.apache.axis2.AxisFault: Read timed out; nested exception
> is:
> [java] java.net.SocketTimeoutException: Read timed out
> [java] at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
> [java] at org.apache.axis2.engine.AxisEngine.send
> (AxisEngine.java:670)
> [java] at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
> [java] at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java
> :295)
> [java] at
> samples.quickstart.service.xmlbeans.StockQuoteServiceStub.getPrice(StockQuoteServiceStub.java:193)
> [java] at
> samples.quickstart.clients.XMLBEANSClient.getPrice(XMLBEANSClient.java:48)
> [java] at
> samples.quickstart.clients.XMLBEANSClient.main(XMLBEANSClient.java:16)
>
> Thanks,
> -Bo
>
>
--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org