activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Davies (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-1436) Using the connectionDotFilePlugin with a Broker not named localhost causes a NullPointerException
Date Wed, 24 Sep 2008 15:03:52 GMT

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

Rob Davies resolved AMQ-1436.
-----------------------------

    Resolution: Fixed

Fixed by SVN revision 698603

> 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
>             Fix For: 5.3.0
>
>
> 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.


Mime
View raw message