Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2935

Cannot start broker when jmx-use-broker-name is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.15.0
    • 2.16.0
    • JMX
    • None
    • Tested on

      • Ubuntu 18.04.5 LTS version, with Java 1.8.0_131
      • The docker image vromero/activemq-artemis

       

    Description

      When starting a fresh server with these settings in the broker.xml files :

      <jmx-use-broker-name>false</jmx-use-broker-name>
      <jmx-management-enabled>true</jmx-management-enabled>

      As stated in the documentation it should just remove the broker name in the JMX object name but instead the server crash with error :

      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] 

      Attached is the full log, the error appears twice, when starting and when attempting to stop after the error was raised

      Attachments

        1. artemis.log
          15 kB
          Jean-Baptiste Simillon

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              jbsimillon Jean-Baptiste Simillon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h