0 Replies Latest reply on Nov 16, 2016 1:53 PM by Jeremy Stallard

    Picketlink Logout followed by immediate LogIn causes internal Picketlink errors

    Jeremy Stallard Newbie

      Hi,

       

      I'm running across an instance where the call to logout using <IDP Server>/?GLO=true, which then displays the login page, followed by an immediate login is causing a null pointer exception in the Picketlink code. An immediate refresh on the page has everything properly loaded and proceeds into the authenticated pages.

       

      The "index.jsp" page has been changed to be a page that redirects the user to a specific home page within the system after they have authenticated.

      Has anyone run into this before?

       

      The full stack trace that shows up in the web browser as an error is:

       

      Error processing request

       

      Context Path:

      /bidsync-cas

       

      Servlet Path:

      /index.jsp

       

      Path Info:

      null

       

      Query String:

      null

       

      Stack Trace

      java.lang.RuntimeException: PL00092: Null Value:responseType

      org.picketlink.common.DefaultPicketLinkLogger.nullValueError(DefaultPicketLinkLogger.java:204)

      org.picketlink.identity.federation.web.util.IDPWebRequestUtil.send(IDPWebRequestUtil.java:196)

      org.picketlink.identity.federation.web.filters.IDPFilter.processSAMLResponseMessage(IDPFilter.java:776)

      org.picketlink.identity.federation.web.filters.IDPFilter.handleSAMLMessage(IDPFilter.java:286)

      org.picketlink.identity.federation.web.filters.IDPFilter.doFilter(IDPFilter.java:220)

      io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

      io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

      io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

      io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

      io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)

      io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

      org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

      io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

      io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)

      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

      io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

      io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

      io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)

      io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

      io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)

      io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

      io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)

      io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)

      io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)

      io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)

      io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)

      io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      java.lang.Thread.run(Thread.java:745)