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

sun/security/pkcs11/sslecc/ClientJSSEServerJSSE.java fails with ProviderException

    XMLWordPrintable

Details

    Backports

      Description

        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)


        Attachments

          1. Client.java
            2 kB
          2. ClientJSSEServerJSSE-macosx.jtr
            146 kB
          3. Server.java
            2 kB
          4. Utils.java
            10 kB

          Issue Links

            Activity

              People

                rhalade Rajan Halade
                amjiang Amanda Jiang (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: