[ https://issues.apache.org/activemq/browse/SM-771?page=all ]
Jeff Puro updated SM-771:
-------------------------
Attachment: servicemix-http-connection-manager-3.0.1.patch
The attached file is a patch for ServiceMix 3.0.1. This solves the issue by
setting the connectionManager and client object references to null so that when
doInit is executed again it reinitializes the connectionManager. There will be
a subsequent patch file for 3.1.
> An IllegalStateException is generated when using an http provider endpoint
> when it is deployed using the Servicemix Web war (managed mode).
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SM-771
> URL: https://issues.apache.org/activemq/browse/SM-771
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-http
> Affects Versions: 3.0.1, 3.1
> Reporter: Jeff Puro
> Assigned To: Jeff Puro
> Fix For: 3.0.1, 3.1
>
> Attachments: servicemix-http-connection-manager-3.0.1.patch
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> When using an HTTP provider endpoint while the service unit is deployed using
> the apache servicemix web project (that is using managed mode), it generates
> the following Exception.
> java.lang.IllegalStateException: Connection factory has been shutdown.
> at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:454)
> at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:407)
> 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:346)
> at
> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:153)
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:410)
> at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:43)
> at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:624)
> at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:177)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:227)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira