You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Bruce Snyder (JIRA)" <ji...@apache.org> on 2010/09/18 18:47:46 UTC

[jira] Updated: (AMQ-2452) Option to "activemq-admin" do not work properly

     [ https://issues.apache.org/activemq/browse/AMQ-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Snyder updated AMQ-2452:
------------------------------

    Fix Version/s: 5.5.0
                       (was: 5.4.1)

> Option to "activemq-admin" do not work properly
> -----------------------------------------------
>
>                 Key: AMQ-2452
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2452
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.3.0
>            Reporter: Marc Schöchlin
>             Fix For: 5.5.0
>
>
> All options of the start script "activemq-admin" except "start" do not work.
> (including no-option)
> activemq@host:~/bin> ./activemq-admin
> ./activemq-admin: line 132: [: =: unary operator expected
> Java Runtime: IBM Corporation 1.6.0 /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre
> activemq@host:~/bin> ./activemq-admin stop
> Java Runtime: IBM Corporation 1.6.0 /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre
>   Heap sizes: current=4096k  free=3150k  max=524288k                       
>     JVM args: -Xjcl:jclscar_24 -Dcom.ibm.oti.vm.bootstrap.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64 -Dsun.boot.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64 -Djava.library.path=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/default:/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64:/usr/lib -Djava.home=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre -Djava.ext.dirs=/usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/ext -Duser.dir=/opt/apache-activemq-5.3.0/bin _j2se_j9=1119744 -Xdump -Djava.class.path=. -Dactivemq.classpath=/opt/apache-activemq/conf; -Dactivemq.home=/opt/apache-activemq -Dactivemq.base=/opt/apache-activemq -Djava.class.path=/opt/apache-activemq/bin/run.jar -Dsun.java.command=/opt/apache-activemq/bin/run.jar stop -Dsun.java.launcher=SUN_STANDARD -Dsun.java.launcher.pid=405 _port_library _org.apache.harmony.vmi.portlib
> ACTIVEMQ_HOME: /opt/apache-activemq
> ACTIVEMQ_BASE: /opt/apache-activemq
> 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.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
> java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
>         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:129)
>         at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:599)
>         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.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
> java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
>         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:129)
>         at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:599)
>         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.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
>         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:334)
>         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:259)
>         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:218)
>         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.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
>         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:113)
>         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:197)
>         at javax.naming.InitialContext.lookup(InitialContext.java:455)
>         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1882)
>         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1852)
>         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:268)
>         ... 16 more
> Caused by: java.rmi.ConnectIOException: non-JRMP server at remote endpoint
>         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:242)
>         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
>         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:334)
>         at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:89)
>         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:109)
>         ... 21 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.