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

More helpful error messages needed with javakey

XMLWordPrintable

    • b01
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_95



      Name: mf23781 Date: 05/11/98


      When you try to generate a key pair and put in the wrong number of arguments
      (as the documentation on this isn't too good) the error messgae you get is a
      NullPointerException
      which is not too helpful.
      To recreate:
      1. Delete your identitydb.obj file in the root of your JDK directory
      2. Create a signer by typing: javakey -cs steve true
      3. Attempt to generate a key pair by typing: javakey -gk steve DSA 512
      This comes back with the following exception:
      java.lang.NullPointerException
              at sun.security.provider.Main.generateKeyPair(Main.java:1028)
              at sun.security.provider.Main.generateCmd(Main.java:721)
              at sun.security.provider.Main.run(Main.java:1394)
              at sun.security.provider.Main.main(Main.java:1423)
      This is because you haven't specified the public-private key pair as arguments
      after
      the key size. If you specify both then there is no problem.
      ======================================================================

            jlueheorcl Jan Luehe (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: