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 667C5D6CA for ; Thu, 23 Aug 2012 15:24:43 +0000 (UTC) Received: (qmail 6927 invoked by uid 500); 23 Aug 2012 15:24:43 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 6881 invoked by uid 500); 23 Aug 2012 15:24:43 -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 6867 invoked by uid 99); 23 Aug 2012 15:24:43 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 15:24:43 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A8D5D2C0A51 for ; Thu, 23 Aug 2012 15:24:42 +0000 (UTC) Date: Fri, 24 Aug 2012 02:24:42 +1100 (NCT) From: "Jorge Davison (JIRA)" To: dev@activemq.apache.org Message-ID: <1368726819.5858.1345735482692.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (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 Jorge Davison created AMQ-3988: ---------------------------------- Summary: 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira