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

KeyPairGenerator.generateKeyPair() fails with rsasign provider

    XMLWordPrintable

    Details

      Description

      If KeyPairGenerator.generateKeyPair() is called after specifying the
      SunRsaSign provider without doing any initialization, and verification
      is turned on, we see a NoClassDefFoundError thrown:

      % /java/re/jdk/1.4.2_09/nightly/binaries/solaris-sparc/latest/bin/java -Xverify:all KeyPairGenTest
      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/rsasign/JA_AlgaeDigest
              at com.sun.rsajca.JS_KeyPairGenerator.generateKeyPair(DashoA6275)
              at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:475)
              at KeyPairGenTest.main(KeyPairGenTest.java:19)
      [Exit 1 ]
      %

      The problem was exhibited & fixed in 1.3 but seems to have reappeared. If
      verification is not turned on, or the SunRsaSign provider is not specified,
      the error does not occur.

      ###@###.### 2005-1-13 19:56:00 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: