Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1042

activemq:query -QTopic=* -QQueue=* MalformedObjectNameException: key `type' already defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.2
    • JBoss A-MQ 6.2
    • None

      executing query -QTopic=* -QQueue=* --view EnqueueCount,DequeueCount will result in following exception:

      JBossFuse:karaf@root> query -QTopic=* -QQueue=* --view EnqueueCount,DequeueCount
      ERROR: java.lang.RuntimeException: Failed to execute query task. Reason: javax.management.MalformedObjectNameException: key `type' already defined
      java.lang.RuntimeException: Failed to execute query task. Reason: javax.management.MalformedObjectNameException: key `type' already defined
      	at org.apache.activemq.console.command.QueryCommand.runTask(QueryCommand.java:122)
      	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:62)
      	at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
      	at org.apache.activemq.karaf.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:49)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
      	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
      	at org.apache.activemq.karaf.commands.$ActiveMQCommand2140153792.execute(Unknown Source)
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)
      	at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)
      Error executing command: javax.management.MalformedObjectNameException: key `type' already defined
      

      This example is not working with 5.11.1 standalone amq.
      In fuse/amq/standalone amq it is mentioned in activemq:query --help, so it should work / it should be removed from help

              gtully@redhat.com Gary Tully
              avano@redhat.com Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: