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

javax.net.ssl.SSLException: Received fatal alert: internal_error starting JDK 7 b126

XMLWordPrintable

    • b126
    • 7
    • b138
    • generic, x86, sparc
    • generic, solaris
    • Verified

        Tests
        sun/management/jmxremote/bootstrap/RmiRegistrySslTest.sh
        sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh

        fail on specific Solaris machine starting JDK 7 b126 with
        ...
        -------------------------------------------------------------
        RmiRegistrySslTest : SSL RMIRegistry - SSL Lookup
        -------------------------------------------------------------
        RmiRegistry lookup...
        KO: Got unexpected exception!
        java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
                javax.net.ssl.SSLException: Received fatal alert: internal_error
                at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
                at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
                at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
                at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
                at RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
        Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
                at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
                at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
                at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
                at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
                at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
                at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
                at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
                at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
                at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
                at java.io.DataOutputStream.flush(DataOutputStream.java:123)
                at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
                ... 4 more
        ----------System.err:(20/1366)----------
        Exception in thread "main" java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
                javax.net.ssl.SSLException: Received fatal alert: internal_error
                at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
                at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
                at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
                at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
                at RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
        Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
                at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
                at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
                at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
                at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
                at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
                at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
                at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
                at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
                at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
                at java.io.DataOutputStream.flush(DataOutputStream.java:123)
                at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
                ... 4 more
        result: Failed. Execution failed: exit code 1
        These tests are part of JDK workspace (look under jdk/test/sun/management/jmxremote/bootstrap/). The test verifies that RMI registry over SSL works. There is no separate peer - everything is done in one Java VM, the code for server part is in in JDK. jdk/src/share/classes/javax/rmi/ssl/SslRMIClientSocketFactory.java creates SSLSocketFactory, RMI writes few bytes to socket output stream and flushes it (sun/rmi/transport/tcp/TCPChannel.java:229).

        Adding -Dcom.sun.net.ssl.enableECC=false makes the test pass.

              vinnie Vincent Ryan
              nhaustov Nicolay Haustov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: