activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kayode Odeyemi <drey...@gmail.com>
Subject Failed to retrieve RMIServer stub
Date Mon, 24 Sep 2012 12:00:49 GMT
Hello,

I'm running ActiveMQ 5.5 on ubuntu server 12.04. Somehow activemq won't
start.

My command log info is described below:

root@build:~# activemq start
INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and
log4j.properties to get details
INFO: changing to user 'activemq' to invoke java
No directory, logging in with HOME=/
-su: line 2: /var/run/activemq.pid: Permission denied
INFO: pidfile created : '/var/run/activemq.pid' (pid '11927')

root@build:~# activemq list
INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
INFO: changing to user 'activemq' to invoke java
No directory, logging in with HOME=/
Java Runtime: Sun Microsystems Inc. 1.6.0_24
/usr/lib/jvm/java-6-openjdk-amd64/jre
  Heap sizes: current=502464k  free=499842k  max=502464k
    JVM args: -Xms512M -Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Dactivemq.classpath=/var/lib/activemq//conf;;
-Dactivemq.home=/usr/share/activemq -Dactivemq.base=/var/lib/activemq/
ACTIVEMQ_HOME: /usr/share/activemq
ACTIVEMQ_BASE: /var/lib/activemq
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.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
java.lang.RuntimeException: Failed to execute list task. Reason:
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
    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.console.command.ShellCommand.runTask(ShellCommand.java:143)
    at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
    at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    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.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer
stub: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
    at
org.apache.activemq.console.command.ListCommand.runTask(ListCommand.java:54)
    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.console.command.ShellCommand.runTask(ShellCommand.java:143)
    at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
    at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    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.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
    at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:342)
    at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
    at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:226)
    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.ListCommand.runTask(ListCommand.java:51)
    ... 11 more
Caused by: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
    at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
    at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
    at javax.naming.InitialContext.lookup(InitialContext.java:409)
    at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1902)
    at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1871)
    at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:276)
    ... 16 more
Caused by: java.rmi.ConnectException: Connection refused to host:
localhost; nested exception is:
    java.net.ConnectException: Connection refused
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
    at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
    ... 21 more
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
    at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
    at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
    at java.net.Socket.connect(Socket.java:546)
    at java.net.Socket.connect(Socket.java:495)
    at java.net.Socket.<init>(Socket.java:392)
    at java.net.Socket.<init>(Socket.java:206)
    at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
    at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:146)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
    ... 26 more

I really don't know what the problem is this time and will appreciate some
help.

Kind regards

-- 
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message