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

SPNEGO tests fail at context.getDelegCred().getRemainingInitLifetime(mechOid)

    XMLWordPrintable

Details

    • b59
    • b82
    • Verified

    Description

      The JGSS Server.java was enhanced with further debug logs.
      .....
               logOutput("Server.impersonateClient: "
                          + "cred.getRemainingInitLifetime(mechOid) after sleep ="
                          + context.getDelegCred().getRemainingInitLifetime(mechOid));
                  logOutput("Server.impersonateClient: "
                          + "cred.getRemainingLifetime() after sleep ="
                          + context.getDelegCred().getRemainingLifetime());
      ...............
      With GSS_MECH ="kerberos" tests are fine.
      However with GSS_MECH="spengo" the tests are failing


      [2012-10-02T05:02:24.38] GSSException: Unsupported mechanism requested: 1.3.6.1.5.5.2
      [2012-10-02T05:02:24.38] at sun.security.jgss.GSSCredentialImpl.getRemainingInitLifetime(GSSCredentialImpl.java:239)
      [2012-10-02T05:02:24.38] at Server.impersonateClient(Server.java:471)
      [2012-10-02T05:02:24.38] at Server.run(Server.java:145)
      [2012-10-02T05:02:24.38] at java.lang.Thread.run(Thread.java:722)
      [2012-10-02T05:02:24.38] java.security.PrivilegedActionException: java.net.SocketException: Connection reset
      [2012-10-02T05:02:24.38] at java.security.AccessController.doPrivileged(Native Method)
      [2012-10-02T05:02:24.38] at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
      [2012-10-02T05:02:24.38] at Client.main(Client.java:245)
      [2012-10-02T05:02:24.38] Caused by: java.net.SocketException: Connection reset
      [2012-10-02T05:02:24.38] at java.net.SocketInputStream.read(SocketInputStream.java:189)
      [2012-10-02T05:02:24.38] at java.net.SocketInputStream.read(SocketInputStream.java:121)
      [2012-10-02T05:02:24.38] at java.io.DataInputStream.readFully(DataInputStream.java:195)
      [2012-10-02T05:02:24.38] at java.io.DataInputStream.readFully(DataInputStream.java:169)
      [2012-10-02T05:02:24.38] at Client.exchangeMessages(Client.java:99)
      [2012-10-02T05:02:24.38] at Client$ClientAction.run(Client.java:328)
      [2012-10-02T05:02:24.38] ... 3 more

      Attachments

        Activity

          People

            weijun Weijun Wang
            nisriniv Nithya Srinivasan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: