Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-2906

Invalid token makes exception in agent debug log

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.7.0
    • 5.6.2.2, 5.6.3, 5.7.0
    • Java Agents
    • tomcat
      Version: 5.7.0-SNAPSHOT
      Build Date: 2019-08-20 08:26:54
      Build Revision: fa6675abb906328d8ae935f74a99631e3f4b3bc2

    Description

      Invalid token makes exception in agent debug log.

       

      Steps to reproduce

      1.) Login with user to agent's protected page

      2.) Invalidate session in AM

      3.) Refresh/hit the page again

      Observed

      Error message in agent's debug log

       >2019-08-20 09:38:57:030 PM AEST: https-openssl-nio-443-exec-10/5/main
      ERROR: Caught unexpected exception while getting session info
      org.forgerock.agents.exceptions.TokenExpiredException: User token has expired
      	at org.forgerock.agents.rest.ServiceRestClient.invokeEndpoint(ServiceRestClient.java:912)
      	at org.forgerock.agents.rest.ServiceRestClient.getJsonFromEndpoint(ServiceRestClient.java:879)
      	at org.forgerock.agents.rest.ServiceRestClient.newGetSessionInfo(ServiceRestClient.java:302)
      	at org.forgerock.agents.rest.ServiceRestClient.getSessionInfo(ServiceRestClient.java:267)
      	at com.sun.identity.agents.common.JWTValidator.getUserSessionInfo(JWTValidator.java:302)
      	at com.sun.identity.agents.common.JWTValidator.validate(JWTValidator.java:144)
      	at com.sun.identity.agents.filter.AuthnTaskHandler.process(AuthnTaskHandler.java:84)
      	at com.sun.identity.agents.filter.AmFilter.processTaskHandlerInternal(AmFilter.java:252)
      	at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:219)
      	at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:187)
      	at com.sun.identity.agents.filter.AmAgentFilter.doFilter(AmAgentFilter.java:77)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1839)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:748)>2019-08-20 09:38:57:030 PM AEST: https-openssl-nio-443-exec-10/5/main
      ERROR: JWTValidator.validate(): FAILED validation: Failed to retrieve session properties for user riso, realm /
      

      Expected

      No error in logs

      Attachments

        Issue Links

          Activity

            People

              kamal.sivanandam@forgerock.com Kamal Sivanandam
              richard.hruza Richard Hruza
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: