You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Christian Schlichtherle (JIRA)" <ji...@apache.org> on 2013/10/02 12:02:23 UTC
[jira] [Created] (AMQ-4773) Connection.close() throws exception if
already closed.
Christian Schlichtherle created AMQ-4773:
--------------------------------------------
Summary: Connection.close() throws exception if already closed.
Key: AMQ-4773
URL: https://issues.apache.org/jira/browse/AMQ-4773
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.8.0
Environment: Java SE 1.6
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)