javax.net.ssl.SSLException: Received fatal alert: internal_error

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • SSL connection error with Tomcat
    via Stack Overflow by travdes
    ,
  • Axis Java - Dev - error axis2 rampart
    via by Unknown author,
  • GitHub comment 221#184258253
    via GitHub by pumpadump
    ,
  • 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.
    via by Nicolay Haustov,
  • 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.
    via by Nicolay Haustov,
    • 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:1977) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1093) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:136) at RemovedPrivateKey.doClient(RemovedPrivateKey.java:185) at RemovedPrivateKey.main(RemovedPrivateKey.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:722)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Andreas Häber
    Andreas Häber8 times, last one,
    Unknown visitor1 times, last one,
    106 more bugmates