You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2016/05/20 13:56:13 UTC

[jira] [Resolved] (AMQ-6297) NullPointerException in MulticastDiscoveryAgent.findNetworkInterface

     [ https://issues.apache.org/jira/browse/AMQ-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-6297.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 5.14.0

added a null check, it appears there are no bindings for one of the configured network interfaces on that machine

> NullPointerException in MulticastDiscoveryAgent.findNetworkInterface
> --------------------------------------------------------------------
>
>                 Key: AMQ-6297
>                 URL: https://issues.apache.org/jira/browse/AMQ-6297
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.13.3
>         Environment: Windows Server 2008 R2 Standard
> jdk1.8.0_77
> Apache Tomcat 8.0.30
> Springframework 4.2.5.Release
>            Reporter: Darmen Zhakenov
>            Assignee: Gary Tully
>             Fix For: 5.14.0
>
>
> Broker configuration in spring:
> {code:xml}
>     <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>
> {code}
> Properties
> {code}
> activemq.network.connector.uri=multicast://default
> activemq.transport.connector.uri=tcp://localhost:0
> activemq.transport.connector.discovery.uri=multicast://default
> {code}
> Exception throwed when broker is starting.
> {quote}
> 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
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)