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

SSLHandshakeException occured when execute start-domain after enable-secure-admin #23650

Closed
11rx4f opened this issue Oct 6, 2021 · 0 comments · Fixed by #23651
Closed

SSLHandshakeException occured when execute start-domain after enable-secure-admin #23650

11rx4f opened this issue Oct 6, 2021 · 0 comments · Fixed by #23651

Comments

@11rx4f
Copy link
Contributor

11rx4f commented Oct 6, 2021

Environment Details

  • GlassFish Version (and build number): Eclipse GlassFish 6.2.1 (build master-b577-g50d68a3 2021-09-01T02:07:52+0000)
  • JDK version: OpenJDK 64-Bit Server VM Temurin-11.0.12+7
  • OS: CentOS Linux release 7.9.2009 (Core)
  • Database:

Problem Description

"javax.net.ssl.SSLHandshakeException: No appropriate protocol" is printed in the server.log when execute start-domain after enable-secure-admin.

[2021-10-06T09:14:21.071+0900] [glassfish 6.2] [SEVERE] [] [] [tid: _ThreadID=56 _ThreadName=Thread-8] [timeMillis: 1633479261071] [levelValue: 1000] [[
  java.io.IOException: Cannot bind to URL [rmi://9d1918b9d298:8686/jmxrmi]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)]
        at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:854)
        at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:501)
        at org.glassfish.admin.mbeanserver.RMIConnectorStarter.start(RMIConnectorStarter.java:296)
        at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.startConnector(JMXStartupService.java:290)
        at org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread.run(JMXStartupService.java:322)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)]
        at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:178)
        at java.naming/com.sun.jndi.toolkit.url.GenericURLContext.rebind(GenericURLContext.java:253)
        at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425)
        at java.naming/javax.naming.InitialContext.rebind(InitialContext.java:425)
        at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:711)
        at java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:496)
        ... 3 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
        at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:300)
        at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
        at java.rmi/sun.rmi.server.UnicastRef.newCall(UnicastRef.java:343)
        at java.rmi/sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:150)
        at jdk.naming.rmi/com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:176)
        ... 8 more
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
        at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:170)
        at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
        at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:221)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:443)
        at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:841)
        at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1211)
        at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
        at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
        at java.base/java.io.DataOutputStream.flush(DataOutputStream.java:123)
        at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:222)
        ... 12 more
]]

Steps to reproduce

  1. start-domain
  2. change-admin-password and enable-secure-admin
  3. restart-domain
  4. Check the server.log

Impact of issue

JMX connection fails.

11rx4f added a commit to 11rx4f/glassfish that referenced this issue Oct 6, 2021
…rt-domain after enable-secure-admin

Signed-off-by: 11rx4f <ryosuke.okada@fujitsu.com>
arjantijms added a commit that referenced this issue Oct 6, 2021
Fix #23650 SSLHandshakeException occured when execute start-domain after enable-secure-admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant