You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Michael Justin <mi...@gmx.net> on 2012/04/11 20:51:57 UTC

ActiveMQ 5.6-SNAPSHOT error with activemq-admin stop command

Hello,

after launching with xbean:activemq-stomp.xml, I can stop the server 
(versions 5.3.2, 5.4.3, 5.5.1, on localhost) with activemq-admin stop

With the 5.6 snapshot, I see this error:

C:\Java\apache-activemq-5.6-SNAPSHOT\bin>call activemq-admin.bat stop
Java Runtime: Sun Microsystems Inc. 1.6.0_07 C:\Program 
Files\Java\jdk1.6.0_07\j
re
   Heap sizes: current=5056k  free=4656k  max=65088k
     JVM args: 
-Dactivemq.classpath=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\c
onf;C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data; 
-Dactivemq.home=C:\Java\ap
ache-activemq-5.6-SNAPSHOT\bin\.. 
-Dactivemq.base=C:\Java\apache-activemq-5.6-SN
APSHOT\bin\.. 
-Dactivemq.data=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data -
Djava.io.tmpdir=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data\tmp 
-Dactivemq.
conf=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\conf
ACTIVEMQ_HOME: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..
ACTIVEMQ_BASE: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..
ACTIVEMQ_CONF: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\conf
ACTIVEMQ_DATA: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data
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.ServiceUnavailableE
xception [Root exception is java.rmi.ConnectException: Connection 
refused to hos
t: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
java.lang.RuntimeException: Failed to execute stop task. Reason: 
java.io.IOExcep
tion: Failed to retrieve RMIServer stub: 
javax.naming.ServiceUnavailableExceptio
n [Root exception is java.rmi.ConnectException: Connection refused to 
host: loca
lhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at 
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownC
ommand.java:107)
         at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
         at 
org.apache.activemq.console.command.AbstractJmxCommand.execute(Abstra
ctJmxCommand.java:380)
         at 
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
.java:148)
         at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
         at 
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
va:90)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
         at org.apache.activemq.console.Main.main(Main.java:111)
ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve 
RMIServer st
ub: javax.naming.ServiceUnavailableException [Root exception is 
java.rmi.Connect
Exception: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer 
stub: jav
ax.naming.ServiceUnavailableException [Root exception is 
java.rmi.ConnectExcepti
on: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at 
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownC
ommand.java:108)
         at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
         at 
org.apache.activemq.console.command.AbstractJmxCommand.execute(Abstra
ctJmxCommand.java:380)
         at 
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
.java:148)
         at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
         at 
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
va:90)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
         at org.apache.activemq.console.Main.main(Main.java:111)
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: 
javax.naming.
ServiceUnavailableException [Root exception is 
java.rmi.ConnectException: Connec
tion refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at 
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:32
3)
         at 
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
ry.java:248)
         at 
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
ry.java:207)
         at 
org.apache.activemq.console.command.AbstractJmxCommand.createJmxConne
ctor(AbstractJmxCommand.java:278)
         at 
org.apache.activemq.console.command.AbstractJmxCommand.createJmxConne
ction(AbstractJmxCommand.java:301)
         at 
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownC
ommand.java:71)
         ... 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: connect]
         at 
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
:101)
         at 
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.j
ava:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at 
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnect
or.java:1871)
         at 
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.j
ava:1841)
         at 
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:25
7)
         ... 16 more
Caused by: java.rmi.ConnectException: Connection refused to host: 
localhost; nes
ted exception is:
         java.net.ConnectException: Connection refused: connect
         at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198
)
         at 
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at 
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java
:97)
         ... 21 more
Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:180)
         at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:22)
         at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:128)
         at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
         ... 26 more
Drücken Sie eine beliebige Taste . . .


The startup log is


C:\Java\apache-activemq-5.6-SNAPSHOT\bin>call activemq-admin.bat start 
xbean:act
ivemq-stomp.xml
Java Runtime: Sun Microsystems Inc. 1.6.0_07 C:\Program 
Files\Java\jdk1.6.0_07\j
re
   Heap sizes: current=5056k  free=4451k  max=520256k
     JVM args: -Dcom.sun.management.jmxremote -Xmx512M 
-Dorg.apache.activemq.UseD
edicatedTaskRunner=true 
-Djava.util.logging.config.file=logging.properties -Dact
ivemq.classpath=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\conf;C:\Java\apache-
activemq-5.6-SNAPSHOT\bin\..\data; 
-Dactivemq.home=C:\Java\apache-activemq-5.6-S
NAPSHOT\bin\.. 
-Dactivemq.base=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\.. -Dact
ivemq.data=C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data 
-Djava.io.tmpdir=C:\
Java\apache-activemq-5.6-SNAPSHOT\bin\..\data\tmp 
-Dactivemq.conf=C:\Java\apache
-activemq-5.6-SNAPSHOT\bin\..\conf
ACTIVEMQ_HOME: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..
ACTIVEMQ_BASE: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..
ACTIVEMQ_CONF: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\conf
ACTIVEMQ_DATA: C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data
Loading message broker from: xbean:activemq-stomp.xml
  INFO | Refreshing 
org.apache.activemq.xbean.XBeanBrokerFactory$1@11f2ee1: start
up date [Wed Apr 11 20:50:46 CEST 2012]; root of context hierarchy
  INFO | 
PListStore:[C:\Java\apache-activemq-5.6-SNAPSHOT\bin\..\data\localhost\t
mp_storage ] started
  INFO | Using Persistence Adapter: 
KahaDBPersistenceAdapter[C:\Java\apache-activ
emq-5.6-SNAPSHOT\bin\..\data\kahadb]
  INFO | KahaDB is version 4
  INFO | Recovering from the journal ...
  INFO | Recovery replayed 3 operations from the journal in 0.019 seconds.
  INFO | ActiveMQ 5.6-SNAPSHOT JMS Message Broker (localhost) is starting
  INFO | For help or more information please see: 
http://activemq.apache.org/
  INFO | Listening for connections at: 
stomp://mj-PC:61612?transport.closeAsync=f
alse
  INFO | Connector stomp Started
  INFO | Listening for connections at: 
stomp+nio://mj-PC:61613?transport.closeAsy
nc=false
  INFO | Connector stomp+nio Started
  INFO | ActiveMQ JMS Message Broker (localhost, 
ID:mj-PC-51431-1334170248423-0:1
) started
  WARN | Store limit is 100000 mb, whilst the data directory: 
C:\Java\apache-acti
vemq-5.6-SNAPSHOT\bin\..\data\kahadb only has 67455 mb of free space
  INFO | jetty-7.6.1.v20120215
  INFO | ActiveMQ WebConsole initialized.
  INFO | started 
o.e.j.w.WebAppContext{/admin,file:/C:/Java/apache-activemq-5.6-S
NAPSHOT/webapps/admin/}
  INFO | Initializing Spring FrameworkServlet 'dispatcher'
  INFO | ActiveMQ Console at http://0.0.0.0:8161/admin
  INFO | started 
o.e.j.w.WebAppContext{/demo,file:/C:/Java/apache-activemq-5.6-SN
APSHOT/webapps/demo/}
  INFO | ActiveMQ Web Demos at http://0.0.0.0:8161/demo
  INFO | started 
o.e.j.w.WebAppContext{/fileserver,file:/C:/Java/apache-activemq-
5.6-SNAPSHOT/webapps/fileserver/}
  INFO | RESTful file access application at http://0.0.0.0:8161/fileserver
  INFO | Started SelectChannelConnector@0.0.0.0:8161

-- 
Michael Justin
habarisoft - Enterprise Messaging Software for Delphi
http://www.habarisoft.com/