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

NullPointerException in SimpleDiscoveryEvent on Shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.10.0
    • 5.11.0
    • Broker
    • None

    Description

      If startup of a broker fails when using SimpleDiscoveryAgent, then you will encounter a NullPointerException on shutdown because the TaskRunnerFactory instance is created during startup and there is no check to ensure it was created before attempting the shutdown:

      org.apache.activemq.network.DiscoveryNetworkConnector Could not stop service: DiscoveryNetworkConnector:NC:BrokerService[...]. Reason: java.lang.NullPointerException
      at org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent.stop(SimpleDiscoveryAgent.java:96)

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            john.arnesen@53.com John Arnesen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: