Topic
3 replies Latest Post - ‏2012-03-07T01:39:11Z by zhangyu
s.berry
s.berry
9 Posts
ACCEPTED ANSWER

Pinned topic Token Expired Exception

‏2009-01-26T13:44:43Z |
I'm using the WebSphere Scheduler Service to run a task continuously. After some period of time, I get this exception: com.ibm.websphere.security.auth.TokenExpiredException . I don't know if this has to do with using the scheduler. Here is the full stack trace of the exception:
1/25/09 17:59:01:674 IST 00000057 LTPAServerObj W SECJ0371W: Validation of the LTPA token failed because the token expired with the following info: Token expiration Date: Sun Jan 25 17:58:36 IST 2009, current Date: Sun Jan 25 17:59:01 IST 2009.
1/25/09 17:59:02:971 IST 00000057 Core E CWSCA2001E: The SCA message-driven bean returned the following exception: "com.ibm.websphere.sca.ServiceRuntimeException: caused by: Major Code[0] Minor Code[0] Message Token expiration Date: Sun Jan 25 17:58:36 IST 2009, current Date: Sun Jan 25 17:59:01 IST 2009".
1/25/09 17:59:02:971 IST 00000057 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage" on bean "BeanId(CommercialWareQueueApp#CommercialWareQueueEJB.jar#ServiceSIBusMessageBean, null)". Exception data: com.ibm.websphere.security.auth.TokenExpiredException: Token expiration Date: Sun Jan 25 17:58:36 IST 2009, current Date: Sun Jan 25 17:59:01 IST 2009
at com.ibm.ws.security.ltpa.LTPAToken.isValid(LTPAToken.java:248)
at com.ibm.ws.security.ltpa.LTPAServerObject.validateToken(LTPAServerObject.java:1004)
at com.ibm.ws.security.ltpa.LTPAServerObject.validateToken(LTPAServerObject.java:901)
at com.ibm.ws.security.ltpa.LTPAServerObject.validateToken(LTPAServerObject.java:870)
at com.ibm.ws.security.ltpa.LTPAServerObject.validate(LTPAServerObject.java:1234)
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:607)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:795)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:188)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:2942)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:2730)
at com.ibm.ISecurityLocalObjectTokenBaseImpl.WSSecurityContextLTPAImpl.acceptSecContext(WSSecurityContextLTPAImpl.java:304)
at com.ibm.ISecurityLocalObjectTokenBaseImpl.WSSecurityContextLTPAImpl.acceptSecContext(WSSecurityContextLTPAImpl.java:222)
at com.ibm.ws.sca.internal.managed.security.SecurityContextManager.restoreAuthenticationToken(SecurityContextManager.java:668)
at com.ibm.ws.sca.internal.managed.security.SecurityManagerImpl.restoreAuthenticationToken(SecurityManagerImpl.java:258)
at com.ibm.ws.sca.internal.securitycontext.handler.AbstractSecurityContextHandler$1.run(AbstractSecurityContextHandler.java:139)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at com.ibm.ws.sca.internal.securitycontext.handler.AbstractSecurityContextHandler.retrieveSecurityInfoFromMessage(AbstractSecurityContextHandler.java:119)
at com.ibm.ws.sca.internal.securitycontext.handler.TargetSecurityContextHandler.processMessage(TargetSecurityContextHandler.java:80)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1298)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.ws.sca.internal.async.impl.AbstractAsyncInboundHandler.processMessage(AbstractAsyncInboundHandler.java:122)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.processMessage(ServiceSIBusMessageBean.java:282)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.access$000(ServiceSIBusMessageBean.java:54)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean$1.onMessage(ServiceSIBusMessageBean.java:79)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.processMessage(RecoveryMDBHandler.java:126)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.onMessage(RecoveryMDBHandler.java:82)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.onMessage(ServiceSIBusMessageBean.java:132)
at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1018)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
at $Proxy52.onMessage(Unknown Source)
at com.ibm.ws.sib.ra.inbound.impl.SibRaEndpointInvokerImpl.invokeEndpoint(SibRaEndpointInvokerImpl.java:156)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:768)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:584)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

SCA context:
Interaction: invokeAsync,startQueue => {CommercialWareQueue}QueueHome.component
Handler: com/ibm/ws/sca/internal/securitycontext/handler/TargetSecurityContextHandler (com.ibm.ws.sca.internal.securitycontext.handler.TargetSecurityContextHandler,com/ibm/wsspi/sca/extensions/WireTargetGroup2)

