Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2345

Java Client not detecting cause of session close from client thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • 0.6
    • JIRA Cleanup
    • JMS AMQP 0-x
    • None

    Description

      As exemplified by the SimpleACLTest when the broker closes the connection the client attempts to stop the current activity and remember the cause of the closure to report to the client. However, if the client is in the process of performing a operation such as session.createQueue() the closed state can be deteted before the cause has been set as a result the IllegalStateException is thrown and no cause has been set.

      This was working on 0.5. However, it is possible that the new IO layer is highlighting another race condition. Or that it is not correctly setting the state to CLOSED. Which is required to be done to prompt the client threads to check for a causal exception.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ritchiem Martin Ritchie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: