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

InvalidKeyException: No installed provider supports key RSAPublicKeyImpl

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Cannot Reproduce
    • 7u151
    • None
    • security-libs

    Description

      Caused by: java.security.InvalidKeyException: No installed provider supports this key: sun.security.rsa.RSAPublicKeyImpl
        at javax.crypto.Cipher.chooseProvider(Cipher.java:883)
        at javax.crypto.Cipher.init(Cipher.java:1374)
        at javax.crypto.Cipher.init(Cipher.java:1308)
        at
      oracle.security.xmlsec.enc.XEEncryptedKey.encrypt(XEEncryptedKey.java:414)
        ... 143 more
      Caused by: java.security.NoSuchAlgorithmException: class configured for
      Cipher(provider: SunJCE) cannot be found.
        at java.security.Provider$Service.getImplClass(Provider.java:1292)
        at java.security.Provider$Service.newInstance(Provider.java:1237)
        at javax.crypto.Cipher.chooseProvider(Cipher.java:850)
        ... 146 more
      Caused by: java.lang.ClassNotFoundException: com.sun.crypto.provider.RSACipher
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.security.Provider$Service.getImplClass(Provider.java:1281)
        ... 148 more
      Caused by: java.util.zip.ZipException: error reading zip file
        at java.util.zip.ZipFile.read(Native Method)
        at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
        at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:682)
        at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
        at sun.misc.IOUtils.readFully(IOUtils.java:65)
        at java.util.jar.JarFile.getBytes(JarFile.java:390)
        at java.util.jar.JarFile.getManifestFromReference(JarFile.java:180)
        at java.util.jar.JarFile.getManifest(JarFile.java:167)
        at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:817)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:416)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        ... 154 more

      Attachments

        Activity

          People

            coffeys Sean Coffey
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: