6 Replies Latest reply on Oct 6, 2008 4:54 AM by First Last

    Exception thrown during phase-listener execution (2.1.0.CR1)

    First Last Newbie

      After upgrading from 2.0.1.CR1 to 2.1.0.CR1, I noted the following exception when hot deploying an application to JBoss 4.2.2.GA.



      WARN  [lifecycle] JSF1053: (Listener: org.jboss.seam.pdf.DocumentStorePhaseListener.beforePhase(), Phase ID: RENDER_RESPONSE 6,  View ID: /index.xhtml) Exception thrown during phase-listener execution: java.lang.IllegalStateException: No application context active




      This problem does not occur when JBoss is first started and the application deployed successfully. I have tried to include and exclude seam pdf support but the problem is still not resolved. Anyone has come across with similar problem with the latest release? Thanks.

        • 1. Re: Exception thrown during phase-listener execution (2.1.0.CR1)
          Pete Muir Master

          Can you post the full log for the redeploy and the whole of the stack trace

          • 2. Re: Exception thrown during phase-listener execution (2.1.0.CR1)
            First Last Newbie

            Here they are. Thanks.


            18:10:55,843 WARN  [lifecycle] JSF1053: (Listener: org.jboss.seam.pdf.DocumentStorePhaseListener.beforePhase(), Phase ID: RENDER_RESPONSE 6,  View ID: /index.xhtml) Exception thrown during phase-listener execution: java.lang.IllegalStateException: No application context active
            18:10:55,843 WARN  [lifecycle] org.jboss.seam.Component.forName(Component.java:1810)
            org.jboss.seam.Component.getInstance(Component.java:1860)
            org.jboss.seam.Component.getInstance(Component.java:1855)
            org.jboss.seam.Component.getInstance(Component.java:1832)
            org.jboss.seam.Component.getInstance(Component.java:1827)
            org.jboss.seam.web.Parameters.instance(Parameters.java:81)
            org.jboss.seam.pdf.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:33)
            com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
            com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
            com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
            javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
            org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:44)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
            org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
            org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
            org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
            org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
            org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
            org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            java.lang.Thread.run(Unknown Source)


            • 3. Re: Exception thrown during phase-listener execution (2.1.0.CR1)
              Pete Muir Master

              Try actually updating the jboss-seam-pdf.jar as well.

              • 4. Re: Exception thrown during phase-listener execution (2.1.0.CR1)
                First Last Newbie

                jboss-seam-pdf.jar in the deployed WAR-file/WEB-INF/lib is version 2.1.0.CR1.


                I have also tried to remove jboss-seam-pdf.jar but the problem still appear after redeployment of the application.


                The redeployment is actually completed successfully (without warning and error messages). The exception is throw when trying to access index.xhtml (which is a simple login form using Credentials and Identity components) or any .xhtml pages.

                • 5. Re: Exception thrown during phase-listener execution (2.1.0.CR1)
                  Pete Muir Master

                  Well, then check elsewhere, that stack trace references classes which aren't present in 2.1.0.CR1

                  • 6. Re: Exception thrown during phase-listener execution (2.1.0.CR1)
                    First Last Newbie

                    Pete,


                    thank you for pointing out the discrepancy in classes from the stack trace. After cleaning up JBoss AS, the problem is resolved. Sorry for the false alarm. Thanks again.