You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2016/07/11 22:23:10 UTC

[jira] [Resolved] (AMQ-6350) PooledConnectionFactory throws 'IllegalStateException: Pool not open' after re-init

     [ https://issues.apache.org/jira/browse/AMQ-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-6350.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 5.13.4
                   5.14.0

> PooledConnectionFactory throws 'IllegalStateException: Pool not open' after re-init
> -----------------------------------------------------------------------------------
>
>                 Key: AMQ-6350
>                 URL: https://issues.apache.org/jira/browse/AMQ-6350
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: activemq-pool
>    Affects Versions: 5.13.3
>            Reporter: Alexey Markevich
>             Fix For: 5.14.0, 5.13.4
>
>         Attachments: PooledConnectionFactory.patch
>
>
> Blueprint:
> {code}
> <cm:property-placeholder persistent-id=".." update-strategy="reload" />
> <bean id="pooledConnectionFactory" class="org.apache.activemq.jms.pool.PooledConnectionFactory"
>         init-method="start" destroy-method="stop">
> ...
> </bean>
> {code}
> or Java:
> {code}
> org.apache.activemq.jms.pool.PooledConnectionFactory pcf = new org.apache.activemq.jms.pool.PooledConnectionFactory();
> pcf.start();
> ...
> pcf.stop();
> pcf.start();
> // producer.send(textMsg);
> {code}
> Stacktrace:
> {code}
> Caused by: javax.jms.IllegalStateException: java.lang.IllegalStateException: Pool not open
> 	at org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:159)
> 	at org.apache.activemq.jms.pool.PooledConnection.createSession(PooledConnection.java:167)
> 	at org.talend.ipaas.rt.amqsource.AMQEventSource.createJmsSession(AMQEventSource.java:282)
> 	at org.talend.ipaas.rt.amqsource.AMQEventSource.sendEvent(AMQEventSource.java:117)
> 	... 2 more
> Caused by: java.lang.IllegalStateException: Pool not open
> 	at org.apache.commons.pool2.impl.BaseGenericObjectPool.assertOpen(BaseGenericObjectPool.java:672)
> 	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:339)
> 	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:279)
> 	at org.apache.activemq.jms.pool.ConnectionPool.createSession(ConnectionPool.java:141)
> 	... 5 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)