JDK Bug System | Sean Coffey | 7 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    3rd party Jsafe provider registered in JDK. When initializing and debugging via flag, we hit an NPE : [java] Provider: MessageDigest.SHA-256 algorithm from: SUN [java] Provider: Signature.SHA256withRSA verification algorithm from: SunRsaSign [java] Provider: MessageDigest.SHA-256 algorithm from: SUN [java] Provider: MessageDigest.SHA algorithm from: JsafeJCE [java] Exception in thread "main" java.lang.ExceptionInInitializerError [java] at javax.crypto.JceSecurity.loadPolicies( [java] at javax.crypto.JceSecurity.setupJurisdictionPolicies( [java] at javax.crypto.JceSecurity.access$000( [java] at javax.crypto.JceSecurity$ [java] at Method) [java] at javax.crypto.JceSecurity.<clinit>( [java] at javax.crypto.SecretKeyFactory.getInstance( [java] at jce.common.AESKeyUtil.getSecretKey( [java] at jce.asymCipher.RSAEncryptWithOAEP.runSample( [java] at jce.asymCipher.RSAEncryptWithOAEP.main( [java] Caused by: java.lang.SecurityException: Framework jar verification can not be initialized [java] at javax.crypto.JarVerifier.<clinit>( [java] ... 10 more [java] Caused by: java.lang.NullPointerException [java] at [java] at com.rsa.cryptoj.o.pq.a(Unknown Source) [java] at com.rsa.cryptoj.o.pq.verify(Unknown Source) [java] at javax.crypto.JarVerifier.testSignatures( [java] at javax.crypto.JarVerifier.access$400( [java] at javax.crypto.JarVerifier$ [java] at javax.crypto.JarVerifier$ [java] at Method) [java] at javax.crypto.JarVerifier.<clinit>(

    JDK Bug System | 7 months ago | Sean Coffey

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

    2. Java RT
      1 frame
    3. com.rsa.cryptoj
      1. com.rsa.cryptoj.o.pq.a(Unknown Source)
      2. com.rsa.cryptoj.o.pq.verify(Unknown Source)
      2 frames
    4. Android Platform
      1. javax.crypto.JarVerifier.testSignatures(
      2. javax.crypto.JarVerifier.access$400(
      3. javax.crypto.JarVerifier$
      4. javax.crypto.JarVerifier$
      4 frames
    5. Java RT
      1. Method)
      1 frame
    6. Android Platform
      1. javax.crypto.JarVerifier.<clinit>(
      1 frame