javax.net.ssl.SSLException: Unrecognized SSL message, plaintext > connection? > at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) > ~[na:1.8.0_91] > at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) > ~[na:1.8.0_91] > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) > ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) > ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) > ~[na:1.8.0_91] > at > com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)

GitHub | agapple | 7 months ago
  1. 0

    GitHub comment 160#228957203

    GitHub | 7 months ago | agapple
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext > connection? > at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) > ~[na:1.8.0_91] > at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) > ~[na:1.8.0_91] > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) > ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) > ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) > ~[na:1.8.0_91] > at > com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)
  2. 0

    Outgoing Email - Office365 - TLS Encryption

    sysaid.com | 5 months ago
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
  3. 0

    Re: mail-notifier

    continuum-users | 9 years ago | ivan
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RestComm Docker - Visual Designer

    Google Groups | 11 months ago | Ibrahima Gaye
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?* * at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:671)
  6. 0

    sun/security/mscapi/ShortRSAKey1024.sh Fails at Windows with "Field length overflow". At the same machine, test pass with build 112, but start failing with build 113 (and failure reproducible) #section:shell ----------messages:(3/139)---------- command: shell ShortRSAKey1024.sh 1024 reason: User specified action: run shell ShortRSAKey1024.sh 1024 elapsed time (seconds): 43.832 ----------System.out:(17/750)---------- Removing the keypair if it already exists (for unknown reason)... Command line args: [-delete, -storetype, Windows-My, -debug, -alias, 7106773.1024] keytool error: java.lang.Exception: Alias <7106773.1024> does not exist Creating a temporary RSA keypair in the Windows-My store... Command line args: [-genkeypair, -storetype, Windows-My, -keyalg, RSA, -alias, 7106773.1024, -keysize, 1024, -dname, cn=localhost,c=US, -debug, -noprompt] Running the test... Loaded keystore: Windows-MY Loaded entry: 7106773.1024 serverPort = 59784 Loaded keystore: Windows-MY client also threw: Removing the temporary RSA keypair from the Windows-My store... Command line args: [-delete, -storetype, Windows-My, -debug, -alias, 7106773.1024] Done. ----------System.err:(57/4751)*---------- Exception in thread "main" java.lang.Exception: Alias <7106773.1024> does not exist at sun.security.tools.keytool.Main.doDeleteEntry(java.base@9-ea/Main.java:1411) at sun.security.tools.keytool.Main.doCommands(java.base@9-ea/Main.java:1002) at sun.security.tools.keytool.Main.run(java.base@9-ea/Main.java:376) at sun.security.tools.keytool.Main.main(java.base@9-ea/Main.java:369) C:\\Users\\aurora\\sandbox_keepme\\testbase\\jdk\\test\\sun\\security\\mscapi\\ShortRSAKeyWithinTLS.java:29: warning: KeyUtil is internal proprietary API and may be removed in a future release import sun.security.util.KeyUtil; ^ C:\\Users\\aurora\\sandbox_keepme\\testbase\\jdk\\test\\sun\\security\\mscapi\\ShortRSAKeyWithinTLS.java:175: warning: KeyUtil is internal proprietary API and may be removed in a future release int privateKeySize = KeyUtil.getKeySize(privateKey); ^ C:\\Users\\aurora\\sandbox_keepme\\testbase\\jdk\\test\\sun\\security\\mscapi\\ShortRSAKeyWithinTLS.java:181: warning: KeyUtil is internal proprietary API and may be removed in a future release int publicKeySize = KeyUtil.getKeySize(publicKey); ^ 3 warnings Client died... javax.net.ssl.SSLException: Received fatal alert: internal_error at sun.security.ssl.Alerts.getSSLException(java.base@9-ea/Alerts.java:214) at sun.security.ssl.Alerts.getSSLException(java.base@9-ea/Alerts.java:159) at sun.security.ssl.SSLSocketImpl.recvAlert(java.base@9-ea/SSLSocketImpl.java:2021) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1189) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1056) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:955) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1382) at sun.security.ssl.SSLSocketImpl.writeRecord(java.base@9-ea/SSLSocketImpl.java:715) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:67) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:81) at ShortRSAKeyWithinTLS.doClientSide(ShortRSAKeyWithinTLS.java:159) at ShortRSAKeyWithinTLS$2.run(ShortRSAKeyWithinTLS.java:332) Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Field length overflow, the field length (83031) should be less than 65536 at sun.security.ssl.Alerts.getSSLException(java.base@9-ea/Alerts.java:214) at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-ea/SSLSocketImpl.java:1949) at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-ea/SSLSocketImpl.java:1901) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1884) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1810) at sun.security.ssl.AppInputStream.read(java.base@9-ea/AppInputStream.java:173) at sun.security.ssl.AppInputStream.read(java.base@9-ea/AppInputStream.java:84) at ShortRSAKeyWithinTLS.doServerSide(ShortRSAKeyWithinTLS.java:107) at ShortRSAKeyWithinTLS.startServer(ShortRSAKeyWithinTLS.java:318) at ShortRSAKeyWithinTLS.<init>(ShortRSAKeyWithinTLS.java:244) at ShortRSAKeyWithinTLS.main(ShortRSAKeyWithinTLS.java:226) Caused by: java.lang.RuntimeException: Field length overflow, the field length (83031) should be less than 65536 at sun.security.ssl.HandshakeOutStream.checkOverflow(java.base@9-ea/HandshakeOutStream.java:146) at sun.security.ssl.HandshakeOutStream.putInt16(java.base@9-ea/HandshakeOutStream.java:97) at sun.security.ssl.HandshakeMessage$CertificateRequest.send(java.base@9-ea/HandshakeMessage.java:1826) at sun.security.ssl.HandshakeMessage.write(java.base@9-ea/HandshakeMessage.java:153) at sun.security.ssl.ServerHandshaker.clientHello(java.base@9-ea/ServerHandshaker.java:1108) at sun.security.ssl.ServerHandshaker.processMessage(java.base@9-ea/ServerHandshaker.java:230) at sun.security.ssl.Handshaker.processLoop(java.base@9-ea/Handshaker.java:1003) at sun.security.ssl.Handshaker.processRecord(java.base@9-ea/Handshaker.java:937) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1119) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1056) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:955) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1382) at sun.security.ssl.SSLSocketImpl.bytesInCompletePacket(java.base@9-ea/SSLSocketImpl.java:889) at sun.security.ssl.AppInputStream.read(java.base@9-ea/AppInputStream.java:144) ... 5 more

    JDK Bug System | 9 months ago | Amy Lu
    javax.net.ssl.SSLException: Received fatal alert: internal_error at sun.security.ssl.Alerts.getSSLException(java.base@9-ea/Alerts.java:214) at sun.security.ssl.Alerts.getSSLException(java.base@9-ea/Alerts.java:159) at sun.security.ssl.SSLSocketImpl.recvAlert(java.base@9-ea/SSLSocketImpl.java:2021) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1189) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1056) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:955) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1382) at sun.security.ssl.SSLSocketImpl.writeRecord(java.base@9-ea/SSLSocketImpl.java:715) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:67) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:81)

    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

      Unrecognized SSL message, plaintext > connection? > at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) > ~[na:1.8.0_91] > at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) > ~[na:1.8.0_91] > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) > ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) > ~[na:1.8.0_91] > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) > ~[na:1.8.0_91] > at > com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)

      at com.sun.mail.util.SocketFetcher.createSocket()
    2. JavaMail API (compat)
      SMTPTransport.openServer
      1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:354)
      2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:211)
      3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
      3 frames