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

FailoverTransport throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.6.0
    • Component/s: Transport
    • Labels:
      None
    • Environment:

      debian java-6-sun activemq 5.2

      Description

      Failover transport occasionally throws NullPointerException

      INFO | jvm 1 | 2012/03/19 09:25:05 | Exception in thread "ActiveMQ Failover Worker: 2009192672" java.lang.NullPointerException
      INFO | jvm 1 | 2012/03/19 09:25:05 | at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:125)
      INFO | jvm 1 | 2012/03/19 09:25:05 | at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      INFO | jvm 1 | 2012/03/19 09:25:05 | at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      It seems like DedicatedTaskRunner starts Thread before FailoverTransport finish initializing reconnectTask field.

      Same code is present in 5.5.1 so it's possible that same bug is out there

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              oczkins Wojciech Oczkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: