Unable to connect to AMQ 7 broker instance using command line tool
Issue
When attempting to connect to an AMQ 7 broker instance using the command line tool as follows:
./artemis queue stat --url tcp://localhost:61616 --user admin --password admin --verbose
The following error occurs:
Connection failed::Failed to create session factory
--url: is a mandatory property!
Type in the broker URL for a retry (e.g. tcp://localhost:61616)
tcp://localhost:61616
Exception in thread "main" ActiveMQConnectionTimedOutException[errorType=CONNECTION_TIMEDOUT message=AMQ119013: Timed out waiting to receive cluster topology. Group:null]
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:807)
at org.apache.activemq.artemis.cli.commands.AbstractAction.performCoreManagement(AbstractAction.java:35)
at org.apache.activemq.artemis.cli.commands.queue.StatQueue.printStats(StatQueue.java:124)
at org.apache.activemq.artemis.cli.commands.queue.StatQueue.execute(StatQueue.java:119)
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:96)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:123)
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.activemq.artemis.boot.Artemis.execute(Artemis.java:129)
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49)
[appatmqd@miatmq01a-dvl bin]$
Environment
- AMQ 7.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.