activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-6350) PooledConnectionFactory throws 'IllegalStateException: Pool not open' after re-init
Date Mon, 11 Jul 2016 22:21:11 GMT

    [ https://issues.apache.org/jira/browse/AMQ-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371774#comment-15371774
] 

ASF subversion and git services commented on AMQ-6350:
------------------------------------------------------

Commit 0706fd0bc1f499f1fc304ec1c70aa8aaa3dd4d69 in activemq's branch refs/heads/master from
[~tabish121]
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=0706fd0 ]

https://issues.apache.org/jira/browse/AMQ-6350

Allow for PooledConnectionFactory restart after being stopped.

> 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
>         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)

Mime
View raw message