Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8364484

misc tests fail with Received fatal alert: handshake_failure

XMLWordPrintable

    • b10
    • generic
    • generic

        The following test failed in the JDK26 CI:

        javax/management/security/SecurityTest.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(8/751)----------
        command: main -DDEBUG_STANDARD SecurityTest -server -mapType rmi.client.socket.factory.ssl;rmi.server.socket.factory.ssl -keystore keystoreAgent -keystorepassword glopglop -client -truststore truststoreClient -truststorepassword glopglop
        reason: User specified action: run main/othervm/timeout=300 -DDEBUG_STANDARD SecurityTest -server -mapType rmi.client.socket.factory.ssl;rmi.server.socket.factory.ssl -keystore keystoreAgent -keystorepassword glopglop -client -truststore truststoreClient -truststorepassword glopglop
        started: Thu Jul 31 19:44:53 UTC 2025
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.management.rmi
        Process id: 1203161
        finished: Thu Jul 31 19:44:54 UTC 2025
        elapsed time (seconds): 1.1
        ----------configuration:(3/47)----------
        Boot Layer
          add modules: java.management.rmi

        ----------System.out:(59/7143)----------
        =================================================
        [debug] SecurityTest::parseServerParameters: Start
        [debug] TestRoot::parseParamAtIndex: added in map = -mapType with value rmi.client.socket.factory.ssl;rmi.server.socket.factory.ssl
        [debug] TestRoot::parseParamAtIndex: added in map = -keystore with value keystoreAgent
        [debug] TestRoot::parseParamAtIndex: added in map = -keystorepassword with value glopglop
        [debug] SecurityTest::parseServerParameters: Parsing of -server parameters done.
        SecurityTest::run: Start
        SecurityTest::createServerSide: Start
        keyStore location = "/opt/mach5/mesos/work_dir/jib-master/install/jdk-26+9-937/src.full/open/test/jdk/javax/management/security/keystoreAgent"
        keyStore password = glopglop
        Done keystore properties
        Done truststore properties
        Added "jmx.remote.rmi.client.socket.factory" = SslRMIClientSocketFactory
        Added "jmx.remote.rmi.server.socket.factory" = SslRMIServerSocketFactory
        [debug] Utils::waitReady: JMX connector server came up immediately [service:jmx:rmi://ol8-x64-202078/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHciAAtVbmljYXN0UmVmMgEADjEwMC4xMDMuNDkuMjE4AACwi3NyACdqYXZheC5ybWkuc3NsLlNzbFJNSUNsaWVudFNvY2tldEZhY3RvcnmMqrS7gYUlDwIAAHhwdxfSpniV6nZKn/THE1UAAAGYYgQeIIABAHg=]
        SecurityTest::createServerSide: Done.
        SecurityTest::runClientSide: Start
        SecurityTest::buildCommandLine: Start
        SecurityTest::buildCommandLine: Done.
        [SecurityTest$ClientSide]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-26+9-937/linux-x64.jdk/jdk-26/bin/java -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/f7f8bd65-a387-4a2b-b519-702f2fefaf87-S170017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/99a6cdef-5f44-4df3-8d0f-00cec862980c/runs/c68f73f9-be60-4459-9fe5-1772e8a67981/testoutput/test-support/jtreg_open_test_jdk_tier3/tmp -ea -esa -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/jdk-26+9-937/src.full/open/test/jdk/javax/management/security -cp /opt/mach5/mesos/work_dir/slaves/f7f8bd65-a387-4a2b-b519-702f2fefaf87-S170017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/99a6cdef-5f44-4df3-8d0f-00cec862980c/runs/c68f73f9-be60-4459-9fe5-1772e8a67981/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/1/javax/management/security/SecurityTest.d:/opt/mach5/mesos/work_dir/slaves/f7f8bd65-a387-4a2b-b519-702f2fefaf87-S170017/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/99a6cdef-5f44-4df3-8d0f-00cec862980c/runs/c68f73f9-be60-4459-9fe5-1772e8a67981/testoutput/test-support/jtreg_open_test_jdk_tier3/classes/1/test/lib SecurityTest$ClientSide -client -truststore truststoreClient -truststorepassword glopglop -serviceUrl service:jmx:rmi://ol8-x64-202078/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHciAAtVbmljYXN0UmVmMgEADjEwMC4xMDMuNDkuMjE4AACwi3NyACdqYXZheC5ybWkuc3NsLlNzbFJNSUNsaWVudFNvY2tldEZhY3RvcnmMqrS7gYUlDwIAAHhwdxfSpniV6nZKn/THE1UAAAGYYgQeIIABAHg=
        [SecurityTest$ClientSide] ClientSide::run: Start
        [SecurityTest$ClientSide] trustStore location = "/opt/mach5/mesos/work_dir/jib-master/install/jdk-26+9-937/src.full/open/test/jdk/javax/management/security/truststoreClient"
        [SecurityTest$ClientSide] trustStore password = glopglop
        [SecurityTest$ClientSide] java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
        [SecurityTest$ClientSide] javax.net.ssl.SSLHandshakeException: (handshake_failure) Received fatal alert: handshake_failure
        [SecurityTest$ClientSide] at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:241)
        [SecurityTest$ClientSide] at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:137)
        [SecurityTest$ClientSide] at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130)
        [SecurityTest$ClientSide] at java.management.rmi/javax.management.remote.rmi.RMIServerImpl_Stub.newClient(RMIServerImpl_Stub.java:85)
        [SecurityTest$ClientSide] at java.management.rmi/javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2058)
        [SecurityTest$ClientSide] at java.management.rmi/javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
        [SecurityTest$ClientSide] at java.management/javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:266)
        [SecurityTest$ClientSide] at SecurityTest$ClientSide.run(SecurityTest.java:599)
        [SecurityTest$ClientSide] at SecurityTest$ClientSide.main(SecurityTest.java:543)
        [SecurityTest$ClientSide] Caused by: javax.net.ssl.SSLHandshakeException: (handshake_failure) Received fatal alert: handshake_failure
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:130)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:363)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:287)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:202)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:924)
        [SecurityTest$ClientSide] at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1293)
        [SecurityTest$ClientSide] at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:123)
        [SecurityTest$ClientSide] at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:203)
        [SecurityTest$ClientSide] at java.base/java.io.DataOutputStream.flush(DataOutputStream.java:142)
        [SecurityTest$ClientSide] at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:176)
        [SecurityTest$ClientSide] ... 8 more
        [SecurityTest$ClientSide] class java.rmi.ConnectIOException==>error during JRMP connection establishment; nested exception is:
        [SecurityTest$ClientSide] javax.net.ssl.SSLHandshakeException: (handshake_failure) Received fatal alert: handshake_failure
        [SecurityTest$ClientSide] ClientSide::run: (ERROR) Connect failed with exception
        [SecurityTest$ClientSide] ClientSide::run: Done
        Subprocess unexpected exit value of [1]. Expected 0.

        SecurityTest::runClientSide: Done
        SecurityTest::run: Done with 1 error(s)
        ----------System.err:(18/1076)----------
        [SecurityTest$ClientSide] Exception in thread "main" java.lang.RuntimeException
        [SecurityTest$ClientSide] at SecurityTest$ClientSide.run(SecurityTest.java:661)
        [SecurityTest$ClientSide] at SecurityTest$ClientSide.main(SecurityTest.java:543)
        java.lang.RuntimeException: java.lang.RuntimeException: errorCount = 1
        at SecurityTest.run(SecurityTest.java:521)
        at SecurityTest.main(SecurityTest.java:170)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:565)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1474)
        Caused by: java.lang.RuntimeException: errorCount = 1
        at SecurityTest.run(SecurityTest.java:515)
        ... 5 more

        JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.RuntimeException: errorCount = 1
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: errorCount = 1
        ----------rerun:(41/6650)*----------

        Since this appears to be a regression across all platforms,
        I'm starting this bug as a P2.

              abarashev Artur Barashev
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: