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

KeyPairGenerator.generateKeyPair() throws unexpected Exception

XMLWordPrintable

    • 1.2
    • sparc
    • solaris_2.5



      Name: saC57035 Date: 07/12/99



      [ This bug is not reproducible in JDK 1.2, it has been filed for tracking
        purposes only, as the problem persists in 1.1.X. Feel free to close as
        integrated in 1.2 ]

      Below is short example:

      ------------ Test.java
      import java.security.*;

      class Test {
          public static void main(String [] args) throws Exception {
              KeyPairGenerator.getInstance("DSA", "SUN").generateKeyPair();
          }
      }
      ------------- Output(jdk1.1.8)
      java.lang.NullPointerException
              at sun.security.provider.DSAKeyPairGenerator.generatePandQ(DSAKeyPairGenerator.java:249)
              at sun.security.provider.DSAKeyPairGenerator.generateKeyPair(DSAKeyPairGenerator.java:204)
              at Test.main(Test.java:5)
      -------------

      ======================================================================

            jlueheorcl Jan Luehe (Inactive)
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: