Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4752

Timeout due to connection pool is starved in latest 1.5.2-SNAPSHOT code.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.0
    • saaj
    • None
    • Linux ia32, sun jdk 1.5, geronimo 2.2.1-snapshot, axis2 1.5.2-snapshot.

    Description

      We are trying to upgrade AXIS2 from 1.5 to 1.5.2-SNAPSHOT in geronimo 2.2 branch and met some problems after the upgrading.

      A SAAJ client that are calling services for several time will result in a timeout exception. We didn't have this issue before the upgrading. I noticed that there are some changes on the http transport code in 1.5.1 and 1.5.2.

      I don't have much control on the httpSender itself because we are use SAAJ SOAPConnection. I believe there must be some clean up code that need to be added to SOAPConnectionImpl after a calling.

      Can anyone give me some suggestions on this ?

      ---------------------------------------------------------------------------------------------------------------------
      javax.xml.soap.SOAPException: Timeout waiting for connection
      at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:198)
      at org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:132)

      Caused by: org.apache.axis2.AxisFault: Timeout waiting for connection
      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
      at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
      at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
      at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
      at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
      at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
      at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
      at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
      at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
      at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:192)
      ... 40 more

      Caused by: org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
      at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497)
      at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416)
      at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
      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:199)
      ... 48 more

      Attachments

        Activity

          People

            veithen Andreas Veithen
            genspring Lin Quan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: