Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-945

NPE when stopping a MDB while it handles a message

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.18.Final
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      if a MDB is handling a message when it is undeployed, it is possible that its endpoint is null when the call to MessageListner.onMessage() returns.
      This result in a NPE when calling endpoint.afterDelivery().

      calls to endpoint after the call to MessageListener.onMessage() must be checked to ensure the endpoint is not null (and still active)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  clebert.suconic Clebert Suconic
                  Reporter:
                  jmesnil Jeff Mesnil
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: