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 143D410EA8 for ; Wed, 2 Oct 2013 13:26:26 +0000 (UTC) Received: (qmail 65729 invoked by uid 500); 2 Oct 2013 13:26:25 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65698 invoked by uid 500); 2 Oct 2013 13:26:25 -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 65686 invoked by uid 99); 2 Oct 2013 13:26:24 -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 13:26:24 +0000 Date: Wed, 2 Oct 2013 13:26:24 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMQ-4769) 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-4769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved AMQ-4769. ------------------------------ Resolution: Fixed Fix Version/s: 5.9.0 Thanks for reporting. If the connection is closed we no longer throw the illegal state exception. > Connection.close() throws exception if already closed. > ------------------------------------------------------ > > Key: AMQ-4769 > URL: https://issues.apache.org/jira/browse/AMQ-4769 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.8.0 > Reporter: Christian Schlichtherle > Assignee: Claus Ibsen > Fix For: 5.9.0 > > > The Javadoc for Connection.close() reads > {quote} > Closing a closed connection must NOT throw an exception. > {quote} > 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)