Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-482

java.lang.IllegalStateException: Connection factory has been shutdown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.7
    • Component/s: Core
    • Labels:
      None

      Description

      spring-ws does not seem to correctly reinitialize the httpclient connection manager under certain circumstances

      Caused by: java.lang.IllegalStateException: Connection factory has been shutdown.
      	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:456)
      	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:394)
      	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:152)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
      	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
      	at org.springframework.ws.transport.http.CommonsHttpConnection.onSendAfterWrite(CommonsHttpConnection.java:100)
      	at org.springframework.ws.transport.AbstractWebServiceConnection.send(AbstractWebServiceConnection.java:44)
      	at org.springframework.ws.client.core.WebServiceTemplate.sendRequest(WebServiceTemplate.java:585)
      	at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:548)
      	at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:501)
      	at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:456)
      	at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:402)
      	at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:393)
      	at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate

      i cannot come up with a reproducible testcase for the moment, but when it happens it is always after we redeploy our application (weblogic 9.2MP2). It is quite an impacting annoyance because we have to restart the server to get things back in line.

        Issue Links

          Activity

          heymjo Jorg Heymans created issue -
          arjen.poutsma Arjen Poutsma made changes -
          Field Original Value New Value
          Fix Version/s 1.5.7 [ 11173 ]
          Description
          spring-ws does not seem to correctly reinitialize the httpclient connection manager under certain circumstances

          {code}
          Caused by: java.lang.IllegalStateException: Connection factory has been shutdown.
          at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:456)
          at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:394)
          at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:152)
          at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
          at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
          at org.springframework.ws.transport.http.CommonsHttpConnection.onSendAfterWrite(CommonsHttpConnection.java:100)
          at org.springframework.ws.transport.AbstractWebServiceConnection.send(AbstractWebServiceConnection.java:44)
          at org.springframework.ws.client.core.WebServiceTemplate.sendRequest(WebServiceTemplate.java:585)
          at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:548)
          at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:501)
          at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:456)
          at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:402)
          at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:393)
          at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate
          {code}

          i cannot come up with a reproducible testcase for the moment, but when it happens it is always after we redeploy our application (weblogic 9.2MP2). It is quite an impacting annoyance because we have to restart the server to get things back in line.
          spring-ws does not seem to correctly reinitialize the httpclient connection manager under certain circumstances

          {code}
          Caused by: java.lang.IllegalStateException: Connection factory has been shutdown.
          at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:456)
          at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:394)
          at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:152)
          at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
          at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
          at org.springframework.ws.transport.http.CommonsHttpConnection.onSendAfterWrite(CommonsHttpConnection.java:100)
          at org.springframework.ws.transport.AbstractWebServiceConnection.send(AbstractWebServiceConnection.java:44)
          at org.springframework.ws.client.core.WebServiceTemplate.sendRequest(WebServiceTemplate.java:585)
          at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:548)
          at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:501)
          at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:456)
          at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:402)
          at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:393)
          at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate
          {code}

          i cannot come up with a reproducible testcase for the moment, but when it happens it is always after we redeploy our application (weblogic 9.2MP2). It is quite an impacting annoyance because we have to restart the server to get things back in line.
          arjen.poutsma Arjen Poutsma made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue is related to SWS-564 [ SWS-564 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              heymjo Jorg Heymans
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: