axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajmani Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5018) Axis2 Connection timeout problem in case of waiting threads
Date Fri, 06 May 2011 05:43:09 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rajmani Kumar updated AXIS2-5018:
---------------------------------

    Description: 
I am consuming a third party hosted web service.

Usually it was working fine.
Recently It has started failing with the below error :
org.apache.axis2.AxisFault: Connection timed out: connect
  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
  at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
  at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
  at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364)
  at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
  at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
  at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
  at axis2.uk.co.me.webservice.Service1Stub.getQuoteV1(Service1Stub.java:480)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection timed out: connect
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  at java.net.Socket.connect(Socket.java:516)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
  at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
  at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
  at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
  at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
  at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
  at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
  at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
  ... 41 more

The web service on the other side is taking longer sometime due to high traffic or it seems
it is not responding at all.
But the thread which has requested the web service keeps on waiting and my appserver starts
throwing the above error. To resolve this I must restart my server
Please help.

  was:

I am consuming a third party hosted web service.

Usually it was working fine.
Recently It has started failing with the below error :
org.apache.axis2.AxisFault: Connection timed out: connect
at org.apache.axis2.AxisFault.makeFault(Axi...
at org.apache.axis2.transport.http.HTTPSend...
at org.apache.axis2.transport.http.HTTPSend...
at org.apache.axis2.transport.http.CommonsH...
at org.apache.axis2.transport.http.CommonsH...
at org.apache.axis2.engine.AxisEngine.send(...
at org.apache.axis2.description.OutInAxisOp...
at org.apache.axis2.description.OutInAxisOp...
at org.apache.axis2.client.OperationClient....
at [myclass....]
at javax.servlet.http.HttpServlet.service(H...
at org.apache.catalina.core.ApplicationFilt...
at org.apache.catalina.core.ApplicationFilt...
at org.apache.catalina.core.StandardWrapper...
at org.apache.catalina.core.StandardValveCo...
.....................
at org.apache.coyote.tomcat5.CoyoteAdapter....
at org.apache.coyote.http11.Http11Processor...
at org.apache.coyote.http11.Http11Protocol$...
at org.apache.tomcat.util.net.TcpWorkerThre...
at org.apache.tomcat.util.threads.ThreadPoo...
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(N... Method)
..........................
at org.apache.commons.httpclient.MultiThrea...
at org.apache.commons.httpclient.HttpMethod...
at org.apache.commons.httpclient.HttpMethod...
at org.apache.commons.httpclient.HttpClient...
at org.apache.commons.httpclient.HttpClient...
at org.apache.axis2.transport.http.Abstract...
at org.apache.axis2.transport.http.HTTPSend...
... 41 more

The web service on the other side is taking longer sometime due to high traffic or it seems
it is not responding at all.
But the thread which has requested the web service keeps on waiting and my appserver starts
throwing the above error. To resolve this I must restart my server
Please help.


> Axis2 Connection timeout problem in case of waiting threads
> -----------------------------------------------------------
>
>                 Key: AXIS2-5018
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5018
>             Project: Axis2
>          Issue Type: Bug
>            Reporter: Rajmani Kumar
>
> I am consuming a third party hosted web service.
> Usually it was working fine.
> Recently It has started failing with the below error :
> org.apache.axis2.AxisFault: Connection timed out: connect
>   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>   at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>   at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364)
>   at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
>   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>   at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
>   at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>   at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>   at axis2.uk.co.me.webservice.Service1Stub.getQuoteV1(Service1Stub.java:480)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>   at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>   at java.lang.Thread.run(Thread.java:595)
> Caused by: java.net.ConnectException: Connection timed out: connect
>   at java.net.PlainSocketImpl.socketConnect(Native Method)
>   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>   at java.net.Socket.connect(Socket.java:516)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
>   at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
>   at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>   at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
>   at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>   at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>   at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
>   ... 41 more
> The web service on the other side is taking longer sometime due to high traffic or it
seems it is not responding at all.
> But the thread which has requested the web service keeps on waiting and my appserver
starts throwing the above error. To resolve this I must restart my server
> Please help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message