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

NPE in LastImageSubscriptionRecoveryPolicy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.5.1
    • 5.6.0
    • Broker
    • None
    • Patch Available

    Description

      Start up a subscriber when no messages are available and this NPE will eventually get logged:

      2011-12-02 15:01:00,588 | WARN | Failed to browse Topic: xxx | org.apache.activemq.broker.region.Topic | ActiveMQ Broker[xxx] Scheduler
      java.lang.NullPointerException
      at org.apache.activemq.broker.region.policy.LastImageSubscriptionRecoveryPolicy.browse(LastImageSubscriptionRecoveryPolicy.java:63)
      at org.apache.activemq.broker.region.Topic.browse(Topic.java:564)
      at org.apache.activemq.broker.region.Topic$6.run(Topic.java:659)
      at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

      repeatedly every 30 seconds or so until a message is sent to the topic.

      Attachments

        1. 0001-Avoid-NPE.patch
          1 kB
          Stanley J. Lewis
        2. 0002-Add-test-for-AMQ-3622.patch
          4 kB
          Stanley J. Lewis

        Issue Links

          Activity

            People

              gtully Gary Tully
              slewis Stanley J. Lewis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: