Skip to content
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

Does this plugin work with SSL? #5

Open
GoogleCodeExporter opened this issue Sep 14, 2015 · 10 comments
Open

Does this plugin work with SSL? #5

GoogleCodeExporter opened this issue Sep 14, 2015 · 10 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Modify check_jmx to:-

java -Djavax.net.ssl.trustStore=cacerts.jts
-Djavax.net.ssl.trustStorePassword=testing -cp $RDIR/jmxquery.jar
jmxquery.JMXQuery $@

2. Use the modified .jar file posted on these issues boards..

3. Then run then run:-

./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:17300/jmxrmi -O
java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used
-vvvv -w 731847066 -c 1045495808 -username monitorRole -password test


What is the expected output? What do you see instead?
JMX CRITICAL - error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure connecting to java.lang:type=Memory by URL
service:jmx:rmi:///jndi/rmi://anise.semantico.net:17300/jmxrmijava.rmi.ConnectIO
Exception:
error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at
javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2229)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:271)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248
)
at jmxquery.JMXQuery.connect(JMXQuery.java:64)
at jmxquery.JMXQuery.main(JMXQuery.java:89)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1542)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl
.java:1025)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:619)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
... 8 more


What version of the product are you using? On what operating system?
debian sarge with sun java 5 talking to a tomcat6 running on jdk1.6.0_06

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 16 Sep 2009 at 10:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant