[wildfly-dev] problem with JSF 2.2.7

Frank Langelage frank.langelage at osnanet.de
Wed Jun 18 18:51:27 EDT 2014


After upgrade of current sources from github including patch to JSF 
2.2.7 I get this:
19.06. 00:05:14,934 ERROR [io.undertow.request#handleFirstRequest] 
UT005023: Exception handling request to 
/web-maj2e-langfr-dev/Login.xhtml: java.lang.RuntimeException: 
java.lang.IllegalStateException
         at 
io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:182) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.security.ServletFormAuthenticationMechanism.servePage(ServletFormAuthenticationMechanism.java:85) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.FormAuthenticationMechanism.sendChallenge(FormAuthenticationMechanism.java:158) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]        at 
io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:330) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.SecurityContextImpl$ChallengeSender.transition(SecurityContextImpl.java:349) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.SecurityContextImpl$ChallengeSender.access$300(SecurityContextImpl.java:314) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.SecurityContextImpl.sendChallenges(SecurityContextImpl.java:135) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:109) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:114) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:27) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:243) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:230) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:149) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.Connectors.executeRootHandler(Connectors.java:195) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:733) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[rt.jar:1.7.0_60]
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[rt.jar:1.7.0_60]
         at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: java.lang.IllegalStateException
         at 
com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:705) 
[jsf-impl-2.2.7-jbossorg-1.jar:]
         at 
com.sun.faces.context.FacesContextImpl.getAttributes(FacesContextImpl.java:237) 
[jsf-impl-2.2.7-jbossorg-1.jar:]
         at 
org.richfaces.context.ExtendedPartialViewContext.setInstance(ExtendedPartialViewContext.java:55) 
[richfaces-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
         at 
org.richfaces.context.ExtendedPartialViewContext.release(ExtendedPartialViewContext.java:64) 
[richfaces-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
         at 
org.richfaces.context.ExtendedPartialViewContextImpl.release(ExtendedPartialViewContextImpl.java:473) 
[richfaces-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
         at 
com.sun.faces.context.FacesContextImpl.release(FacesContextImpl.java:591) [jsf-impl-2.2.7-jbossorg-1.jar:]
         at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:665) 
[jboss-jsf-api_2.2_spec-2.2.7.jar:2.2.7]
         at 
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:82) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) 
[undertow-core-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:232) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:175) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         at 
io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:159) 
[undertow-servlet-1.1.0.Beta2.jar:1.1.0.Beta2]
         ... 32 more

When adding
  -Dversion.com.sun.faces=2.2.6-jbossorg-4 
-Dversion.org.jboss.spec.javax.faces.jboss-jsf-api_2.2_spec=2.2.6
for build to get the the prior JSF-version, my web application works 
without problems.



More information about the wildfly-dev mailing list