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

JDK Bug System | Nicolay Haustov | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Bug ID: JDK-7016078 javax.net.ssl.SSLException: Received fatal alert: internal_error starting JDK 7 b126

    java.com | 6 months ago
    javax.net.ssl.SSLException: Received fatal alert: internal_error
  2. 0

    Bug ID: JDK-7016078 javax.net.ssl.SSLException: Received fatal alert: internal_error starting JDK 7 b126

    sun.com | 2 years ago
    javax.net.ssl.SSLException: Received fatal alert: internal_error
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    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.

    JDK Bug System | 6 years ago | Nicolay Haustov
    javax.net.ssl.SSLException: Received fatal alert: internal_error
  5. 0

    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.

    JDK Bug System | 6 years ago | Nicolay Haustov
    javax.net.ssl.SSLException: Received fatal alert: internal_error

  1. Andreas Häber 6 times, last 3 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.net.ssl.SSLException

    Received fatal alert: internal_error

    at sun.security.ssl.Alerts.getSSLException()
  2. Java JSSE
    AppOutputStream.write
    1. sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    2. sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
    3. sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1854)
    4. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1024)
    5. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1259)
    6. sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:677)
    7. sun.security.ssl.AppOutputStream.write(AppOutputStream.java:85)
    7 frames
  3. Java RT
    RegistryImpl_Stub.list
    1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    3. java.io.DataOutputStream.flush(DataOutputStream.java:123)
    4. sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229)
    5. sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    6. sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
    7. sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
    7 frames
  4. Unknown
    RmiRegistrySslTest.main
    1. RmiRegistrySslTest.main(RmiRegistrySslTest.java:75)
    1 frame