-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMX auth + SSL do not work with version 1.0.1 #78
Comments
Just tested with 1.0.0 and 1.0.1. It did not work in either case. However it does work with jconsole 13.0.2+8. Here is the command used to launch: Here is the output when testing with 1.0.0 constituent[0]: jar:file:/opt/vertexcachecontrol/jmxterm-1.0.0-uber.jar!/WORLDS-INF/lib/jmxterm.jar
|
java -Djavax.net.ssl.trustStore=/path/truststore.jks -Djavax.net.ssl.trustStorePassword=password -jar jmxterm-1.0.1-uber.jar -l service:jmx:rmi:///jndi/rmi://1.2.3.4:8099/jmxrmi -u foo -p foobar
Exception in thread "main" 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:369)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
at org.cyclopsgroup.jmxterm.cc.SessionImpl.doConnect(SessionImpl.java:64)
at org.cyclopsgroup.jmxterm.cc.SessionImpl.connect(SessionImpl.java:39)
at org.cyclopsgroup.jmxterm.cc.CommandCenter.connect(CommandCenter.java:103)
at org.cyclopsgroup.jmxterm.boot.CliMain.execute(CliMain.java:126)
at org.cyclopsgroup.jmxterm.boot.CliMain.main(CliMain.java:41)
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:136)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1955)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287)
... 6 more
Caused by: java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:248)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338)
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:132)
... 11 more
With jconsole it works.
From an earlier issue, this was fixed in 1.0.1 ?
The text was updated successfully, but these errors were encountered: