Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2758 rollback does not work on topic
  3. AMQ-2761

Uncaught exception in subscriber ends subscription

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 5.3.0, 5.3.2
    • 5.4.1
    • Broker
    • None

    Description

      We are seeing an issue with ActiveMQ Topic subscription when there is an uncaught exception.

      It appears to be related to an old report (but who knows) :
      http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/<17189972.post@talk.nabble.com>

      Basically, what happens is our Consumer (onMessage) was throwing an NPE. After that happens, the consumer no longer receives any more messages.

      Following it through in the debugger - when the exception is thrown, what we see is the the "ActiveMQ Session Task" thread completes...
      After that, it never seems to execute again. Seems some state in the PooledTaskRunner gets borked? Investigating further - but at first glance it appears it thinks the connection is shutting down...

      Attachments

        1. TestMessageSenderer.java
          2 kB
          ffffff ffffff

        Activity

          People

            Unassigned Unassigned
            ffffff ffffff ffffff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: