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 CDF98108E7 for ; Wed, 2 Oct 2013 10:04:29 +0000 (UTC) Received: (qmail 52447 invoked by uid 500); 2 Oct 2013 10:04:28 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 52303 invoked by uid 500); 2 Oct 2013 10:04:26 -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 52188 invoked by uid 99); 2 Oct 2013 10:04:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 10:04:25 +0000 Date: Wed, 2 Oct 2013 10:04:24 +0000 (UTC) From: "Christian Schlichtherle (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4771) Connection.close() throws exception if already closed. 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-4771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783786#comment-13783786 ] Christian Schlichtherle commented on AMQ-4771: ---------------------------------------------- http://docs.oracle.com/javaee/6/api/javax/jms/Connection.html#close() > Connection.close() throws exception if already closed. > ------------------------------------------------------ > > Key: AMQ-4771 > URL: https://issues.apache.org/jira/browse/AMQ-4771 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.8.0 > Reporter: Christian Schlichtherle > > The Javadoc for Connection.close() reads: "Closing a closed connection must NOT throw an exception." > Yet, I get this: > {code} > Exception in thread "TrueUpdate Manager JMS / Receiver" java.lang.IllegalStateException: org.apache.activemq.ConnectionClosedException: The connection is already closed > at net.java.trueupdate.jms.JmsReceiver.run(JmsReceiver.java:105) > at java.lang.Thread.run(Thread.java:680) > Caused by: org.apache.activemq.ConnectionClosedException: The connection is already closed > at org.apache.activemq.ActiveMQConnection.checkClosed(ActiveMQConnection.java:1477) > at org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1464) > at org.apache.activemq.ActiveMQConnection.stop(ActiveMQConnection.java:566) > at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:630) > at net.java.trueupdate.jms.JmsReceiver.run(JmsReceiver.java:97) > ... 1 more > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)