java.security.ProviderException: update() failed at sun.security.pkcs11.P11Mac.engineUpdate(jdk.crypto.pkcs11@9-ea/P11Mac.java:244) at javax.crypto.Mac.update(java.base@9-ea/Mac.java:493) at com.sun.crypto.provider.PBKDF2KeyImpl.deriveKey(java.base@9-ea/PBKDF2KeyImpl.java:179) at com.sun.crypto.provider.PBKDF2KeyImpl.<init>(java.base@9-ea/PBKDF2KeyImpl.java:122) at com.sun.crypto.provider.PBKDF2Core.engineGenerateSecret(java.base@9-ea/PBKDF2Core.java:69) at javax.crypto.SecretKeyFactory.generateSecret(java.base@9-ea/SecretKeyFactory.java:338)

JDK Bug System | Rajan Halade | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    com/sun/crypto/provider/KeyFactory/PBKDF2HmacSHA1FactoryTest.java ----------System.out:(6/114)---------- =>Testing vector#1 =>Testing vector#2 =>Testing vector#3 =>Testing vector#4 =>Testing vector#5 =>Testing vector#6 ----------System.err:(25/1771)---------- java.security.ProviderException: update() failed at sun.security.pkcs11.P11Mac.engineUpdate(jdk.crypto.pkcs11@9-ea/P11Mac.java:244) at javax.crypto.Mac.update(java.base@9-ea/Mac.java:493) at com.sun.crypto.provider.PBKDF2KeyImpl.deriveKey(java.base@9-ea/PBKDF2KeyImpl.java:179) at com.sun.crypto.provider.PBKDF2KeyImpl.<init>(java.base@9-ea/PBKDF2KeyImpl.java:122) at com.sun.crypto.provider.PBKDF2Core.engineGenerateSecret(java.base@9-ea/PBKDF2Core.java:69) at javax.crypto.SecretKeyFactory.generateSecret(java.base@9-ea/SecretKeyFactory.java:338) at PBKDF2HmacSHA1FactoryTest.test(PBKDF2HmacSHA1FactoryTest.java:77) at PBKDF2HmacSHA1FactoryTest.main(PBKDF2HmacSHA1FactoryTest.java:138) 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:535) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_OPERATION_ACTIVE at sun.security.pkcs11.wrapper.PKCS11.C_SignInit(jdk.crypto.pkcs11@9-ea/Native Method) at sun.security.pkcs11.P11Mac.initialize(jdk.crypto.pkcs11@9-ea/P11Mac.java:170) at sun.security.pkcs11.P11Mac.ensureInitialized(jdk.crypto.pkcs11@9-ea/P11Mac.java:141) at sun.security.pkcs11.P11Mac.engineUpdate(jdk.crypto.pkcs11@9-ea/P11Mac.java:240) ... 13 more

    JDK Bug System | 8 months ago | Rajan Halade
    java.security.ProviderException: update() failed at sun.security.pkcs11.P11Mac.engineUpdate(jdk.crypto.pkcs11@9-ea/P11Mac.java:244) at javax.crypto.Mac.update(java.base@9-ea/Mac.java:493) at com.sun.crypto.provider.PBKDF2KeyImpl.deriveKey(java.base@9-ea/PBKDF2KeyImpl.java:179) at com.sun.crypto.provider.PBKDF2KeyImpl.<init>(java.base@9-ea/PBKDF2KeyImpl.java:122) at com.sun.crypto.provider.PBKDF2Core.engineGenerateSecret(java.base@9-ea/PBKDF2Core.java:69) at javax.crypto.SecretKeyFactory.generateSecret(java.base@9-ea/SecretKeyFactory.java:338)

    Root Cause Analysis

    1. java.security.ProviderException

      update() failed at sun.security.pkcs11.P11Mac.engineUpdate(jdk.crypto.pkcs11@9-ea/P11Mac.java:244) at javax.crypto.Mac.update(java.base@9-ea/Mac.java:493) at com.sun.crypto.provider.PBKDF2KeyImpl.deriveKey(java.base@9-ea/PBKDF2KeyImpl.java:179) at com.sun.crypto.provider.PBKDF2KeyImpl.<init>(java.base@9-ea/PBKDF2KeyImpl.java:122) at com.sun.crypto.provider.PBKDF2Core.engineGenerateSecret(java.base@9-ea/PBKDF2Core.java:69) at javax.crypto.SecretKeyFactory.generateSecret(java.base@9-ea/SecretKeyFactory.java:338)

      at PBKDF2HmacSHA1FactoryTest.test()
    2. Unknown
      PBKDF2HmacSHA1FactoryTest.main
      1. PBKDF2HmacSHA1FactoryTest.test(PBKDF2HmacSHA1FactoryTest.java:77)
      2. PBKDF2HmacSHA1FactoryTest.main(PBKDF2HmacSHA1FactoryTest.java:138)
      2 frames