Yes. Just running it out of the box.

Adrian Co wrote:
> 
> Is JMX enabled in the broker?
> 
> sparky2708 wrote:
>> I get the following exception when I run the shutdown script. Any ideas?
>> :
>>
>> ACTIVEMQ_HOME: /home/teprod/apache-activemq-4.1.1
>> ACTIVEMQ_BASE: /home/teprod/apache-activemq-4.1.1
>> ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason:
>> java.io.IOException: Failed to retrieve RMIServer stub:
>> javax.naming.NameNotFoundException: jmxrmi
>> java.lang.RuntimeException: Failed to execute stop task. Reason:
>> java.io.IOException: Failed to retrieve RMIServer stub:
>> javax.naming.NameNotFoundException: jmxrmi
>>         at
>> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:90)
>>         at
>> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50)
>>         at
>> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:67)
>>         at
>> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50)
>>         at
>> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:46)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at org.apache.activemq.console.Main.runTaskClass(Main.java:202)
>>         at org.apache.activemq.console.Main.main(Main.java:91)
>> ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve
>> RMIServer stub: javax.naming.NameNotFoundException: jmxrmi
>> java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer
>> stub:
>> javax.naming.NameNotFoundException: jmxrmi
>>         at
>> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:91)
>>         at
>> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50)
>>         at
>> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:67)
>>         at
>> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50)
>>         at
>> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:46)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at org.apache.activemq.console.Main.runTaskClass(Main.java:202)
>>         at org.apache.activemq.console.Main.main(Main.java:91)
>> Caused by: java.io.IOException: Failed to retrieve RMIServer stub:
>> javax.naming.NameNotFoundException: jmxrmi
>>         at
>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
>>         at
>> javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
>>         at
>> javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:207)
>>         at
>> org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.createJmxConnector(MBeansObjectNameQueryFilter.java:149)
>>         at
>> org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.queryMBeans(MBeansObjectNameQueryFilter.java:106)
>>         at
>> org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.query(MBeansObjectNameQueryFilter.java:94)
>>         at
>> org.apache.activemq.console.filter.AbstractQueryFilter.query(AbstractQueryFilter.java:44)
>>         at
>> org.apache.activemq.console.util.JmxMBeansUtil.getAllBrokers(JmxMBeansUtil.java:31)
>>         at
>> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:52)
>>         ... 10 more
>> Caused by: javax.naming.NameNotFoundException: jmxrmi
>>         at
>> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:95)
>>         at
>> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
>>         at javax.naming.InitialContext.lookup(InitialContext.java:351)
>>         at
>> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1807)
>>         at
>> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1777)
>>         at
>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
>>         ... 18 more
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Shutdown-script-doesn%27t-seem-to-work-in-4.1.1-tf3675585s2354.html#a10279665
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to