Hi, I had the same problem and got this answer from Freeman Fang:
This is a known issue [1] for Apache Servicemix 4.3 and already get fixed, you have two workaround so far 1. use activemq:list --jmxlocal instead which will use the local JMX server instead of a remote one. 2. change <managementContext createConnector="false"/> to <managementContext createConnector="true"/> in etc/activemq-broker.xml You can get more details from [1] [1] https://issues.apache.org/jira/browse/SMX4-784 Regards, Stefan Am 24.08.2011 um 08:07 schrieb Gnanaguru S: > Hi > > When i tried > > activemq:list, I was not able to get anything . Since i am trying out some > clustering > > karaf@root> activemq: > activemq:browse activemq:bstat activemq:create-broker > > activemq:destroy-broker > activemq:list activemq:purge activemq:query > karaf@root> activemq:list > Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/karaf- > ERROR: java.lang.RuntimeException: Failed to execute list task. Reason: > java.io.IOException: Failed to retriev > e RMIServer stub: javax.naming.NameNotFoundException: karaf- > java.lang.RuntimeException: Failed to execute list task. Reason: > java.io.IOException: Failed to retrieve RMISe > rver stub: javax.naming.NameNotFoundException: karaf- > at > org.apache.activemq.console.command.ListCommand.runTask(ListCommand.java:53) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > at > org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:322) > at > org.apache.activemq.karaf.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:46) > > at > org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38) > at > org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) > at > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78) > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474) > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400) > 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:79) > at > org.apache.karaf.shell.console.jline.Console.run(Console.java:240) > at java.lang.Thread.run(Thread.java:619) > Error executing command: java.io.IOException: Failed to retrieve RMIServer > stub: javax.naming.NameNotFoundExce > ption: karaf- > karaf@root> activemq:browse > ERROR: java.lang.IllegalArgumentException: No JMS destination specified. > java.lang.IllegalArgumentException: No JMS destination specified. > at > org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:88) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > at > org.apache.activemq.karaf.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:46) > > at > org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38) > at > org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) > at > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78) > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474) > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400) > 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:79) > at > org.apache.karaf.shell.console.jline.Console.run(Console.java:240) > at java.lang.Thread.run(Thread.java:619) > karaf@root> > > Please help me out > > Regards > Guru > > ----- > Cheers > Guru > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/error-when-activemq-list-in-smx4-tp4729357p4729357.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
