activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMQ-4769) Connection.close() throws exception if already closed.
Date Wed, 02 Oct 2013 13:26:24 GMT

     [ 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)

Mime
View raw message