Wrapped by:
com.ibm.websphere.sca.ServiceRuntimeException: caused by: Major Code[0] Minor Code[0] Message Token expiration Date: Sun Jan 25 17:58:36 IST 2009, current Date: Sun Jan 25 17:59:01 IST 2009
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.processMessage(ServiceSIBusMessageBean.java:336)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.access$000(ServiceSIBusMessageBean.java:54)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean$1.onMessage(ServiceSIBusMessageBean.java:79)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.processMessage(RecoveryMDBHandler.java:126)
at com.ibm.wbiserver.manualrecovery.ejb.RecoveryMDBHandler.onMessage(RecoveryMDBHandler.java:82)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.onMessage(ServiceSIBusMessageBean.java:132)
at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1018)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
at $Proxy52.onMessage(Unknown Source)
at com.ibm.ws.sib.ra.inbound.impl.SibRaEndpointInvokerImpl.invokeEndpoint(SibRaEndpointInvokerImpl.java:156)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:768)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:584)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: Major Code[0] Minor Code[0] Message Token expiration Date: Sun Jan 25 17:58:36 IST 2009, current Date: Sun Jan 25 17:59:01 IST 2009
at com.ibm.ISecurityLocalObjectTokenBaseImpl.WSSecurityContextLTPAImpl.acceptSecContext(WSSecurityContextLTPAImpl.java:316)
at com.ibm.ISecurityLocalObjectTokenBaseImpl.WSSecurityContextLTPAImpl.acceptSecContext(WSSecurityContextLTPAImpl.java:222)
at com.ibm.ws.sca.internal.managed.security.SecurityContextManager.restoreAuthenticationToken(SecurityContextManager.java:668)
at com.ibm.ws.sca.internal.managed.security.SecurityManagerImpl.restoreAuthenticationToken(SecurityManagerImpl.java:258)
at com.ibm.ws.sca.internal.securitycontext.handler.AbstractSecurityContextHandler$1.run(AbstractSecurityContextHandler.java:139)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at com.ibm.ws.sca.internal.securitycontext.handler.AbstractSecurityContextHandler.retrieveSecurityInfoFromMessage(AbstractSecurityContextHandler.java:119)
at com.ibm.ws.sca.internal.securitycontext.handler.TargetSecurityContextHandler.processMessage(TargetSecurityContextHandler.java:80)
at com.ibm.ws.sca.internal.message.impl.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:1298)
at com.ibm.ws.sca.internal.message.impl.ManagedMessageImpl.process(ManagedMessageImpl.java:834)
at com.ibm.ws.sca.internal.async.impl.AbstractAsyncInboundHandler.processMessage(AbstractAsyncInboundHandler.java:122)
at com.ibm.wsspi.sca.async.bean.impl.ServiceSIBusMessageBean.processMessage(ServiceSIBusMessageBean.java:282)
... 16 more
Caused by: com.ibm.websphere.security.auth.WSLoginFailedException: Token expiration Date: Sun Jan 25 17:58:36 IST 2009, current Date: Sun Jan 25 17:59:01 IST 2009
at com.ibm.ws.security.ltpa.LTPAServerObject.validateToken(LTPAServerObject.java:1048)
at com.ibm.ws.security.ltpa.LTPAServerObject.validateToken(LTPAServerObject.java:901)
at com.ibm.ws.security.ltpa.LTPAServerObject.validateToken(LTPAServerObject.java:870)
at com.ibm.ws.security.ltpa.LTPAServerObject.validate(LTPAServerObject.java:1234)
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:607)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:795)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:188)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:2942)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:2730)
at com.ibm.ISecurityLocalObjectTokenBaseImpl.WSSecurityContextLTPAImpl.acceptSecContext(WSSecurityContextLTPAImpl.java:304)
... 27 more
Updated on 2012-03-07T01:39:11Z at 2012-03-07T01:39:11Z by zhangyu
  • Durvasula
    Durvasula
    1 Post
    ACCEPTED ANSWER

    Re: Token Expired Exception

    ‏2011-04-19T13:26:37Z  in response to s.berry
    Hi,

    Were you able to find a solution to this problem ?

    I'm facing the same problem using WebSphere ESB 7.0.0.2. I configured a scheduler to create 3 tasks periodically at interval of 5 min.

    Thanks in advance,
    Raj
  • SystemAdmin
    SystemAdmin
    3556 Posts
    ACCEPTED ANSWER

    Re: Token Expired Exception

    ‏2012-03-06T16:51:56Z  in response to s.berry
    Are you accessing database? Check the authentication properties.

    This error seems to be related to connectivity problem.
    • zhangyu
      zhangyu
      179 Posts
      ACCEPTED ANSWER

      Re: Token Expired Exception

      ‏2012-03-07T01:39:11Z  in response to SystemAdmin
      it's a known issue. please following instructions in link below to workaround it.

      http://www-01.ibm.com/support/docview.wss?uid=swg21445102