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

Broker startup issue with MQTT

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: Broker, MQTT
    • Labels:
      None
    • Environment:

      Linux (RHEL 7 CSB x64_86 and Fedora 24 ARMv7)

      Description

      Steps to reproduce:

      • Download artemis
      • Run /bin/artemis create --user secret --password fooBAR --require-login directory to create a new instance
      • Run directory/bin/artemis run once
      • Subscribe to MQTT topic "#"
      • Publish to MQTT topic "foo/bar/baz"
      • Hit Ctrl-C on the broker
      • Run directory/bin/artemis run again

      Startup exception (broker is unusable):

      11:57:07,143 INFO  [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
      11:57:07,143 INFO  [org.apache.activemq.artemis.core.server] AMQ221035: Live Server Obtained live lock
      11:57:07,400 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.IllegalStateException: AMQ119209: Can't remove routing type MULTICAST, queues exists for address: DLQ. Please delete queues before removing this routing type.
      	at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.validateRoutingTypes(SimpleAddressManager.java:255) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.lambda$updateAddressInfo$0(SimpleAddressManager.java:239) [artemis-server-2.1.0.jar:2.1.0]
      	at java.util.concurrent.ConcurrentHashMap.computeIfPresent(ConcurrentHashMap.java:1769) [rt.jar:1.8.0_131]
      	at org.apache.activemq.artemis.core.postoffice.impl.SimpleAddressManager.updateAddressInfo(SimpleAddressManager.java:238) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.updateAddressInfo(PostOfficeImpl.java:485) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.updateAddressInfo(ActiveMQServerImpl.java:2443) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addOrUpdateAddressInfo(ActiveMQServerImpl.java:2474) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.deployAddressesFromConfiguration(ActiveMQServerImpl.java:2324) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.deployAddressesFromConfiguration(ActiveMQServerImpl.java:2318) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:2237) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:71) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:518) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:466) [artemis-server-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:111) [artemis-cli-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:73) [artemis-cli-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:148) [artemis-cli-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:95) [artemis-cli-2.1.0.jar:2.1.0]
      	at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:122) [artemis-cli-2.1.0.jar:2.1.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:129) [artemis-boot.jar:2.1.0]
      	at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) [artemis-boot.jar:2.1.0]
      
      

        Attachments

        1. data.tar.gz
          23 kB
          Jens Reimann

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ctron Jens Reimann
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: