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

Java Krb5 implementation throws NPE when supplied default message prop argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • security-libs
    • None

      When using Java Kerberos impl to generate MIC token by calling
      GSSContext.getMIC() with default message prop (i.e. null as specified
      in its javadoc), an NPE is thrown with the following stack trace:

      Exception in thread "main" java.lang.NullPointerException
              at sun.security.jgss.krb5.MessageToken.genSignAndSeqNumber(MessageToken.java:284)
              at sun.security.jgss.krb5.MicToken.<init>(MicToken.java:58)
              at sun.security.jgss.krb5.Krb5Context.getMIC(Krb5Context.java:1028)
              at sun.security.jgss.GSSContextImpl.getMIC(GSSContextImpl.java:434)
              at TestSanity.testContext(TestSanity.java:246)


      ###@###.### 2005-07-01 23:41:08 GMT

            valeriep Valerie Peng
            valeriep Valerie Peng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: