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] [Commented] (AXIS2-5018) Axis2 Connection timeout problem in case of waiting threads
Date Wed, 08 Jun 2011 12:25:58 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045922#comment-13045922
] 

Rajmani Kumar commented on AXIS2-5018:
--------------------------------------

@Deepal : Thanks for the suggestion
-----------------------------------------------------------
I have set it to 50 sec from 30 sec, Let see if it occurs again.
As I mentioned before the problem arises in rush hours and I feel the thread give-up while
keeps waiting for the response.
The generated client is exception handled but still in the tomcat log i see the same exception
(org.apache.axis2.AxisFault), which it seems for those cases axis2 never comes back to the
SOAP client and failed inside it.
catch(org.apache.axis2.AxisFault f){
}
finally {
              _messageContext.getTransportOut().getSender().cleanup(_messageContext);
}

I am just meshed up and unable to understand whats going wrong. 
if the no. of http connections is exhausted the finally block should clear them up.



> 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