Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DE20D8EF for ; Thu, 30 Aug 2012 09:12:10 +0000 (UTC) Received: (qmail 52154 invoked by uid 500); 30 Aug 2012 09:12:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 51903 invoked by uid 500); 30 Aug 2012 09:12:09 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 51689 invoked by uid 99); 30 Aug 2012 09:12:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 09:12:08 +0000 Date: Thu, 30 Aug 2012 20:12:08 +1100 (NCT) From: "Claus Ibsen (JIRA)" To: dev@activemq.apache.org Message-ID: <308462510.15925.1346317928101.JavaMail.jiratomcat@arcas> In-Reply-To: <1368726819.5858.1345735482692.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (AMQ-3988) PooledSession throw Exception at closing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444812#comment-13444812 ] Claus Ibsen commented on AMQ-3988: ---------------------------------- When does this happend? Do you shutdown the application, and then you see the WARN logs. Or do you see them during routing messages? Looking at the source in 5.4.2 vs 5.6.0 then in 5.6.0 there is a try .. catch now with a log WARN. As the logic is clearing the session listener, we could possible enhance AMQ to allow setting the listener to null, even if its already closed. > PooledSession throw Exception at closing > ---------------------------------------- > > Key: AMQ-3988 > URL: https://issues.apache.org/jira/browse/AMQ-3988 > Project: ActiveMQ > Issue Type: Bug > Components: activemq-camel, JMS client > Affects Versions: 5.6.0 > Environment: Mac OSX Snow Leopard, Java 6, ActiveMQ 5.6.0, Camel 2.10, Spring 3.0.7.RELEASE > Reporter: Jorge Davison > Priority: Minor > > Using ActiveMQ library 5.6.0 with Camel 2.10, the PooledSession is throwing IllegalStateException at shutdown application time. > With the version 5.4.2 of ActiveMQ library there is not such behavior. > {code} > 2012-08-23 12:08:48,274 [WARN] PooledSession(122): Caught exception trying close() when putting session back into the pool, will invalidate. javax.jms.IllegalStateException: The Session is closed > javax.jms.IllegalStateException: The Session is closed > at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731) ~[activemq-core-5.6.0.jar:5.6.0] > at org.apache.activemq.ActiveMQSession.setMessageListener(ActiveMQSession.java:813) ~[activemq-core-5.6.0.jar:5.6.0] > at org.apache.activemq.pool.PooledSession.close(PooledSession.java:99) ~[activemq-pool-5.6.0.jar:5.6.0] > at org.springframework.jms.support.JmsUtils.closeSession(JmsUtils.java:108) [spring-jms-3.0.7.RELEASE.jar:3.0.7.RELEASE] > at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.clearResources(DefaultMessageListenerContainer.java:1099) [spring-jms-3.0.7.RELEASE.jar:3.0.7.RELEASE] > at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:999) [spring-jms-3.0.7.RELEASE.jar:3.0.7.RELEASE] > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_33] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_33] > at java.lang.Thread.run(Thread.java:680) [na:1.6.0_33] > {code} > Pool Connection Declaration: > {code} > > > > > > > > > > > > > > > > > > > > > {code} > Maven Dependencies: > {code} > > org.apache.activemq > activemq-camel > 5.6.0 > > > org.apache.activemq > activemq-pool > 5.6.0 > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira