Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4769

Connection.close() throws exception if already closed.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0
    • 5.9.0
    • None
    • None

    Description

      The Javadoc for Connection.close() reads

      Closing a closed connection must NOT throw an exception.

      Yet, I get this:

      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
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            christians Christian Schlichtherle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment