Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-2880

TransportDisposedIOException occurs when trying to close ActiveMQ queue

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.2, 2.1
    • 2.0.3, 2.1
    • ActiveMQ
    • Security Level: public (Regular issues)
    • None
    • Windows XP SP2

    Description

      I have discovered some problems with queues while running unittest in our own J2EE app.

      After sending a message on a queue, when we try to call the close() method on the queue, we get the following exception:


      org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#69) disposed.


      where the number after "localhost" is different every time.

      We do not experience this problem with topics. We are using ActiveMQ as part of an "embedded" configuration with Geronimo.

      I've done some debugging and the problem occurs at this line in the ActiveMQMessageProducer.close() method:


      this.session.asyncSendPacket(info.createRemoveCommand());


      The queue itself is disposed properly in the dispose() method that is called in the line before, but this sending of the asynchronous packet fails.

      Attachments

        Activity

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

          People

            vamsic Vamsavardhana Reddy
            ananner Aman Nanner
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment