1 2 Previous Next 15 Replies Latest reply on Jan 11, 2006 11:35 PM by Esli Federico Mendoza Hern√°ndez

    Seam related Exception

    Lewis Gass Newbie

      I have been trying to figure out what is causing the exception below, and have yet to find out. I am using facelets with seam in a 4.0.3 server configuration. I found some related topics and saw someone mentioned that this had been talked about already a few times, but I could not find anything that resolved the issue.

      It does not cause any visible (at the browser end) errors, but it consistently shows up in the log. Someone mentioned that it could be two phase listeners, if that is possible how could it happen, if my project only has it defined once in the faces config?

      This is my faces-config.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE faces-config
      PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
       "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
      <faces-config>
       <application>
       <view-handler>
       com.sun.facelets.FaceletViewHandler
       </view-handler>
       <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
       </application>
      
       <lifecycle>
       <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
       </lifecycle>
      </faces-config>
      


      Any help (or links regarding solutions) would be appreciated,
      Thanks.

      java.lang.IllegalStateException: No active session context
       at org.jboss.seam.Seam.isSessionInvalid(Unknown Source)
       at org.jboss.seam.contexts.Lifecycle.endRequest(Unknown Source)
       at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(Unknown Source)
       at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:458)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:307)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
       at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      


        • 1. Re: Seam related Exception
          Gavin King Master

          Are you using a current CVS build of Seam?

          If not, then you need to be.

          • 2. Re: Seam related Exception
            Lewis Gass Newbie

            Thanks Gavin,

            I guess I keep forgetting how beta this still is, thanks for the knock on the head.

            Lewie

            • 3. Re: Seam related Exception
              Lewis Gass Newbie

              Gavin,

              I got the cvs version of Seam and built it, but I continue to get that exception....

              Is the current cvs version 1.0 beta 2?

              Thanks,
              Lewie

              • 4. Re: Seam related Exception
                Gavin King Master

                Oh, I think I know what you did!

                You called HttpSession.invalidate(), didn't you.


                You have to call Seam.invalidateSession() instead.

                • 5. Re: Seam related Exception
                  Lewis Gass Newbie

                  Gavin,

                  I am not calling it.... could Facelets, the container, or something else be doing so?

                  I can only suspect Facelets, (I should try to write the app as regular JSF - non facelet), since your example booking app runs fine...

                  Who knows...
                  Thanks for the quick responses though,
                  Lewie

                  • 6. Re: Seam related Exception
                    Gavin King Master

                    Other possibility is that you might have two SeamPhaseListeners registered. Show me a Seam debug log.


                    I've checked the code on this. The threadlocal does not get cleared until after we try to invalidate the session. So I'm pretty confident this is not a bug in Seam.

                    • 7. Re: Seam related Exception
                      Gavin King Master

                      I very much doubt facelets is invalidating the session ;)

                      • 8. Re: Seam related Exception
                        Lewis Gass Newbie

                        Gavin,

                        Here is what is in the server.log for a whole request cycle:

                        2005-12-30 02:09:41,900 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
                        2005-12-30 02:09:41,932 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
                        2005-12-30 02:09:41,934 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
                        2005-12-30 02:09:41,942 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:41,942 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@1475479{ url=null ,addedOrder=0}
                        2005-12-30 02:09:41,946 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:41,946 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@cfc00b{ url=null ,addedOrder=0}
                        2005-12-30 02:09:41,950 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:41,950 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@1556b61{ url=null ,addedOrder=0}
                        2005-12-30 02:09:41,955 DEBUG [org.jboss.seam.core.Manager] No stored conversation
                        2005-12-30 02:09:41,958 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
                        2005-12-30 02:09:41,964 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] After restore view, conversation context: ConversationContext(1)
                        2005-12-30 02:09:41,964 DEBUG [org.jboss.seam.core.Manager] No stored conversation
                        2005-12-30 02:09:41,964 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
                        2005-12-30 02:09:41,965 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] After restore view, conversation context: ConversationContext(2)
                        02:09:42,598 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                        02:09:42,619 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                        02:09:42,676 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                        02:09:42,719 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                        02:09:42,784 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                        2005-12-30 02:09:42,533 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:42,533 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@deddc{ url=null ,addedOrder=0}
                        2005-12-30 02:09:42,598 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                        2005-12-30 02:09:42,610 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:42,610 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@1a62fca{ url=null ,addedOrder=0}
                        2005-12-30 02:09:42,619 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                        2005-12-30 02:09:42,628 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:42,628 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@10733fd{ url=null ,addedOrder=0}
                        2005-12-30 02:09:42,676 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                        2005-12-30 02:09:42,684 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:42,685 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@167a300{ url=null ,addedOrder=0}
                        2005-12-30 02:09:42,719 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                        2005-12-30 02:09:42,727 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:42,728 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@195f1cc{ url=null ,addedOrder=0}
                        2005-12-30 02:09:42,784 INFO [STDOUT] Dec 30, 2005 2:09:42 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                        INFO: Added Library from: jar:file:/usr/jboss-asSP1/server/default/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                        2005-12-30 02:09:43,559 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:43,559 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@129d183{ url=null ,addedOrder=0}
                        2005-12-30 02:09:43,563 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:43,563 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@20902c{ url=null ,addedOrder=0}
                        02:09:44,641 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                        java.lang.IllegalStateException: No active session context
                         at org.jboss.seam.Seam.isSessionInvalid(Seam.java:107)
                         at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:158)
                         at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:89)
                         at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:458)
                         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:307)
                         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                         at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                         at java.lang.Thread.run(Thread.java:595)
                        2005-12-30 02:09:44,521 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:44,521 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@3798e2{ url=null ,addedOrder=0}
                        2005-12-30 02:09:44,541 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,541 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,542 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,542 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,542 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,542 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,542 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,543 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,544 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,544 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,544 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,544 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,544 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,544 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,545 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,545 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,545 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,545 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,545 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,548 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:44,548 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@a77997{ url=null ,addedOrder=0}
                        2005-12-30 02:09:44,552 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:44,552 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@1c90d92{ url=null ,addedOrder=0}
                        2005-12-30 02:09:44,563 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:44,563 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@805af4{ url=null ,addedOrder=0}
                        2005-12-30 02:09:44,567 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
                        2005-12-30 02:09:44,567 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@3a4422, cl=org.jboss.mx.loading.UnifiedClassLoader3@1513858{ url=null ,addedOrder=0}
                        2005-12-30 02:09:44,571 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,572 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,573 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,574 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,575 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: facesContext
                        2005-12-30 02:09:44,576 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: facesContext
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,577 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,606 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,607 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.Component] seam component not found: m
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to managed bean
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: sites
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.Component] seam component not found: sites
                        2005-12-30 02:09:44,608 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: sites
                        2005-12-30 02:09:44,609 DEBUG [org.jboss.seam.Component] seam component not found: sites
                        2005-12-30 02:09:44,609 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
                        2005-12-30 02:09:44,609 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
                        2005-12-30 02:09:44,614 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] Before render response
                        2005-12-30 02:09:44,614 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 2
                        2005-12-30 02:09:44,614 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] Before render response
                        2005-12-30 02:09:44,614 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 2
                        2005-12-30 02:09:44,638 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
                        2005-12-30 02:09:44,638 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing busines process context
                        2005-12-30 02:09:44,638 DEBUG [org.jboss.seam.contexts.BusinessProcessContext] no process instance to persist business process state
                        2005-12-30 02:09:44,638 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
                        2005-12-30 02:09:44,639 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
                        2005-12-30 02:09:44,639 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
                        2005-12-30 02:09:44,640 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
                        2005-12-30 02:09:44,640 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
                        2005-12-30 02:09:44,640 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
                        2005-12-30 02:09:44,641 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/vmi_seam].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                        java.lang.IllegalStateException: No active session context
                         at org.jboss.seam.Seam.isSessionInvalid(Seam.java:107)
                         at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:158)
                         at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:89)
                         at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:458)
                         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:307)
                         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                         at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                         at java.lang.Thread.run(Thread.java:595)
                        


                        • 9. Re: Seam related Exception
                          Gavin King Master

                          Yep, looks like you got two phase listeners installed ;-)


                          I wish I knew some way I could detect this and throw an exception. I don't really know a safe way though....

                          • 10. Re: Seam related Exception
                            Lewis Gass Newbie

                            Gavin,

                            How does that happen if I only have one registered in my faces-config.xml?

                            Lewie

                            • 11. Re: Seam related Exception
                              Gavin King Master

                              I have no idea :)

                              This is a Tomcat / MyFaces question.

                              • 12. Re: Seam related Exception
                                Lewis Gass Newbie

                                Gavin,

                                Well, thanks for your time spent on this. Do you know if Tomcat/My Faces have been informed..? I am going to post something in regards to this if I cannot find anything in the mailing lists.

                                Thanks,
                                Lewie

                                • 13. Re: Seam related Exception
                                  Lewis Gass Newbie

                                  Gavin,

                                  Can I get a clarification from you.... When you say


                                  Yep, looks like you got two phase listeners installed ;-)

                                  ....


                                  You mean in other words that my app has two instances of the phase listener class registered with the MyFaces system?

                                  Thanks,
                                  Lewie

                                  • 14. Re: Seam related Exception
                                    Gavin King Master

                                    Yes, well thats at least what it looks like to me. It's hard to tell from here. You can verify by putting myfaces in your sourcepath and debugging.

                                    1 2 Previous Next