You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2020/11/03 01:15:01 UTC
[jira] [Closed] (ARTEMIS-2935) Cannot start broker when
jmx-use-broker-name is set
[ https://issues.apache.org/jira/browse/ARTEMIS-2935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clebert Suconic closed ARTEMIS-2935.
------------------------------------
Fix Version/s: 2.16.0
Resolution: Fixed
> Cannot start broker when jmx-use-broker-name is set
> ---------------------------------------------------
>
> Key: ARTEMIS-2935
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2935
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: JMX
> Affects Versions: 2.15.0
> Environment: Tested on
> * Ubuntu 18.04.5 LTS version, with Java 1.8.0_131
> * The docker image vromero{color:#cc7832}/{color}activemq-artemis
>
> Reporter: Jean-Baptiste Simillon
> Assignee: Domenico Francesco Bruscino
> Priority: Major
> Fix For: 2.16.0
>
> Attachments: artemis.log
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When starting a fresh server with these settings in the broker.xml files :
> {code:java}
> <jmx-use-broker-name>false</jmx-use-broker-name>
> <jmx-management-enabled>true</jmx-management-enabled>{code}
> As stated in the documentation it should just remove the broker name in the JMX object name but instead the server crash with error :
> {code:java}
> 2020-10-07 15:44:35,829 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: javax.management.MalformedObjectNameException: Key properties cannot be empty
> at javax.management.ObjectName.construct(ObjectName.java:483) [rt.jar:1.8.0_131]
> at javax.management.ObjectName.<init>(ObjectName.java:1382) [rt.jar:1.8.0_131]
> at javax.management.ObjectName.getInstance(ObjectName.java:1273) [rt.jar:1.8.0_131]
> at org.apache.activemq.artemis.api.core.management.ObjectNameBuilder.getActiveMQServerObjectName(ObjectNameBuilder.java:85) [artemis-core-client-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.registerServer(ManagementServiceImpl.java:219) [artemis-server-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart1(ActiveMQServerImpl.java:2919) [artemis-server-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:68) [artemis-server-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:603) [artemis-server-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:530) [artemis-server-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:61) [artemis-cli-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:90) [artemis-cli-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:153) [artemis-cli-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:101) [artemis-cli-2.15.0.jar:2.15.0]
> at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:128) [artemis-cli-2.15.0.jar:2.15.0]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_131]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_131]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_131]
> at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_131]
> at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134) [artemis-boot.jar:2.15.0]
> at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50) [artemis-boot.jar:2.15.0] {code}
> Attached is the full log, the error appears twice, when starting and when attempting to stop after the error was raised
--
This message was sent by Atlassian Jira
(v8.3.4#803005)