4 Replies Latest reply on Oct 7, 2007 8:18 PM by Wesley Hales

    java.util.EmptyStackException

    Wesley Hales Master

      Using Maven build 2.0.0.CR2 (+ Trinidad 1.0.2)
      Richfaces 3.2.0-SNAPSHOT
      Embedded on Tomcat 6.0.13

      This only happens when I visit a page that's using a Richfaces component (in this case rich:panelMenu). I get the first "no conversation context" when the link to this page already has type="begin", join, none, etc.. I tried them all. After that exception, I can navigate around to different pages, but when I come back to the page with the panelMenu I get an infinite loop of EmptyStackException.

      This is in JIRA but may need to submit a new issue...
      http://jira.jboss.com/jira/browse/JBSEAM-1696

      java.lang.IllegalStateException: No active conversation context
       at org.jboss.seam.faces.FacesMessages.instance(FacesMessages.java:440)
       at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:467)
      
       at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
       at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
       at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:165)
       at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
       at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
       at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService
      
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService
      
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
      
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
      
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protoco
      
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      21:46:42,368 ERROR [org.jboss.seam.jsf.SeamPhaseListener] () swallowing exception
      java.lang.IllegalStateException: No active conversation context
       at org.jboss.seam.faces.FacesMessages.instance(FacesMessages.java:440)
       at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:467)


      SEVERE: No RenderingContext has been created.
      21:47:35,821 ERROR [org.jboss.seam.jsf.SeamPhaseListener] () uncaught exception
      java.lang.IllegalStateException: Could not commit transaction
       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:592)
       at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.j
      
       at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
       at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
      
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
      
       at com.halesconsulting.web.filter.RendererFilter.doFilter(RendererFilter.java:172)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
      
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
      
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(Trinida
      
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadF
      
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilter
      
       at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
      
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
      
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
      
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
      
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protoco
      
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.util.EmptyStackException
       at java.util.Stack.peek(Stack.java:79)
       at org.jboss.seam.transaction.SeSynchronizations.beforeTransactionCommit(SeSynchronizati
      
       at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:49)
       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:582)
       ... 43 more
      21:47:35,852 ERROR [org.jboss.seam.jsf.SeamPhaseListener] () uncaught exception
      java.lang.IllegalStateException: Could not commit transaction
       at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:592)
       at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.j


        • 1. Re: java.util.EmptyStackException
          Wesley Hales Master

          I should clarify that everything works fine in FF, it's when I try it in IE6 or 7.

          • 2. Re: java.util.EmptyStackException
            Wesley Hales Master

            I removed all RichFaces components and the page works fine... Then, I added rich:panel and the exception didn't completely kill my app but it looks like there is a problem with the resources from richfaces?

            I also tried a few things from this thread to no avail.

            [INFO] [talledLocalContainer] 11:41:16,868 ERROR [org.jboss.seam.jsf.SeamPhaseListener] () uncaught exception
            [INFO] [talledLocalContainer] java.lang.IllegalStateException: No active conversation context
            [INFO] [talledLocalContainer] at org.jboss.seam.faces.FacesMessages.instance(FacesMessages.java:440)
            [INFO] [talledLocalContainer] at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:467)
            
            [INFO] [talledLocalContainer] at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
            [INFO] [talledLocalContainer] at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:165)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
            [INFO] [talledLocalContainer] at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
            [INFO] [talledLocalContainer] at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService
            .java:198)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService
            .java:144)
            [INFO] [talledLocalContainer] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
            [INFO] [talledLocalContainer] at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
            [INFO] [talledLocalContainer] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            [INFO] [talledLocalContainer] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
            [INFO] [talledLocalContainer] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            [INFO] [talledLocalContainer] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
            in.java:235)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
            206)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
            [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protoco
            l.java:581)
            [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:595)
            [INFO] [talledLocalContainer] 11:41:16,946 ERROR [org.jboss.seam.jsf.SeamPhaseListener] () swallowing exception
            [INFO] [talledLocalContainer] java.lang.IllegalStateException: No active conversation context
            [INFO] [talledLocalContainer] at org.jboss.seam.faces.FacesMessages.instance(FacesMessages.java:440)
            [INFO] [talledLocalContainer] at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:467)
            
            [INFO] [talledLocalContainer] at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
            [INFO] [talledLocalContainer] at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:165)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
            [INFO] [talledLocalContainer] at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
            [INFO] [talledLocalContainer] at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService
            .java:198)
            [INFO] [talledLocalContainer] at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService
            .java:144)
            [INFO] [talledLocalContainer] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
            [INFO] [talledLocalContainer] at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
            [INFO] [talledLocalContainer] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            [INFO] [talledLocalContainer] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
            [INFO] [talledLocalContainer] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            [INFO] [talledLocalContainer] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha
            in.java:235)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
            206)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
            [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protoco
            l.java:581)
            [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:595)
            [INFO] [talledLocalContainer] Oct 7, 2007 11:41:17 AM org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit c
            reateResponseWriter
            [INFO] [talledLocalContainer] SEVERE: No RenderingContext has been created.
            


            • 3. Re: java.util.EmptyStackException
              Gavin King Master

              Why not try reporting this in the richfaces forum?

              • 4. Re: java.util.EmptyStackException
                Wesley Hales Master

                Done http://jboss.com/index.html?module=bb&op=viewtopic&t=120576

                When I was troubleshooting this I tried using:

                <web:ajax4jsf-filter force-parser="true"
                 enable-cache="true"
                 log4j-init-file="log4j.xml"
                 url-pattern="*.seam"/>

                in different variations, and the components rendered, but the Richfaces js and css were completely broken.

                If I can't eventually get to the bottom of it, I will upload the maven app so you can take a look.

                Gracias!