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


Solutions on the web

Solution icon of oraclecommunity
via Oracle Community by 807573, 1 year ago
Cipher operation failed on token

Stack trace

org.mozilla.jss.crypto.TokenException: Cipher operation failed on token
	at org.mozilla.jss.pkcs11.PK11Cipher.finalizeContext(Native Method)
	at org.mozilla.jss.pkcs11.PK11Cipher.doFinal(PK11Cipher.java:184)
	at com.iplanet.services.util.JSSEncryption.decode(JSSEncryption.java:462)
	at com.iplanet.services.util.JSSEncryption.decrypt(JSSEncryption.java:370)
	at com.iplanet.services.util.Crypt.decode(Crypt.java:323)
	at com.iplanet.services.util.Crypt.decode(Crypt.java:346)
	at com.sun.identity.security.DecodeAction.run(DecodeAction.java:106)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.identity.sm.AttributeSchemaImpl.update(AttributeSchemaImpl.java:611)
	at com.sun.identity.sm.AttributeSchemaImpl.<init>(AttributeSchemaImpl.java:107)
	at com.sun.identity.sm.ServiceSchemaImpl.update(ServiceSchemaImpl.java:365)
	at com.sun.identity.sm.ServiceSchemaImpl.<init>(ServiceSchemaImpl.java:107)
	at com.sun.identity.sm.ServiceSchemaManagerImpl.updateGenericSchema(ServiceSchemaManagerImpl.java:437)
	at com.sun.identity.sm.ServiceSchemaManagerImpl.update(ServiceSchemaManagerImpl.java:412)
	at com.sun.identity.sm.ServiceSchemaManagerImpl.<init>(ServiceSchemaManagerImpl.java:111)
	at com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:480)
	at com.sun.identity.sm.ServiceManager.getServiceNamesAndOCs(ServiceManager.java:285)
	at com.sun.identity.idm.AMIdentity.getAssignedServices(AMIdentity.java:490)
	at com.sun.identity.authentication.service.AuthD.getOrgServiceAttributes(AuthD.java:487)
	at com.sun.identity.authentication.service.LoginState.getDefaultSessionAttributes(LoginState.java:1510)
	at com.sun.identity.authentication.service.LoginState.populateDefaultUserAttributes(LoginState.java:1833)
	at com.sun.identity.authentication.service.LoginState.searchUserProfile(LoginState.java:1917)
	at com.sun.identity.authentication.service.AMLoginContext.runLogin(AMLoginContext.java:436)
	at com.sun.identity.authentication.server.AuthContextLocal.submitRequirements(AuthContextLocal.java:480)
	at com.sun.identity.authentication.AuthContext.submitRequirements(AuthContext.java:936)
	at com.sun.identity.security.SystemAppTokenProvider.getAppSSOToken(SystemAppTokenProvider.java:99)
	at com.sun.identity.security.AdminTokenAction.getSSOToken(AdminTokenAction.java:280)
	at com.sun.identity.security.AdminTokenAction.authenticationInitialized(AdminTokenAction.java:140)
	at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:96)
	at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1150)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:979)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4352)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
	at com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:170)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:838)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:514)
	at org.apache.catalina.startup.Embedded.start(Embedded.java:917)
	at com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:47)
	at com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:464)
	at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:292)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.