activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kseelam <krishna_see...@hotmail.com>
Subject javax.naming.NameNotFoundException: jmxrmi
Date Mon, 04 Oct 2010 19:03:48 GMT

Hi

Thanks in advance.  (I am posting this again as my earlier post was not
accepted by the users group because of i did not subscribe. Now i am
subscribed, hope some one will help!)

We are getting the following error while stopping the ActiveMq 5.4 by
calling "bin/activemq stop" operation.
Since is NOT shutting down properly, the "public void stop()"  method in
side our "class OurDBLocker implements DatabaseLocker" is NOT being called.

(FYI, We use and set our own database locker implementation as
<jdbcPersistenceAdapter databaseLocker="#ourdblocker"> which works fine, No
issues with Locker)

This error happens when we tried with the out of box "activemq.xml' also. 

Error details:

INFO: Using java '/usr/java/jre1.6.0_20/bin/java'
INFO: Waiting at least 30 seconds for regular process termination of pid
'28680' : Java Runtime: Sun Microsystems Inc. 1.6.0_20 /usr/java/jre1.6.0_20
  Heap sizes: current=15872k  free=15474k  max=253440k
    JVM args:
-Dactivemq.classpath=/opt/activemq/5.4.0/apache-activemq-5.4.0/conf;
-Dactivemq.home=/opt/activemq/5.4.0/apache-activemq-5.4.0
-Dactivemq.base=/opt/activemq/5.4.0/apache-activemq-5.4.0
ACTIVEMQ_HOME: /opt/activemq/5.4.0/apache-activemq-5.4.0
ACTIVEMQ_BASE: /opt/activemq/5.4.0/apache-activemq-5.4.0
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
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:106)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:292)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:137)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
        at org.apache.activemq.console.Main.main(Main.java:107)
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:107)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:292)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:137)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
        at org.apache.activemq.console.Main.main(Main.java:107)
Caused by: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.NameNotFoundException: jmxrmi
        at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
        at javax.management.remote.JMXConnectorFactory.connect(Unknown
Source)
        at javax.management.remote.JMXConnectorFactory.connect(Unknown
Source)
        at
org.apache.activemq.console.command.AbstractJmxCommand.createJmxConnector(AbstractJmxCommand.java:214)
        at
org.apache.activemq.console.command.AbstractJmxCommand.createJmxConnection(AbstractJmxCommand.java:237)
        at
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:70)
        ... 11 more
Caused by: javax.naming.NameNotFoundException: jmxrmi
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
        at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
        at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown
Source)
        ... 17 more
..............................

Our environment:

Java:
jre1.6.0_20

OS:
Linux version 2.6.18-194.3.1.el5
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-48))

Also:
Is JDK required to run ActiveMq 5.4 on Linux?  We are using JRE and no
issues except the above error.  
Could you please suggest why are we getting the above error? 


Any help would be appreciated.

Thank you.
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/javax-naming-NameNotFoundException-jmxrmi-tp2954903p2954903.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message