Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2400

QMF NullPointerException on broker shutdown.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: Broker-J
    • Labels:
      None

      Description

      The broker failed to bind throwing:
      BROKER: main 2010-02-10 13:24:30,472 ERROR [Qpid.Broker] Error initialising message broker: java.net.BindException: Could not bind to 0.0.0.0/0.0.0.0:15672
      BROKER: java.net.BindException: Could not bind to 0.0.0.0/0.0.0.0:15672
      BROKER: at org.apache.qpid.transport.network.mina.MINANetworkDriver.bind(MINANetworkDriver.java:165)
      BROKER: at org.apache.qpid.server.Main.startup(Main.java:431)
      BROKER: at org.apache.qpid.server.Main.execute(Main.java:233)
      BROKER: at org.apache.qpid.server.Main.<init>(Main.java:104)
      BROKER: at org.apache.qpid.server.Main.main(Main.java:541)

      So when it then goes to shutdown the QMF throws a NPE.

      BROKER: java.lang.NullPointerException
      BROKER: at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
      BROKER: at org.apache.qpid.qmf.QMFService.unmanageObject(QMFService.java:417)
      BROKER: at org.apache.qpid.qmf.QMFService.onEvent(QMFService.java:395)
      BROKER: at org.apache.qpid.server.configuration.ConfigStore.sendEvent(ConfigStore.java:149)
      BROKER: at org.apache.qpid.server.configuration.ConfigStore.removeConfiguredObject(ConfigStore.java:111)
      BROKER: at org.apache.qpid.server.configuration.SystemConfigImpl.removeBroker(SystemConfigImpl.java:128)
      BROKER: at org.apache.qpid.server.registry.ApplicationRegistry.remove(ApplicationRegistry.java:198)
      BROKER: at org.apache.qpid.server.registry.ApplicationRegistry.removeAll(ApplicationRegistry.java:217)
      BROKER: at org.apache.qpid.server.Main.shutdown(Main.java:254)
      BROKER: at org.apache.qpid.server.Main.execute(Main.java:247)
      BROKER: at org.apache.qpid.server.Main.<init>(Main.java:104)
      BROKER: at org.apache.qpid.server.Main.main(Main.java:541)

      Now I can't tell if the broker always fails to shutdown QMF as the test profiles do not cleanly shutdown the broker. QTC test do an effective kill -9 on the external broker.

        Attachments

          Activity

            People

            • Assignee:
              robbie Robbie Gemmell
              Reporter:
              ritchiem Martin Ritchie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: