[
https://issues.apache.org/activemq/browse/AMQ-1436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Davies reassigned AMQ-1436:
-------------------------------
Assignee: Rob Davies
> Using the connectionDotFilePlugin with a Broker not named localhost causes a
> NullPointerException
> -------------------------------------------------------------------------------------------------
>
> Key: AMQ-1436
> URL: https://issues.apache.org/activemq/browse/AMQ-1436
> Project: ActiveMQ
> Issue Type: Bug
> Reporter: Steve Young
> Assignee: Rob Davies
> Priority: Minor
>
> To recrate, define a broker in your ActiveMQ config file and specify the
> name, e.g.:
> <broker brokerName="MyBroker" useJmx="true" persistent="true"
> xmlns="http://activemq.org/config/1.0">
> <plugins>
> <connectionDotFilePlugin />
> </plugins -->
> When starting the container a NPE is thrown if no broker called "localhost"
> is present. Changing the name of the broker above to "localhost" stops the
> problem and the .dot files is generated normally.
> FYI The problem appears to be in:
>
> http://activemq.apache.org/maven/activemq-core/xref/org/apache/activemq/broker/view/ConnectionDotFileInterceptor.html
> ...specifically the hardcoded string in this line is in the constuctor:
> ObjectName brokerName = new ObjectName(domain +
> ":Type=Broker,BrokerName=localhost");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.