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

NullPointerException in MulticastDiscoveryAgent.findNetworkInterface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.13.3
    • 5.14.0
    • Transport
    • None
    • Windows Server 2008 R2 Standard
      jdk1.8.0_77
      Apache Tomcat 8.0.30
      Springframework 4.2.5.Release

    Description

      Broker configuration in spring:

          <amq:broker useJmx="true" persistent="true" schedulerSupport="true" brokerName="hardcollection"
                      dataDirectoryFile="file:${catalina.base}/active-mq">
              <amq:networkConnectors>
                  <amq:networkConnector uri="${activemq.network.connector.uri}" />
              </amq:networkConnectors>
              <amq:transportConnectors>
                  <amq:transportConnector uri="${activemq.transport.connector.uri}" discoveryUri="${activemq.transport.connector.discovery.uri}"/>
              </amq:transportConnectors>
          </amq:broker>
      

      Properties

      activemq.network.connector.uri=multicast://default
      activemq.transport.connector.uri=tcp://localhost:0
      activemq.transport.connector.discovery.uri=multicast://default
      

      Exception throwed when broker is starting.

      Caused by: java.lang.NullPointerException: null
      at org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.findNetworkInterface(MulticastDiscoveryAgent.java:351)
      at org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent.start(MulticastDiscoveryAgent.java:324)
      at org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:253)
      at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2680)
      at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2594)
      at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:756)
      at org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:718)
      at org.apache.activemq.broker.BrokerService.start(BrokerService.java:621)
      at org.apache.activemq.broker.BrokerService.autoStart(BrokerService.java:575)
      at org.apache.activemq.broker.BrokerService.postConstruct(BrokerService.java:562)
      ... 69 common frames omitted

      Attachments

        Activity

          People

            gtully Gary Tully
            space_center Darmen Zhakenov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: