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

pkcs11: ProviderException: Could not obtain session

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      jre7

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 32 Bit ,

      A DESCRIPTION OF THE PROBLEM :
      I had design to log in into my smart card using PKCS11 Sun Security , Unfortunely always prompt out the couldn't not obtain Session.

      java.security.ProviderException: Could not obtain session
      at sun.security.pkcs11.SessionManager.getOpSession(SessionManager.java:122)
      at sun.security.pkcs11.Token.getOpSession(Token.java:241)
      at sun.security.pkcs11.P11KeyStore.mapCerts(P11KeyStore.java:2429)
      at sun.security.pkcs11.P11KeyStore.mapLabels(P11KeyStore.java:2331)
      at sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:741)
      at java.security.KeyStore.load(Unknown Source)
      at Test1.Test11.TestEncDec(Test11.java:142)
      at Test1.Test11.main(Test11.java:24)

      The below is PKCS 11 Log File .

      May I know got any idea why will stop during this session. I had log out my pkcs 11 middle ware it had stop at Out_CFinalObject Final Parts.

      * Without Enroll cert into smart card it can pass through without any error prompt out.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: