org.mozilla.jss.crypto.TokenException: Cipher operation failed on token

Oracle Community | 807573 | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    7.1 amconsole gives "Error Code: -12263" after reinstall

    Oracle Community | 10 years ago | 807573
    org.mozilla.jss.crypto.TokenException: Cipher operation failed on token

    Root Cause Analysis

    1. org.mozilla.jss.crypto.TokenException

      Cipher operation failed on token

      at org.mozilla.jss.pkcs11.PK11Cipher.finalizeContext()
    2. org.mozilla.jss
      PK11Cipher.doFinal
      1. org.mozilla.jss.pkcs11.PK11Cipher.finalizeContext(Native Method)
      2. org.mozilla.jss.pkcs11.PK11Cipher.doFinal(PK11Cipher.java:184)
      2 frames
    3. com.iplanet.services
      Crypt.decode
      1. com.iplanet.services.util.JSSEncryption.decode(JSSEncryption.java:462)
      2. com.iplanet.services.util.JSSEncryption.decrypt(JSSEncryption.java:370)
      3. com.iplanet.services.util.Crypt.decode(Crypt.java:323)
      4. com.iplanet.services.util.Crypt.decode(Crypt.java:346)
      4 frames
    4. com.sun.identity
      DecodeAction.run
      1. com.sun.identity.security.DecodeAction.run(DecodeAction.java:106)
      1 frame
    5. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    6. com.sun.identity
      LoginLogoutMapping.init
      1. com.sun.identity.sm.AttributeSchemaImpl.update(AttributeSchemaImpl.java:611)
      2. com.sun.identity.sm.AttributeSchemaImpl.<init>(AttributeSchemaImpl.java:107)
      3. com.sun.identity.sm.ServiceSchemaImpl.update(ServiceSchemaImpl.java:365)
      4. com.sun.identity.sm.ServiceSchemaImpl.<init>(ServiceSchemaImpl.java:107)
      5. com.sun.identity.sm.ServiceSchemaManagerImpl.updateGenericSchema(ServiceSchemaManagerImpl.java:437)
      6. com.sun.identity.sm.ServiceSchemaManagerImpl.update(ServiceSchemaManagerImpl.java:412)
      7. com.sun.identity.sm.ServiceSchemaManagerImpl.<init>(ServiceSchemaManagerImpl.java:111)
      8. com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:480)
      9. com.sun.identity.sm.ServiceManager.getServiceNamesAndOCs(ServiceManager.java:285)
      10. com.sun.identity.idm.AMIdentity.getAssignedServices(AMIdentity.java:490)
      11. com.sun.identity.authentication.service.AuthD.getOrgServiceAttributes(AuthD.java:487)
      12. com.sun.identity.authentication.service.LoginState.getDefaultSessionAttributes(LoginState.java:1510)
      13. com.sun.identity.authentication.service.LoginState.populateDefaultUserAttributes(LoginState.java:1833)
      14. com.sun.identity.authentication.service.LoginState.searchUserProfile(LoginState.java:1917)
      15. com.sun.identity.authentication.service.AMLoginContext.runLogin(AMLoginContext.java:436)
      16. com.sun.identity.authentication.server.AuthContextLocal.submitRequirements(AuthContextLocal.java:480)
      17. com.sun.identity.authentication.AuthContext.submitRequirements(AuthContext.java:936)
      18. com.sun.identity.security.SystemAppTokenProvider.getAppSSOToken(SystemAppTokenProvider.java:99)
      19. com.sun.identity.security.AdminTokenAction.getSSOToken(AdminTokenAction.java:280)
      20. com.sun.identity.security.AdminTokenAction.authenticationInitialized(AdminTokenAction.java:140)
      21. com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:96)
      22. com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74)
      22 frames
    7. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1150)
      2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:979)
      3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4352)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
      4 frames
    8. com.sun.webserver
      WebModule.start
      1. com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:170)
      1 frame
    9. Glassfish Core
      Embedded.start
      1. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
      2. org.apache.catalina.core.StandardHost.start(StandardHost.java:838)
      3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
      4. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:514)
      5. org.apache.catalina.startup.Embedded.start(Embedded.java:917)
      5 frames
    10. Glassfish
      PwcWebContainer.onStartup
      1. com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:47)
      1 frame
    11. com.sun.webserver
      J2EERunner.confPostInit
      1. com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:464)
      2. com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:292)
      2 frames