Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-11648

RuntimeException&Server Error is observed on full-stack example.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 5.0.1.0, OpenIDM 5.0.1.1, OpenIDM 5.5.1.0, OpenIDM 5.5.1.1
    • Environment:
      OpenIDM version "5.5.1.1-M3" (revision: b8b5523) jenkins-OpenIDM - 5.5.x - Release-50 sustaining/5.5.x

      OpenIDM version "5.5.1.0" (revision: a1c9407) jenkins-OpenIDM - 5.5.x - Release-41 sustaining/5.5.x

      Description

      This issue is also reproducible for default configuration of 'Max Token Life' and 'Token Idle Time'. But for these values is hard to reproduce, when they are changed to 1 second issue is reproducible much easier.

      When I configure these values for example to the 15 seconds, issue is gone.

      Issue is not reproducible on 5.5.0.

      Steps to reproduce:

      1. Configure full-stack example according to docs: https://backstage.forgerock.com/docs/idm/5.5/samples-guide/#chap-full-stack
      2. Set 'Max Token Life' and 'Token Idle Time' to 1 second in Configure>Authentication>Session
      3. Refresh page

      Expected result: Page is correctly loaded and no exception is observed in log.

      Actual result: Server error is observed (look at attached picture) and runTimeException is thrown in log.

       

      Workaround: increase values for 'Max Token Life' and 'Token Idle Time' in Configure>Authentication/Session

       

      It looks like issue come with this fix: OPENIDM-10286

       

      RunTimeException: 

      -> [744] Sep 05, 2018 7:07:42 PM org.forgerock.http.servlet.HttpFrameworkServlet lambda$service$1
      SEVERE: RuntimeException caught
      java.lang.NullPointerException
      at org.forgerock.jaspi.modules.session.jwt.AbstractJwtSessionModule.hasCoolOffPeriodExpired(AbstractJwtSessionModule.java:363)
      at org.forgerock.jaspi.modules.session.jwt.AbstractJwtSessionModule.secureResponse(AbstractJwtSessionModule.java:498)
      at org.forgerock.jaspi.modules.session.jwt.JwtSessionModule.secureResponse(JwtSessionModule.java:48)
      at org.forgerock.jaspi.modules.session.jwt.JwtSessionModule.secureResponse(JwtSessionModule.java:148)
      at org.forgerock.openidm.auth.modules.IDMAuthModuleWrapper.secureResponse(IDMAuthModuleWrapper.java:426)
      at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.secureResponse(AuthModules.java:521)
      at org.forgerock.caf.authentication.framework.AuthModules$LoggingAuthModule.secureResponse(AuthModules.java:454)
      at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.secureResponse(AuthModules.java:521)
      at org.forgerock.caf.authentication.framework.AuthModules$SessionAuditingAuthModule.secureResponse(AuthModules.java:380)
      at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.secureResponse(AuthModules.java:521)
      at org.forgerock.caf.authentication.framework.AuthModules$ValidatingAuthModule.secureResponse(AuthModules.java:303)
      at org.forgerock.caf.authentication.framework.SessionAuthContext.secureResponse(SessionAuthContext.java:87)
      at org.forgerock.caf.authentication.framework.AggregateAuthContext.lambda$secureResponse$2(AggregateAuthContext.java:117)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:252)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:216)
      at org.forgerock.caf.authentication.framework.AggregateAuthContext.secureResponse(AggregateAuthContext.java:115)
      at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.secureResponse(AuthContexts.java:328)
      at org.forgerock.caf.authentication.framework.AuthContexts$LoggingAuthContext.secureResponse(AuthContexts.java:284)
      at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.secureResponse(AuthContexts.java:328)
      at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.secureResponse(AuthContexts.java:328)
      at org.forgerock.caf.authentication.framework.AuthContexts$ValidatingAuthContext.secureResponse(AuthContexts.java:195)
      at org.forgerock.caf.authentication.framework.AuthenticationFramework.secureResponse(AuthenticationFramework.java:195)
      at org.forgerock.caf.authentication.framework.AuthenticationFramework.lambda$grantAccess$2(AuthenticationFramework.java:190)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:252)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:216)
      at org.forgerock.caf.authentication.framework.AuthenticationFramework.grantAccess(AuthenticationFramework.java:188)
      at org.forgerock.caf.authentication.framework.AuthenticationFramework.lambda$onValidateRequestSuccess$1(AuthenticationFramework.java:181)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:252)
      at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:241)
      at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:144)
      at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:134)
      at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:84)
      at org.forgerock.openidm.auth.AuthFilterWrapper.filter(AuthFilterWrapper.java:82)
      at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
      at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:75)
      at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53)
      at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:258)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:257)
      at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:220)
      at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:294)
      at com.sun.proxy.$Proxy53.doFilter(Unknown Source)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
      at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:365)
      at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:294)
      at com.sun.proxy.$Proxy53.doFilter(Unknown Source)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:276)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Thread.java:748)
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patrickdiligent patrick diligent
                Reporter:
                jakub.janoska Jakub Janoska [X] (Inactive)
                QA Assignee:
                Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: