You can workaround this by adding --jmxlocal to the command. For example,
activemq:list --jxmlocal would list the local ActiveMQ broker. This problem
will be fixed in ServiceMix 4.5 (as per SMX4-784).

Cheers,
Jon

On Wed, Apr 4, 2012 at 10:42 AM, Filippo Balicchia <fbalicc...@gmail.com>wrote:

> Hello All,
>
> I'm using servicemix 4.4.1 full. When I try to use the command
> activemq:list from console i get  the following exception
>
> ERROR: java.lang.RuntimeException: Failed to execute list task.
> Reason: java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.NameNotFoundException: jmxrmi
> java.lang.RuntimeException: Failed to execute list task. Reason:
> java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.NameNotFoundException: jmxrmi
>        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:316)
>        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:89)
>        at
> org.apache.karaf.shell.console.jline.Console.run(Console.java:218)
>        at java.lang.Thread.run(Thread.java:662)
> Error executing command: java.io.IOException: Failed to retrieve
> RMIServer stub: javax.naming.NameNotFoundException: jmxrmi
>
> I use  default configuration,  I try to modify the entry
> activemq.jmx.url in  system.properties but karaf seems unable to make
> the change.
> I've restart the system
>
> Thanks
>
> --filippo
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: j...@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen

Reply via email to