13 Replies Latest reply on Apr 14, 2010 11:48 AM by deadlock gr

    No Active Conversation Context Error

    mike jones Newbie
      Hello,

      I have 3 pages with back and next buttons.

      The buttons are simple Seam UI buttons.

      I am periodically getting the No Conversation Context when navigating

      between pages.

      I have no clue why this is happening.

      I am not even using long running conversations.

      When I add the propogation="none" to the button the probably

      goes away but I notice the conversation id changes each

      time a page is accessed.

      My question is why am I getting the No Conversation Context

      and if I am using Tempory Conversation do I have to add

      the propagating=none attribute to every Seam UI component such

      as a button seems excessive.

      Also how can you determine if you are running a temporary

      conversation or long running.  You can't tell from the conversation

      id.  It would be good to know if there is a way to determine if

      you are running a tempory conversation or long running.

      Also if you promote to a long running conversation does the

      conversation id change?

      Thanks for the help

        • 1. Re: No Active Conversation Context Error
          Bernard Labno Master

          Post full stack trace and facelets code.
          You do not need posting propagation=none. If you are not in long-running conversation than conversation equals single request (event scope), so no wonder that conversation id is changing.
          To tell if you are in long running conversation use :


          #{conversation.longRunning}

          • 2. Re: No Active Conversation Context Error
            mike jones Newbie
            Here is the button in the atbc_search page

            <s:button id="loginButton" alt="Submit button"
                                                                                                            value="#{messages['button.next']}"  action="#{atbcSearchSFSB.find}" </s:button>

            First what scope is the above button using?

            I thought its a temporary conversation
                                                                                                   
            I have a similiar buttons for the next and back button that

            are on the atbch_change page. 

            I start navigating back in forth from the atbc_search page

            and atbch_change page and it works then suddenly

            breaks.  The convesation id never changes it was always cid=6

            Here is exception and pages.xml is below.

            I am just nsvigating back and forth between the atbc_seach

            page and the atbc_change page thats it.  It works for a while

            the just stops and I get the No Active Convesation Context.

            This makes no sense.


            <page view-id="/view/atbc_search.xhtml">
                            <navigation from-action="#{atbcSearchSFSB.find}">
                                    <rule if-outcome="find">
                                            <redirect view-id="/view/atbc_change.xhtml" />
                                    </rule>
                            </navigation>
                    </page>
                   
                    <page view-id="/view/atbc_change.xhtml">
                            <navigation from-action="#{atbcChangeSFSB.back}">
                                    <rule if-outcome="back">
                                            <redirect view-id="/view/atbc_search.xhtml" />
                                    </rule>
                                    <rule if-outcome="next">
                                            <redirect view-id="/view/home.xhtml" />
                                    </rule>
                            </navigation>
                            <navigation from-action="#{atbcChangeSFSB.next}">
                                    <rule if-outcome="next">
                                            <redirect view-id="/view/home.xhtml" />
                                    </rule>
                            </navigation>
                    </page>


            10/7/09 9:41:13:616 EDT] 0000002b viewhandler   E   Error Rendering View[/view/atbc_change.xhtml]
                                             java.lang.IllegalStateException: No active conversation context
                    at org.jboss.seam.core.Conversation.instance(Conversation.java:122)
                    at org.jboss.seam.ui.component.UIConversationId.getName(UIConversationId.java:44)
                    at org.jboss.seam.ui.util.ViewUrlBuilder.addParameter(ViewUrlBuilder.java:42)
                    at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:85)
                    at org.jboss.seam.ui.renderkit.ButtonRendererBase.getOnClick(ButtonRendererBase.java:37)
                    at org.jboss.seam.ui.renderkit.ButtonRendererBase.doEncodeBegin(ButtonRendererBase.java:66)
                    at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
                    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:232)
                    at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:118)
                    at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
                    at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                    at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                    at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)

            whats your email address?
                   
            • 3. Re: No Active Conversation Context Error
              mike jones Newbie
              Sorry here is full stack trace

              I noticed this strange error

              "EJBContext may only be looked up by or injected into an EJB"

              10/7/09 9:41:13:897 EDT 0000002b webapp        E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: Servlet Error-Faces Servlet: java.lang.IllegalStateException: No active conversation context
                      at org.jboss.seam.core.Conversation.instance(Conversation.java:122)
                      at org.jboss.seam.ui.component.UIConversationId.getName(UIConversationId.java:44)
                      at org.jboss.seam.ui.util.ViewUrlBuilder.addParameter(ViewUrlBuilder.java:42)
                      at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:85)
                      at org.jboss.seam.ui.renderkit.ButtonRendererBase.getOnClick(ButtonRendererBase.java:37)
                      at org.jboss.seam.ui.renderkit.ButtonRendererBase.doEncodeBegin(ButtonRendererBase.java:66)
                      at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
                      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
                      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:232)
                      at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:118)
                      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
                      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
                      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
                      at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
                      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
                      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                      at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
                      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
                      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1536)
                      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1470)
                      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                      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.LoggingFilter.doFilter(LoggingFilter.java:60)
                      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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
                      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:858)
                      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:824)
                      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:458)
                      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
                      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
                      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:862)
                      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
                      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:178)
                      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
                      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
                      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
                      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
                      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
                      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
                      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
                      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
                      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
                      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
                      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

              10/7/09 9:51:42:089 EDT 00000002 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\RAD75\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_42c742c7_09.10.07_09.51.42.08962545.txt com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt 1006
              10/7/09 9:51:42:089 EDT 00000002 Helpers       W   NMSV0605W: A javax.naming.Reference object looked up from the context "java:" with the name "comp/EJBContext" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
              Reference Factory Class Name: com.ibm.ws.ejbcontainer.injection.factory.EJBContextObjectFactory
              Reference Factory Class Location URLs: <null>
              Reference Class Name: javx.ejb.EJBContext

              Exception data follows:
              com.ibm.wsspi.injectionengine.InjectionException: EJBContext may only be looked up by or injected into an EJB
                      at com.ibm.ws.ejbcontainer.injection.factory.EJBContextObjectFactory.getObjectInstance(EJBContextObjectFactory.java:84)
                      at javax.naming.spi.NamingManager.getObjectInstanceByFactoryInReference(Unknown Source)
                      at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
                      at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:920)
                      at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:175)
                      at com.ibm.ws.naming.java.javaURLContextRoot.processBoundObjectForLookup(javaURLContextRoot.java:402)
                      at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1249)
                      at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:394)
                      at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:214)
                      at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:154)
                      at javax.naming.InitialContext.lookup(Unknown Source)
                      at org.jboss.seam.util.EJB.getEJBContext(EJB.java:89)
                      at org.jboss.seam.transaction.Transaction.createCMTTransaction(Transaction.java:69)
                      at org.jboss.seam.transaction.Transaction.getTransaction(Transaction.java:53)
                      at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
                      at java.lang.reflect.Method.invoke(Method.java:599)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                      at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
                      at org.jboss.seam.Component.unwrap(Component.java:2275)
                      at org.jboss.seam.Component.getInstance(Component.java:2041)
                      at org.jboss.seam.Component.getInstance(Component.java:2000)
                      at org.jboss.seam.Component.getInstance(Component.java:1994)
                      at org.jboss.seam.Component.getInstance(Component.java:1967)
                      at org.jboss.seam.Component.getInstance(Component.java:1962)
                      at org.jboss.seam.transaction.Transaction.instance(Transaction.java:39)
                      at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:331)
                      at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:101)
                      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:122)
                      at org.jboss.seam.intercept.RootInterceptor.invokeAndHandle(RootInterceptor.java:84)
                      at org.jboss.seam.intercept.SessionBeanInterceptor.prePassivate(SessionBeanInterceptor.java:56)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
                      at java.lang.reflect.Method.invoke(Method.java:599)
                      at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeInterceptor(InterceptorProxy.java:227)
                      at com.ibm.ejs.container.interceptors.InvocationContextImpl.proceed(InvocationContextImpl.java:566)
                      at com.ibm.ejs.container.interceptors.InvocationContextImpl.doLifeCycle(InvocationContextImpl.java:264)
                      at com.ibm.ejs.container.StatefulBeanO.passivate(StatefulBeanO.java:1114)
                      at com.ibm.ejs.container.StatefulBeanO.uninstall(StatefulBeanO.java:1522)
                      at com.ibm.ejs.container.activator.StatefulSessionActivationStrategy.atTimeout(StatefulSessionActivationStrategy.java:624)
                      at com.ibm.ejs.container.activator.Activator.timeoutBean(Activator.java:851)
                      at com.ibm.ejs.container.StatefulBeanReaper.deleteBean(StatefulBeanReaper.java:468)
                      at com.ibm.ejs.container.StatefulBeanReaper.sweep(StatefulBeanReaper.java:295)
                      at com.ibm.ejs.container.StatefulBeanReaper.alarm(StatefulBeanReaper.java:252)
                      at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:127)
                      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
              • 4. Re: No Active Conversation Context Error
                Bernard Labno Master

                My email address is on my profile.
                Both s:button and s:link by default will try to attach conversation id so if conversation is long-running than it will be resumed/continued after link is clicked.
                I have no idea what is going on in our app yet. Post atbcSearchSFSB. It seems more like a configuration problem.

                • 5. Re: No Active Conversation Context Error
                  mike jones Newbie
                  package gov.tres.fms.tcmm.sfsb;

                  import gov.tres.fms.tcmm.entities.Pledgor;
                  import gov.tres.fms.tcmm.entities.SecurityAccount;
                  import gov.tres.fms.tcmm.ui.navigation.INavigationResults;

                  import java.util.List;
                  import java.io.Serializable;
                  import javax.ejb.Remove;
                  import javax.ejb.Stateful;
                  import javax.ejb.TransactionAttribute;
                  import javax.persistence.EntityManager;
                  import javax.persistence.PersistenceContextType;
                  import javax.persistence.PersistenceContext;
                  import org.jboss.seam.ScopeType;
                  import org.jboss.seam.annotations.Begin;
                  import org.jboss.seam.annotations.Destroy;
                  import org.jboss.seam.annotations.Logger;
                  import org.jboss.seam.annotations.Factory;
                  import org.jboss.seam.annotations.Name;
                  import org.jboss.seam.annotations.Out;
                  import org.jboss.seam.annotations.Scope;
                  import org.jboss.seam.annotations.datamodel.DataModel;
                  import org.jboss.seam.annotations.datamodel.DataModelSelection;
                  import org.jboss.seam.log.Log;

                  @Stateful
                  @Name("atbcSearchSFSB")
                  @Scope(ScopeType.CONVERSATION)

                  public class ATBCSearchSFSB implements Serializable, IATBCSearchFacade {

                       @PersistenceContext(type = PersistenceContextType.EXTENDED)
                       private EntityManager em;

                       @DataModel
                       private List<Pledgor> pledgorList;
                       
                       @DataModelSelection
                       private Pledgor selectedPledgor;

                       @Logger
                       private Log logger;
                       
                       private Pledgor pledgor;

                       String lastStateChange = "";
                       
                       @Factory("pledgorList")
                       public void getPledgorList() {

                            System.out.println("In Factory...");
                            pledgorList = em.createNamedQuery(
                                      Pledgor.GET_PLEDGORS).getResultList();
                            
                            pledgor = (Pledgor) pledgorList.get(0);


                       
                       }
                       
                       public void setPledgor(Pledgor pledgor){
                            this.pledgor = pledgor;
                       }
                       
                       public Pledgor getPledgor(){
                            
                            return pledgor;
                       }


                       public String find() {
                            
                                 
                            lastStateChange = INavigationResults.FIND;
                            
                            return lastStateChange;

                       }

                       @Destroy
                       @Remove
                       public void destroy() {
                       }

                  }
                  • 6. Re: No Active Conversation Context Error
                    mike jones Newbie
                    <blockquote>
                    _Mike Jones wrote on Oct 07, 2009 17:42:_<br/>



                    import java.util.List;
                    import java.io.Serializable;
                    import javax.ejb.Remove;
                    import javax.ejb.Stateful;
                    import javax.ejb.TransactionAttribute;
                    import javax.persistence.EntityManager;
                    import javax.persistence.PersistenceContextType;
                    import javax.persistence.PersistenceContext;
                    import org.jboss.seam.ScopeType;
                    import org.jboss.seam.annotations.Begin;
                    import org.jboss.seam.annotations.Destroy;
                    import org.jboss.seam.annotations.Logger;
                    import org.jboss.seam.annotations.Factory;
                    import org.jboss.seam.annotations.Name;
                    import org.jboss.seam.annotations.Out;
                    import org.jboss.seam.annotations.Scope;
                    import org.jboss.seam.annotations.datamodel.DataModel;
                    import org.jboss.seam.annotations.datamodel.DataModelSelection;
                    import org.jboss.seam.log.Log;

                    @Stateful
                    @Name("atbcSearchSFSB")
                    @Scope(ScopeType.CONVERSATION)

                    public class ATBCSearchSFSB implements Serializable, IATBCSearchFacade {

                            @PersistenceContext(type = PersistenceContextType.EXTENDED)
                            private EntityManager em;

                            @DataModel
                            private List<Pledgor> pledgorList;
                           
                            @DataModelSelection
                            private Pledgor selectedPledgor;

                            @Logger
                            private Log logger;
                           
                            private Pledgor pledgor;

                            String lastStateChange = "";
                           
                            @Factory("pledgorList")
                            public void getPledgorList() {

                                    System.out.println("In Factory...");
                                    pledgorList = em.createNamedQuery(
                                                    Pledgor.GET_PLEDGORS).getResultList();
                                   
                                    pledgor = (Pledgor) pledgorList.get(0);


                           
                            }
                           
                            public void setPledgor(Pledgor pledgor){
                                    this.pledgor = pledgor;
                            }
                           
                            public Pledgor getPledgor(){
                                   
                                    return pledgor;
                            }


                            public String find() {
                                   
                                           
                                    lastStateChange = INavigationResults.FIND;
                                   
                                    return lastStateChange;

                            }

                            @Destroy
                            @Remove
                            public void destroy() {
                            }

                    }

                    </blockquote>

                    Click HELP for text formatting instructions. Then edit this text and check the preview.
                    • 7. Re: No Active Conversation Context Error
                      mike jones Newbie
                      just got error again.

                      when just navigating back and forth between search page

                      and change page

                      [10/7/09 11:50:28:082 EDT] 0000002b viewhandler   E   Error Rendering View[/view/atbc_search.xhtml]
                                                       java.lang.IllegalStateException: No active conversation context
                           at org.jboss.seam.core.Conversation.instance(Conversation.java:122)
                           at org.jboss.seam.ui.component.UIConversationId.getName(UIConversationId.java:44)
                           at org.jboss.seam.ui.util.ViewUrlBuilder.addParameter(ViewUrlBuilder.java:42)
                           at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:85)
                           at org.jboss.seam.ui.renderkit.ButtonRendererBase.getOnClick(ButtonRendererBase.java:37)
                           at org.jboss.seam.ui.renderkit.ButtonRendererBase.doEncodeBegin(ButtonRendererBase.java:66)
                           at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
                           at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
                           at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:232)
                           at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:118)
                           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
                           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                           
                      • 8. Re: No Active Conversation Context Error
                        mike jones Newbie
                        just got error again.

                        Just navigating between atbc_change page and atbch_search page

                        10/7/09 11:50:28:082 EDT] 0000002b viewhandler   E   Error Rendering View/view/atbc_search.xhtml]
                                                         java.lang.IllegalStateException: No active conversation context
                                at org.jboss.seam.core.Conversation.instance(Conversation.java:122)
                                at org.jboss.seam.ui.component.UIConversationId.getName(UIConversationId.java:44)
                                at org.jboss.seam.ui.util.ViewUrlBuilder.addParameter(ViewUrlBuilder.java:42)
                                at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:85)
                                at org.jboss.seam.ui.renderkit.ButtonRendererBase.getOnClick(ButtonRendererBase.java:37)
                                at org.jboss.seam.ui.renderkit.ButtonRendererBase.doEncodeBegin(ButtonRendererBase.java:66)
                                at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
                                at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
                                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:232)
                                at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:118)
                                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
                                at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
                             
                        • 9. Re: No Active Conversation Context Error
                          mike jones Newbie

                          I am also using the Seam Redirect Servlet

                          • 10. Re: No Active Conversation Context Error
                            mike jones Newbie

                            I am also using the Seam Redirect Servlet

                            • 11. Re: No Active Conversation Context Error
                              mike jones Newbie

                              I am also using the Seam Redirect Servlet that preserves


                              the conversation across redirects

                              • 12. Re: No Active Conversation Context Error
                                mike jones Newbie

                                I was able to resolve the No Conversation Context error.


                                I was not aware but the jboss-seam.jar includes a faces-config.xml


                                which add the SeamPhaseListener.


                                I have a separate faces-config.xml for my application and also


                                add the SeamPhaseListener so it was getting added twice.


                                Somehow this was causing the No Conversation Context error.


                                I removed the phase listener from the faces-config.xml from


                                my application and everything is working.


                                I think this should be added to the Seam documentation somewhere


                                the fact that the SeamPhaseListener has already been added


                                to the jboss-seam.jar and developers don't need to add it


                                to the faces-config.xml that is used by their application because


                                it appears to cause strange behavior.



                                • 13. Re: No Active Conversation Context Error
                                  deadlock gr Newbie

                                  I have the same error in WebLogic 10.3.2 (11g) without having the SeamPhaseListener in my faces.config...