[JBoss A-MQ] Error purging queue with colon in queue name

Solution Verified - Updated -

Issue

  • Error purging queue with colon in queue name. See command and error below.
JBossA-MQ:admin@root> activemq:purge event_queue_http://localhost:1147/test
ERROR: java.lang.RuntimeException: Failed to execute purge task. Reason: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
java.lang.RuntimeException: Failed to execute purge task. Reason: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
        at org.apache.activemq.console.command.PurgeCommand.runTask(PurgeCommand.java:140)
        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.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)

Environment

  • Red Hat JBoss A-MQ
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In