12 Replies Latest reply on Jan 12, 2006 6:06 PM by Mark Rausch

    Tomohawk sortTable strange error

    Andrew Newbie

      Hi everyone!

      Excuse me for my poor english.
      I successfully got work tomohawk DataScrollerList with SEAM. There was no problem. List was in statefull component. I used @DataModel annotation

      But when I tried to make tomohawk sortTable work I faced with strange exception. Component rendered perfect but when I click for any link (not only in component) exception throwing:

      13:25:44,250 INFO [NamingHelper] JNDI InitialContext properties:{}
      13:25:44,281 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      java.lang.IllegalStateException: No conversation context active
       at org.jboss.seam.ScopeType.getContext(Unknown Source)
       at org.jboss.seam.Component.newInstance(Unknown Source)
       at org.jboss.seam.Component.getInstance(Unknown Source)
       at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(Unknown Source)
       at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:130)
       at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
       at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
       at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:104)
       at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:221)
       at com.sun.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:82)
       at com.sun.facelets.el.LegacyValueBinding.isReadOnly(LegacyValueBinding.java:82)
       at org.apache.myfaces.component.html.ext.HtmlDataTable.restoreState(HtmlDataTable.java:473)
       at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:511)
       at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
       at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
       at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:129)
       at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:185)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
       at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:319)
       at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:113)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       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.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(Unknown Source)
      13:56:20,390 ERROR [[/server]] Session event listener threw exception
      java.lang.NullPointerException
       at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.removeSession(StatefulRemoveInterceptor.java:61)
       at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:46)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:239)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:37)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:119)
       at $Proxy403.destroy(Unknown Source)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.seam.util.Reflections.invoke(Unknown Source)
       at org.jboss.seam.util.Reflections.invokeAndWrap(Unknown Source)
       at org.jboss.seam.contexts.Contexts.callDestroyMethod(Unknown Source)
       at org.jboss.seam.contexts.Contexts.destroy(Unknown Source)
       at org.jboss.seam.contexts.Lifecycle.endSession(Unknown Source)
       at org.jboss.seam.servlet.SeamListener.sessionDestroyed(Unknown Source)
       at org.apache.catalina.session.StandardSession.expire(StandardSession.java:675)
       at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:567)
       at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:655)
       at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:640)
       at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1283)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
       at java.lang.Thread.run(Unknown Source)


      It seams like all conversations lost.

      Any help will be nice. Thanks all

      --Andrew

        • 1. Re: Tomohawk sortTable strange error
          Mohammed Rizvi Rashid Newbie

          Could you tell me how did u configure Seam application for tomahawk. Did u place it in WEB-INF/lib of ur war project or did u place it in jsf-libs directory of jboss.

          • 2. Re: Tomohawk sortTable strange error
            Andrew Newbie

            As I already answered you in your topic I place tomahawk.jar to jsf-libs and removed it from WEB-INF/lib. I can't explain why we can't have it in WEB-INF/lib but in WEB-INF/lib it's not working.
            Try it

            --Andrew

            • 3. Re: Tomohawk sortTable strange error
              Andrew Newbie

              My classes:

              .xhtml

              <t:dataTable id="data"
               styleClass="scrollerTable"
               headerClass="standardTable_Header"
               footerClass="standardTable_Header"
               rowClasses="standardTable_Row1,standardTable_Row2"
               columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
               var="orderItem"
               value="#{orderManagement.orderList}"
               preserveDataModel="true"
               rows="10"
               sortColumn="#{orderManagement.sort}"
               sortAscending="#{orderManagement.ascending}"
               preserveSort="true">
               <h:column>
               <f:facet name="header">Id</f:facet>
               <h:outputText value="#{orderItem.item.id}" />
               </h:column>
               <h:column>
               <f:facet name="header">From</f:facet>
               #{orderItem.item.customer.shortName}
               </h:column>
               <h:column>
               <f:facet name="header">
               <t:commandSortHeader columnName="dateCreated" arrow="true">
               <h:outputText value="Date Of Creation" />
               </t:commandSortHeader>
               </f:facet>
               <h:outputText value="#{orderItem.item.dateOfCreation}" />
               </h:column>
              </t:dataTable>


              Action interface:

              @Remote
              public interface OrderManagement {
               public void destroy();
               public Order getOrder();
               public void sort(String sortColumn);
               public String getSort();
               public void setSort(String sort);
               public boolean isAscending();
               public void setAscending(boolean ascending);
               public List<SelectableItem<Order>> getOrderList();
               public void setOrderList(List<SelectableItem<Order>> orderList);
              }


              Action:

              @Stateful
              @Name("orderManagement")
              @Interceptor(SeamInterceptor.class)
              @SystemLoggedIn
              public class OrderManagementAction implements OrderManagement, Serializable {
               private static final Logger log = Logger.getLogger(OrderManagement.class);
               @PersistenceContext(type=EXTENDED)
               private EntityManager em;
               private String searchString;
               @DataModel
               public List<SelectableItem<Order>> orderList;
               @DataModelSelectionIndex
               public int orderIndex;
               @Out(required=false)
               private Order order;
               @In
               private transient FacesContext facesContext;
               @EJB
               private OrderDAOLocal orderDAO;
              
               public OrderManagementAction() {
               _sort = "dateCreated";
               _ascending = isDefaultAscending("dateCreated");
               }
              
               protected boolean isDefaultAscending(String sortColumn) { return true; }
              
               protected void sort(final String column, final boolean ascending) {
               Comparator comparator = new Comparator() {
               public int compare(Object o1, Object o2) {
               SelectableItem<Order> c1 = (SelectableItem<Order>) o1;
               SelectableItem<Order> c2 = (SelectableItem<Order>) o2;
               if (column == null) {
               return 0;
               }
               if (column.equals("dateCreated")) {
               return ascending ? c1.getItem().getCreated().compareTo(c2.getItem().getCreated()) : c2.getItem().getCreated()
               .compareTo(c1.getItem().getCreated());
               }
               else return 0;
               }
               };
               Collections.sort(orderList, comparator);
               }
               @Destroy @Remove
               public void destroy() {
               log.info("destroyed");
               }
               @Begin
               public String selectClassifier(Long classifierId) {
               orderList = new ArrayList();
               List<Order> orderListItem = orderDAO.findByClassifier(classifierId);
               Iterator it = orderListItem.iterator();
               while (it.hasNext()){
               orderList.add(new SelectableItem((Order)it.next()));
               log.info("?????? ");
               }
               order = orderList.get(0).getItem();
               log.info("??????? ?????? ?????? ???????? " + orderList.size());
               return "orderManagement";
               }
               public List<SelectableItem<Order>> getOrderList() {
               return orderList;
               }
               private String _sort;
               private boolean _ascending;
              
               public void sort(String sortColumn) {
               if (sortColumn == null) {
               throw new IllegalArgumentException("Argument sortColumn must not be null.");
               }
               if (_sort.equals(sortColumn)) {
               //current sort equals new sortColumn -> reverse sort order
               _ascending = !_ascending;
               }
               else {
               //sort new column in default direction
               _sort = sortColumn;
               _ascending = isDefaultAscending(_sort);
               }
               sort(_sort, _ascending);
               }
               public String getSort() {
               return _sort;
               }
               public void setSort(String sort){
               _sort = sort;
               }
               public boolean isAscending(){
               return _ascending;
               }
               public void setAscending(boolean ascending){
               _ascending = ascending;
               }
               public void setOrderList(List<SelectableItem<Order>> orderList) {
               this.orderList = orderList;
               }
              }
              


              • 4. Re: Tomohawk sortTable strange error
                Marius Oancea Novice

                Please cange @Remote to @Local in OrderManagement

                • 5. Re: Tomohawk sortTable strange error
                  Marius Oancea Novice

                  cange->change

                  • 6. Re: Tomohawk sortTable strange error
                    Andrew Newbie

                    Sorry the same error :-(

                    --Andrew

                    • 7. Re: Tomohawk sortTable strange error
                      Martin Henderson Newbie

                      Hi folks,
                      Did anyone manage to get a resolution to this? I'm also trying to use a sortable table in a similar situation and whilst it renders correctly clicking any component on the table causes the 'no conversation context' error to occur.

                      Maybe someome has an idea?
                      Really really hope someone can help.

                      Thanks,

                      Marty

                      • 8. Re: Tomohawk sortTable strange error
                        Dennis Wenger Newbie

                        Hi,

                        I'm quite new to J2EE and Seam, but it seems you use the method:
                        public String selectClassifier(Long classifierId)
                        to populate you "orderList". You should call "sort(final String column, final boolean ascending)" after fetching the data.
                        Maybe u'll need to call sort in some other places, like the setters of the sort parameter.

                        Greetings Dennis

                        • 9. Re: Tomohawk sortTable strange error
                          Thorsten Kunz Novice

                          Is there a solution to this problem yet? I have the current CVS of seam and my setup looks pretty much like Zealots. The table is rendered fine and the sort links appear in the header but as soon as you click them it throws this nasty exception:

                          19:55:12,281 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                          java.lang.IllegalStateException: No conversation context active
                           at org.jboss.seam.ScopeType.getContext(ScopeType.java:49)
                           at org.jboss.seam.Component.newInstance(Component.java:1090)
                           at org.jboss.seam.Component.getInstance(Component.java:1037)
                           at org.jboss.seam.Component.getInstance(Component.java:1020)
                           at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
                           at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                           at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
                           at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
                           at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:104)
                           at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:221)
                           at com.sun.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:82)
                           at com.sun.facelets.el.LegacyValueBinding.isReadOnly(LegacyValueBinding.java:82)
                           at org.apache.myfaces.component.html.ext.HtmlDataTable.restoreState(HtmlDataTable.java:477)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:803)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:182)
                           at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:241)
                           at org.jboss.seam.jsf.SeamPhaseListener$StateManagerInterceptor.restoreView(SeamPhaseListener.java:195)
                           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
                           at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:321)
                           at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:143)
                           at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:108)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                           at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:129)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                           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:482)
                           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(Unknown Source)
                          19:56:09,218 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                          java.lang.IllegalStateException: No conversation context active
                           at org.jboss.seam.ScopeType.getContext(ScopeType.java:49)
                           at org.jboss.seam.Component.newInstance(Component.java:1090)
                           at org.jboss.seam.Component.getInstance(Component.java:1037)
                           at org.jboss.seam.Component.getInstance(Component.java:1020)
                           at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
                           at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                           at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
                           at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
                           at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:104)
                           at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:221)
                           at com.sun.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:82)
                           at com.sun.facelets.el.LegacyValueBinding.isReadOnly(LegacyValueBinding.java:82)
                           at org.apache.myfaces.component.html.ext.HtmlDataTable.restoreState(HtmlDataTable.java:477)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:803)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:182)
                           at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:241)
                           at org.jboss.seam.jsf.SeamPhaseListener$StateManagerInterceptor.restoreView(SeamPhaseListener.java:195)
                           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
                           at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:321)
                           at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:143)
                           at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:108)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                           at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:129)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                           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:482)
                           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(Unknown Source)
                          19:58:46,812 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                          java.lang.IllegalStateException: No conversation context active
                           at org.jboss.seam.ScopeType.getContext(ScopeType.java:49)
                           at org.jboss.seam.Component.newInstance(Component.java:1090)
                           at org.jboss.seam.Component.getInstance(Component.java:1037)
                           at org.jboss.seam.Component.getInstance(Component.java:1020)
                           at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
                           at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
                           at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
                           at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
                           at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:104)
                           at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:221)
                           at com.sun.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:82)
                           at com.sun.facelets.el.LegacyValueBinding.isReadOnly(LegacyValueBinding.java:82)
                           at org.apache.myfaces.component.html.ext.HtmlDataTable.restoreState(HtmlDataTable.java:477)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:803)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:794)
                           at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:182)
                           at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:241)
                           at org.jboss.seam.jsf.SeamPhaseListener$StateManagerInterceptor.restoreView(SeamPhaseListener.java:195)
                           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
                           at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:321)
                           at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:143)
                           at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:108)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                           at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:129)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                           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:482)
                           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(Unknown Source)
                          
                          

                          Else Tomahawk works find and without problems.

                          • 10. Re: Tomohawk sortTable strange error
                            Gavin King Master

                            Seam does not establish the conversation context until the end of the restore view phase.

                            So you can't write anything that would make JSF try to use a conversation-scoped component during restore view.

                            • 11. Re: Tomohawk sortTable strange error
                              Mark Rausch Newbie

                              Hello,

                              Has anyone resolved this? I am seeing the same behavior as Zealot and SunFire.

                              Any suggestions would be appreciated.

                              Thanks,
                              Mark

                              • 12. Re: Tomohawk sortTable strange error
                                Mark Rausch Newbie

                                Woops,

                                I didn't realize the topic spanned two pages.