axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TEST (Created) (JIRA)" <>
Subject [jira] [Created] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
Date Fri, 24 Feb 2012 12:05:48 GMT
org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

                 Key: AXIS2-5251
             Project: Axis2
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.5.5
         Environment: Solaris,UNIX,Java
            Reporter: TEST
            Priority: Critical

The client stub was working perfectly fine with lower load/requests. The same application
when went live failed, giving some successful responses and some " Timeout waiting for connection"
exceptions with heavy load/requests.

The axis version used is axis2-1.5.5

Please find the exception below -
Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
INFO: Unable to sendViaPost to url[]
org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(
        at org.apache.commons.httpclient.HttpClient.executeMethod(
        at org.apache.commons.httpclient.HttpClient.executeMethod(
        at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(
        at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
        at org.apache.axis2.transport.http.HTTPSender.send(
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
        at org.apache.axis2.engine.AxisEngine.send(
        at org.apache.axis2.description.OutInAxisOperationClient.send(
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
        at org.apache.axis2.client.OperationClient.execute(
        at org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(
        at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(

According to me, the above exception is taken care in the original base code generated with
wsdl file. The code is pasted below which should take care the cleanup of the transport (
http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
finally {
                if (_messageContext.getTransportOut() != null) {

Can you please suggest what is going wrong here.
The code uses thread mechanism for each request. The code is attached for your reference.
Let me know if more information is required.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message