javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(java.base@9-ea/SSLEngineInputRecord.java:141) at sun.security.ssl.SSLEngineImpl.readNetRecord(java.base@9-ea/SSLEngineImpl.java:811) at sun.security.ssl.SSLEngineImpl.unwrap(java.base@9-ea/SSLEngineImpl.java:673) at javax.net.ssl.SSLEngine.unwrap(java.base@9-ea/SSLEngine.java:624)

JDK Bug System | Amy Lu | 4 months ago
  1. 0

    sun/security/ssl/SSLEngineImpl/SSLEngineBadBufferArrayAccess.java fails intermittently with Unrecognized SSL message: #section:main ----------messages:(4/188)---------- command: main SSLEngineBadBufferArrayAccess reason: User specified action: run main/othervm SSLEngineBadBufferArrayAccess Mode: othervm [/othervm specified] elapsed time (seconds): 3.772 ----------configuration:(0/0)---------- ----------System.out:(44/1180)---------- Testing SSLv3:true ================ The format of the SSLEngineResult is: "getStatus() / getHandshakeStatus()" + "bytesConsumed() / bytesProduced()" server unwrap: OK/NEED_TASK, 141/0 bytes running delegated task... new HandshakeStatus: NEED_WRAP ---- server wrap: OK/NEED_UNWRAP, 0/695 bytes ================ server unwrap: OK/NEED_TASK, 75/0 bytes running delegated task... new HandshakeStatus: NEED_UNWRAP ---- server wrap: OK/NEED_UNWRAP, 0/0 bytes ================ server unwrap: OK/NEED_UNWRAP, 6/0 bytes ---- server wrap: OK/NEED_UNWRAP, 0/0 bytes ================ server unwrap: OK/NEED_WRAP, 53/0 bytes ---- server wrap: OK/NEED_WRAP, 0/6 bytes ================ server unwrap: OK/NEED_WRAP, 0/0 bytes ---- server wrap: OK/FINISHED, 0/53 bytes ...ready for application data ================ server unwrap: OK/NOT_HANDSHAKING, 53/26 bytes ---- server wrap: OK/NOT_HANDSHAKING, 29/69 bytes ================ server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes ---- server wrap: CLOSED/NEED_UNWRAP, 0/37 bytes ================ server unwrap: CLOSED/NOT_HANDSHAKING, 37/0 bytes ---- server wrap: CLOSED/NOT_HANDSHAKING, 0/0 bytes Testing SSLv3:false ================ ----------System.err:(18/1372)---------- javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(java.base@9-ea/SSLEngineInputRecord.java:141) at sun.security.ssl.SSLEngineImpl.readNetRecord(java.base@9-ea/SSLEngineImpl.java:811) at sun.security.ssl.SSLEngineImpl.unwrap(java.base@9-ea/SSLEngineImpl.java:673) at javax.net.ssl.SSLEngine.unwrap(java.base@9-ea/SSLEngine.java:624) at SSLEngineBadBufferArrayAccess.runTest(SSLEngineBadBufferArrayAccess.java:259) at SSLEngineBadBufferArrayAccess.main(SSLEngineBadBufferArrayAccess.java:158) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

    JDK Bug System | 4 months ago | Amy Lu
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(java.base@9-ea/SSLEngineInputRecord.java:141) at sun.security.ssl.SSLEngineImpl.readNetRecord(java.base@9-ea/SSLEngineImpl.java:811) at sun.security.ssl.SSLEngineImpl.unwrap(java.base@9-ea/SSLEngineImpl.java:673) at javax.net.ssl.SSLEngine.unwrap(java.base@9-ea/SSLEngine.java:624)
  2. 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 | 8 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)
  3. 0

    sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java failed in JDK9 111 same binaries run, one time only so far (out of the total 894 runs) with following exceptions: javax.net.ssl.SSLException: java.security.ProviderException: Internal error: close session with active objects 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:1948) at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-ea/SSLSocketImpl.java:1900) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1883) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1809) 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 CipherTest$Server.handleRequest(CipherTest.java:79) at JSSEServer$1.run(JSSEServer.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) Caused by: java.security.ProviderException: Internal error: close session with active objects at sun.security.pkcs11.Session.close(jdk.crypto.pkcs11@9-ea/Session.java:117) at sun.security.pkcs11.SessionManager.closeSession(jdk.crypto.pkcs11@9-ea/SessionManager.java:232) at sun.security.pkcs11.SessionManager.killSession(jdk.crypto.pkcs11@9-ea/SessionManager.java:174) at sun.security.pkcs11.Token.killSession(jdk.crypto.pkcs11@9-ea/Token.java:311) at sun.security.pkcs11.P11Digest.engineReset(jdk.crypto.pkcs11@9-ea/P11Digest.java:144) at sun.security.pkcs11.P11Digest.engineDigest(jdk.crypto.pkcs11@9-ea/P11Digest.java:194) at java.security.MessageDigest$Delegate.engineDigest(java.base@9-ea/MessageDigest.java:604) at java.security.MessageDigest.digest(java.base@9-ea/MessageDigest.java:399) at com.sun.crypto.provider.TlsPrfGenerator.expand(java.base@9-ea/TlsPrfGenerator.java:324) at com.sun.crypto.provider.TlsPrfGenerator.doTLS12PRF(java.base@9-ea/TlsPrfGenerator.java:210) at com.sun.crypto.provider.TlsPrfGenerator.doTLS12PRF(java.base@9-ea/TlsPrfGenerator.java:174) at com.sun.crypto.provider.TlsKeyMaterialGenerator.engineGenerateKey0(java.base@9-ea/TlsKeyMaterialGenerator.java:129) at com.sun.crypto.provider.TlsKeyMaterialGenerator.engineGenerateKey(java.base@9-ea/TlsKeyMaterialGenerator.java:90) at javax.crypto.KeyGenerator.generateKey(java.base@9-ea/KeyGenerator.java:553) at sun.security.ssl.Handshaker.calculateConnectionKeys(java.base@9-ea/Handshaker.java:1316) at sun.security.ssl.Handshaker.calculateKeys(java.base@9-ea/Handshaker.java:1148) at sun.security.ssl.ServerHandshaker.processMessage(java.base@9-ea/ServerHandshaker.java:310) 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:1118) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1055) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:966) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1381) at sun.security.ssl.SSLSocketImpl.bytesInCompletePacket(java.base@9-ea/SSLSocketImpl.java:900) at sun.security.ssl.AppInputStream.read(java.base@9-ea/AppInputStream.java:144) ... 6 more 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:2020) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1188) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1055) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:966) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1381) at sun.security.ssl.SSLSocketImpl.writeRecord(java.base@9-ea/SSLSocketImpl.java:726) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:67) at java.io.OutputStream.write(java.base@9-ea/OutputStream.java:75) at CipherTest$Client.sendRequest(CipherTest.java:381) at JSSEClient.runTest(JSSEClient.java:57) at CipherTest$Client.run(CipherTest.java:368) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) java.lang.Exception: *** Test 'Client JSSE - Server JSSE' failed *** at CipherTest.run(CipherTest.java:325) at CipherTest.main(CipherTest.java:449) at ClientJSSEServerJSSE.main(ClientJSSEServerJSSE.java:64) at PKCS11Test.premain(PKCS11Test.java:167) at PKCS11Test.testDefault(PKCS11Test.java:249) at PKCS11Test.main(PKCS11Test.java:197) at ClientJSSEServerJSSE.main(ClientJSSEServerJSSE.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:804)

    JDK Bug System | 5 months ago | Amanda Jiang
    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:2020) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1188) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1055) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:966) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1381) at sun.security.ssl.SSLSocketImpl.writeRecord(java.base@9-ea/SSLSocketImpl.java:726) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:67) at java.io.OutputStream.write(java.base@9-ea/OutputStream.java:75)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java failed in JDK9 111 same binaries run, one time only so far (out of the total 894 runs) with following exceptions: javax.net.ssl.SSLException: java.security.ProviderException: Internal error: close session with active objects 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:1948) at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-ea/SSLSocketImpl.java:1900) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1883) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1809) 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 CipherTest$Server.handleRequest(CipherTest.java:79) at JSSEServer$1.run(JSSEServer.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) Caused by: java.security.ProviderException: Internal error: close session with active objects at sun.security.pkcs11.Session.close(jdk.crypto.pkcs11@9-ea/Session.java:117) at sun.security.pkcs11.SessionManager.closeSession(jdk.crypto.pkcs11@9-ea/SessionManager.java:232) at sun.security.pkcs11.SessionManager.killSession(jdk.crypto.pkcs11@9-ea/SessionManager.java:174) at sun.security.pkcs11.Token.killSession(jdk.crypto.pkcs11@9-ea/Token.java:311) at sun.security.pkcs11.P11Digest.engineReset(jdk.crypto.pkcs11@9-ea/P11Digest.java:144) at sun.security.pkcs11.P11Digest.engineDigest(jdk.crypto.pkcs11@9-ea/P11Digest.java:194) at java.security.MessageDigest$Delegate.engineDigest(java.base@9-ea/MessageDigest.java:604) at java.security.MessageDigest.digest(java.base@9-ea/MessageDigest.java:399) at com.sun.crypto.provider.TlsPrfGenerator.expand(java.base@9-ea/TlsPrfGenerator.java:324) at com.sun.crypto.provider.TlsPrfGenerator.doTLS12PRF(java.base@9-ea/TlsPrfGenerator.java:210) at com.sun.crypto.provider.TlsPrfGenerator.doTLS12PRF(java.base@9-ea/TlsPrfGenerator.java:174) at com.sun.crypto.provider.TlsKeyMaterialGenerator.engineGenerateKey0(java.base@9-ea/TlsKeyMaterialGenerator.java:129) at com.sun.crypto.provider.TlsKeyMaterialGenerator.engineGenerateKey(java.base@9-ea/TlsKeyMaterialGenerator.java:90) at javax.crypto.KeyGenerator.generateKey(java.base@9-ea/KeyGenerator.java:553) at sun.security.ssl.Handshaker.calculateConnectionKeys(java.base@9-ea/Handshaker.java:1316) at sun.security.ssl.Handshaker.calculateKeys(java.base@9-ea/Handshaker.java:1148) at sun.security.ssl.ServerHandshaker.processMessage(java.base@9-ea/ServerHandshaker.java:310) 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:1118) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1055) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:966) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1381) at sun.security.ssl.SSLSocketImpl.bytesInCompletePacket(java.base@9-ea/SSLSocketImpl.java:900) at sun.security.ssl.AppInputStream.read(java.base@9-ea/AppInputStream.java:144) ... 6 more 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:2020) at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-ea/SSLSocketImpl.java:1188) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:1055) at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-ea/SSLSocketImpl.java:966) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-ea/SSLSocketImpl.java:1381) at sun.security.ssl.SSLSocketImpl.writeRecord(java.base@9-ea/SSLSocketImpl.java:726) at sun.security.ssl.AppOutputStream.write(java.base@9-ea/AppOutputStream.java:67) at java.io.OutputStream.write(java.base@9-ea/OutputStream.java:75) at CipherTest$Client.sendRequest(CipherTest.java:381) at JSSEClient.runTest(JSSEClient.java:57) at CipherTest$Client.run(CipherTest.java:368) at java.lang.Thread.run(java.base@9-ea/Thread.java:804) java.lang.Exception: *** Test 'Client JSSE - Server JSSE' failed *** at CipherTest.run(CipherTest.java:325) at CipherTest.main(CipherTest.java:449) at ClientJSSEServerJSSE.main(ClientJSSEServerJSSE.java:64) at PKCS11Test.premain(PKCS11Test.java:167) at PKCS11Test.testDefault(PKCS11Test.java:249) at PKCS11Test.main(PKCS11Test.java:197) at ClientJSSEServerJSSE.main(ClientJSSEServerJSSE.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:804)

    JDK Bug System | 5 months ago | Amanda Jiang
    javax.net.ssl.SSLException: java.security.ProviderException: Internal error: close session with active objects 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:1948) at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-ea/SSLSocketImpl.java:1900) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1883) at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-ea/SSLSocketImpl.java:1809) 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)
  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 | 8 months ago | Amy Lu
    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)

    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.SSLEngineInputRecord.bytesInCompletePacket(java.base@9-ea/SSLEngineInputRecord.java:141) at sun.security.ssl.SSLEngineImpl.readNetRecord(java.base@9-ea/SSLEngineImpl.java:811) at sun.security.ssl.SSLEngineImpl.unwrap(java.base@9-ea/SSLEngineImpl.java:673) at javax.net.ssl.SSLEngine.unwrap(java.base@9-ea/SSLEngine.java:624)

      at SSLEngineBadBufferArrayAccess.runTest()
    2. Unknown
      SSLEngineBadBufferArrayAccess.main
      1. SSLEngineBadBufferArrayAccess.runTest(SSLEngineBadBufferArrayAccess.java:259)
      2. SSLEngineBadBufferArrayAccess.main(SSLEngineBadBufferArrayAccess.java:158)
      2 frames