Skip to content

Instantly share code, notes, and snippets.

@pferraro
Created February 6, 2014 19:24
Show Gist options
  • Save pferraro/8850894 to your computer and use it in GitHub Desktop.
Save pferraro/8850894 to your computer and use it in GitHub Desktop.
SSO
14:21:50,419 INFO [org.jboss.as.test.clustering.cluster.sso.ClusteredSingleSignOnTestCase] (main) +++ testFormAuthSingleSignOn
&amp#27;[31m14:21:50,886 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /war1/j_security_check: java.lang.IllegalStateException: UT000012: Session manager was not attached to the request. Make sure that the SessionAttachmentHander is installed in the handler chain
at io.undertow.util.Sessions.getOrCreateSession(Sessions.java:39) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SingleSignOnAuthenticationMechanism.getSession(SingleSignOnAuthenticationMechanism.java:94) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SingleSignOnAuthenticationMechanism.registerSessionIfRequired(SingleSignOnAuthenticationMechanism.java:73) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SingleSignOnAuthenticationMechanism.access$100(SingleSignOnAuthenticationMechanism.java:28) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SingleSignOnAuthenticationMechanism$ResponseListener.wrap(SingleSignOnAuthenticationMechanism.java:106) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SingleSignOnAuthenticationMechanism$ResponseListener.wrap(SingleSignOnAuthenticationMechanism.java:97) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.server.HttpServerExchange$WrapperStreamSinkConduitFactory.create(HttpServerExchange.java:1959) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.server.HttpServerExchange.getResponseChannel(HttpServerExchange.java:1123) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:617) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.spec.HttpServletResponseImpl.sendRedirect(HttpServletResponseImpl.java:169) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.security.ServletFormAuthenticationMechanism.handleRedirectBack(ServletFormAuthenticationMechanism.java:100) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.FormAuthenticationMechanism.runFormAuth(FormAuthenticationMechanism.java:119) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.FormAuthenticationMechanism.authenticate(FormAuthenticationMechanism.java:82) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:101) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.CR3.jar:1.0.0.CR3]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment