You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jean-Baptiste Onofré (Created JIRA)" <ji...@apache.org> on 2011/10/20 19:50:11 UTC
[jira] [Created] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
activemq:list doesn't use the correct Karaf JMX URL by default
--------------------------------------------------------------
Key: AMQ-3552
URL: https://issues.apache.org/jira/browse/AMQ-3552
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.5.0
Reporter: Jean-Baptiste Onofré
Fix For: 5.5.1
After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
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)
Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
More over, ActiveMQ should use the Karaf serviceURL property.
I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133588#comment-13133588 ]
Jean-Baptiste Onofré commented on AMQ-3552:
-------------------------------------------
Thanks for the update Freeman. I tried with ActiveMQ 5.5.0 on Karaf 2.2.4. I will try using ActiveMQ 5.6.0 SNAPSHOT to check if it's fixed (outside ServiceMix).
> activemq:list doesn't use the correct Karaf JMX URL by default
> --------------------------------------------------------------
>
> Key: AMQ-3552
> URL: https://issues.apache.org/jira/browse/AMQ-3552
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 5.6.0
>
>
> After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 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)
> Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> More over, ActiveMQ should use the Karaf serviceURL property.
> I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
Posted by "Timothy Bish (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish updated AMQ-3552:
------------------------------
Fix Version/s: (was: 5.6.0)
5.x
> activemq:list doesn't use the correct Karaf JMX URL by default
> --------------------------------------------------------------
>
> Key: AMQ-3552
> URL: https://issues.apache.org/jira/browse/AMQ-3552
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 5.x
>
>
> After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 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)
> Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> More over, ActiveMQ should use the Karaf serviceURL property.
> I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
Posted by "Timothy Bish (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish updated AMQ-3552:
------------------------------
Fix Version/s: (was: 5.5.1)
5.6.0
> activemq:list doesn't use the correct Karaf JMX URL by default
> --------------------------------------------------------------
>
> Key: AMQ-3552
> URL: https://issues.apache.org/jira/browse/AMQ-3552
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 5.6.0
>
>
> After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 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)
> Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> More over, ActiveMQ should use the Karaf serviceURL property.
> I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
Posted by "Gary Tully (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Tully resolved AMQ-3552.
-----------------------------
Resolution: Fixed
Fix Version/s: (was: 5.x)
5.6.0
resolving based on freeman's comments. thanks.
> activemq:list doesn't use the correct Karaf JMX URL by default
> --------------------------------------------------------------
>
> Key: AMQ-3552
> URL: https://issues.apache.org/jira/browse/AMQ-3552
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 5.6.0
>
>
> After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 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)
> Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> More over, ActiveMQ should use the Karaf serviceURL property.
> I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
Posted by "Freeman Fang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133542#comment-13133542 ]
Freeman Fang commented on AMQ-3552:
-----------------------------------
Hi JB,
This issue already get fixed by AMQ-3247 and SMX4-784.
With this fix the output is
karaf@root> activemq:list
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
BrokerName = default
Freeman
> activemq:list doesn't use the correct Karaf JMX URL by default
> --------------------------------------------------------------
>
> Key: AMQ-3552
> URL: https://issues.apache.org/jira/browse/AMQ-3552
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 5.6.0
>
>
> After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 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)
> Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> More over, ActiveMQ should use the Karaf serviceURL property.
> I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3552) activemq:list doesn't use the correct
Karaf JMX URL by default
Posted by "Freeman Fang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133589#comment-13133589 ]
Freeman Fang commented on AMQ-3552:
-----------------------------------
As I mentioned AMQ-3247 and SMX4-784 work together fixed it, so besides use Activemq 5.6-SNAPSHOT you also need
add
+#
+# Activemq JMX configuration
+#
+activemq.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${karaf.name}
+activemq.jmx.user=smx
+activemq.jmx.password=smx
+
+
to karaf etc/system.properties to make it work.
Freeman
> activemq:list doesn't use the correct Karaf JMX URL by default
> --------------------------------------------------------------
>
> Key: AMQ-3552
> URL: https://issues.apache.org/jira/browse/AMQ-3552
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.5.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 5.6.0
>
>
> After a fresh ActiveMQ installation on Karaf, the activemq:list command doesn't use the correct JMX URL by default:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> 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)
> Whereas it should use service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> More over, ActiveMQ should use the Karaf serviceURL property.
> I'm gonna submit a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira