activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Young (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-1436) Using the connectionDotFilePlugin with a Broker not named localhost causes a NullPointerException
Date Fri, 28 Sep 2007 12:46:23 GMT
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
            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.


Mime
View raw message