Details
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