0 Replies Latest reply on Dec 7, 2016 9:06 PM by markma

    Seam 2.3.1 Exception handling request to /first/home.seam: java.lang.IllegalStateException

    markma

      Hi there,

       

      I followed Chapter 13. Generate a CRUD Database Application to build my first seam web project in JBoss developer studio.

       

      When I start jboss server and try to access http://localhost:8080/first/home.seam, I got below exception:

       

      16:58:04,616 INFO  [org.jboss.seam.servlet.SeamFilter] (default task-2) Initializing filter: org.jboss.seam.web.hotDeployFilter

      16:58:04,616 INFO  [org.jboss.seam.servlet.SeamFilter] (default task-2) Initializing filter: org.jboss.seam.web.redirectFilter

      16:58:04,616 INFO  [org.jboss.seam.servlet.SeamFilter] (default task-2) Initializing filter: org.jboss.seam.web.exceptionFilter

      16:58:04,616 INFO  [org.jboss.seam.servlet.SeamFilter] (default task-2) Initializing filter: org.jboss.seam.web.multipartFilter

      16:58:04,616 INFO  [org.jboss.seam.servlet.SeamFilter] (default task-2) Initializing filter: org.jboss.seam.web.loggingFilter

      16:58:04,616 INFO  [org.jboss.seam.servlet.SeamFilter] (default task-2) Initializing filter: org.jboss.seam.web.identityFilter

      16:58:05,496 ERROR [io.undertow.request] (default task-3) UT005023: Exception handling request to /first/home.seam: java.lang.IllegalStateException

        at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:712)

        at com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:141)

        at javax.faces.component.UIComponentBase.populateDescriptorsMapIfNecessary(UIComponentBase.java:145)

        at javax.faces.component.UIComponentBase.<init>(UIComponentBase.java:133)

        at javax.faces.component.UIViewRoot.<init>(UIViewRoot.java:211)

        at org.jboss.seam.web.ExceptionFilter.createFacesContext(ExceptionFilter.java:147)

        at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:92)

        at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

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

        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

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

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

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

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

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

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

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

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

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

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

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

        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

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

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

        at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

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

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

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

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

        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)

        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)

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

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

        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

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

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

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

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

       

       

      Thanks in advance for any help.