You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Steve Young (JIRA)" <ji...@apache.org> on 2007/09/28 14:46:23 UTC
[jira] Created: (AMQ-1436) Using the connectionDotFilePlugin with a
Broker not named localhost causes a NullPointerException
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.
[jira] Assigned: (AMQ-1436) Using the connectionDotFilePlugin with
a Broker not named localhost causes a NullPointerException
Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (AMQ-1436) Using the connectionDotFilePlugin with
a Broker not named localhost causes a NullPointerException
Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
[ 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.