2 Replies Latest reply on Feb 9, 2006 1:27 PM by Gavin King

    Seam Debug Page

    js8523 Novice

      Hi all

      I am trying to use the Seam Debug Page from the DVD example application.
      (I have tested it in the dvd app and it works (on the same server configuration).

      I have copied it to my app, but when I try to run it I get.


      java.lang.IllegalStateException: Client-id : _id0 is duplicated in the faces tree.
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
      at org.jboss.seam.jsf.SeamPhaseListener$StateManagerInterceptor.saveSerializedView(SeamPhaseListener.java:210)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:471)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:44)
      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:96)
      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:54)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      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:868)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)


      And the error page displays the component tree as


      Component Tree

      <UIViewRoot id="_id0" locale="en" renderKitId="HTML_BASIC" rendered="true" transient="false" viewId="/debug.xhtml">

      <HtmlOutputText escape="true" id="test" rendered="true" transient="false" value="No long-running conversations exist"/>

      <HtmlDataTable border="-2147483648" first="0" id="_id0" rendered="false" rowIndex="-1" rows="0" transient="false" value="[Lorg.jboss.seam.core.ConversationEntry;@1355ef9" var="entry">

      <UIColumn id="_id1" rendered="true" transient="false"/>

      <UIColumn id="_id2" rendered="true" transient="false">

      <HtmlOutputText converter="javax.faces.convert.DateTimeConverter@ee4084" escape="true" id="_id3" rendered="true" transient="false"/>

      <HtmlOutputText converter="javax.faces.convert.DateTimeConverter@1cdc4a5" escape="true" id="_id4" rendered="true" transient="false"/>

      </UIColumn>

      <UIColumn id="_id5" rendered="true" transient="false"/>

      <UIColumn id="_id6" rendered="true" transient="false"/>

      <UIColumn id="_id7" rendered="true" transient="false">

      <HtmlOutputLink id="_id8" rendered="true" transient="false">

      <UIParameter id="_id9" name="conversationId" rendered="true" transient="false"/>

      </HtmlOutputLink>

      </UIColumn>

      </HtmlDataTable>

      <HtmlOutputText escape="true" id="_id10" rendered="false" transient="false" value="()"/>

      <HtmlOutputText escape="true" id="_id11" rendered="true" transient="false" value="(None selected)"/>

      <HtmlOutputText escape="true" id="_id12" rendered="true" transient="false" value="Select a component from one of the contexts below"/>

      <HtmlDataTable border="-2147483648" first="0" id="_id13" rendered="false" rowIndex="-1" rows="0" transient="false" var="attribute">

      <UIColumn id="_id14" rendered="true" transient="false"/>

      <UIColumn id="_id15" rendered="true" transient="false"/>

      </HtmlDataTable>

      <HtmlOutputText escape="true" id="_id16" rendered="false" transient="false" value="(1)"/>

      <HtmlOutputText escape="true" id="_id17" rendered="true" transient="false" value="(None selected)"/>

      <HtmlOutputText escape="true" id="_id18" rendered="false" transient="false" value="Empty conversation context"/>

      <HtmlDataTable border="-2147483648" first="0" id="_id19" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@ea86e3" var="name">

      <UIColumn id="_id20" rendered="true" transient="false">

      <HtmlOutputLink id="_id21" rendered="true" transient="false">

      <UIParameter id="_id22" name="name" rendered="true" transient="false"/>

      <UIParameter id="_id23" name="conversationId" rendered="true" transient="false" value="1"/>

      </HtmlOutputLink>

      </UIColumn>

      </HtmlDataTable>

      <HtmlOutputText escape="true" id="_id24" rendered="true" transient="false" value="Empty business process context"/>

      <HtmlDataTable border="-2147483648" first="0" id="_id25" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@1b4e557" var="name">

      <UIColumn id="_id26" rendered="true" transient="false">

      <HtmlOutputLink id="_id27" rendered="true" transient="false">

      <UIParameter id="_id28" name="name" rendered="true" transient="false"/>

      <UIParameter id="_id29" name="conversationId" rendered="true" transient="false" value="1"/>

      </HtmlOutputLink>

      </UIColumn>

      </HtmlDataTable>

      <HtmlOutputText escape="true" id="_id30" rendered="true" transient="false" value="Empty session context"/>

      <HtmlDataTable border="-2147483648" first="0" id="_id31" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@13cd05a" var="name">

      <UIColumn id="_id32" rendered="true" transient="false">

      <HtmlOutputLink id="_id33" rendered="true" transient="false">

      <UIParameter id="_id34" name="name" rendered="true" transient="false"/>

      <UIParameter id="_id35" name="conversationId" rendered="true" transient="false" value="1"/>

      </HtmlOutputLink>

      </UIColumn>

      </HtmlDataTable>

      <HtmlDataTable border="-2147483648" first="0" id="_id36" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@192ce93" var="name">

      <UIColumn id="_id37" rendered="true" transient="false">

      <HtmlOutputLink id="_id38" rendered="true" transient="false">

      <UIParameter id="_id39" name="name" rendered="true" transient="false"/>

      <UIParameter id="_id40" name="conversationId" rendered="true" transient="false" value="1"/>

      </HtmlOutputLink>

      </UIColumn>

      </HtmlDataTable>

      </UIViewRoot>


      I am using facelets 1.0.10, and all of my other pages are using facelets quite succesfully.

      I don't know why this isn't working, if any could give me a tip, I would be very grateful.

      Thanks,

      James

        • 1. Re: Seam Debug Page
          js8523 Novice

           

          Component Tree
          
          <UIViewRoot id="_id0" locale="en" renderKitId="HTML_BASIC" rendered="true" transient="false" viewId="/debug.xhtml">
          
           <HtmlOutputText escape="true" id="test" rendered="true" transient="false" value="No long-running conversations exist"/>
          
           <HtmlDataTable border="-2147483648" first="0" id="_id0" rendered="false" rowIndex="-1" rows="0" transient="false" value="[Lorg.jboss.seam.core.ConversationEntry;@1355ef9" var="entry">
          
           <UIColumn id="_id1" rendered="true" transient="false"/>
          
           <UIColumn id="_id2" rendered="true" transient="false">
          
           <HtmlOutputText converter="javax.faces.convert.DateTimeConverter@ee4084" escape="true" id="_id3" rendered="true" transient="false"/>
          
           <HtmlOutputText converter="javax.faces.convert.DateTimeConverter@1cdc4a5" escape="true" id="_id4" rendered="true" transient="false"/>
          
           </UIColumn>
          
           <UIColumn id="_id5" rendered="true" transient="false"/>
          
           <UIColumn id="_id6" rendered="true" transient="false"/>
          
           <UIColumn id="_id7" rendered="true" transient="false">
          
           <HtmlOutputLink id="_id8" rendered="true" transient="false">
          
           <UIParameter id="_id9" name="conversationId" rendered="true" transient="false"/>
          
           </HtmlOutputLink>
          
           </UIColumn>
          
           </HtmlDataTable>
          
           <HtmlOutputText escape="true" id="_id10" rendered="false" transient="false" value="()"/>
          
           <HtmlOutputText escape="true" id="_id11" rendered="true" transient="false" value="(None selected)"/>
          
           <HtmlOutputText escape="true" id="_id12" rendered="true" transient="false" value="Select a component from one of the contexts below"/>
          
           <HtmlDataTable border="-2147483648" first="0" id="_id13" rendered="false" rowIndex="-1" rows="0" transient="false" var="attribute">
          
           <UIColumn id="_id14" rendered="true" transient="false"/>
          
           <UIColumn id="_id15" rendered="true" transient="false"/>
          
           </HtmlDataTable>
          
           <HtmlOutputText escape="true" id="_id16" rendered="false" transient="false" value="(1)"/>
          
           <HtmlOutputText escape="true" id="_id17" rendered="true" transient="false" value="(None selected)"/>
          
           <HtmlOutputText escape="true" id="_id18" rendered="false" transient="false" value="Empty conversation context"/>
          
           <HtmlDataTable border="-2147483648" first="0" id="_id19" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@ea86e3" var="name">
          
           <UIColumn id="_id20" rendered="true" transient="false">
          
           <HtmlOutputLink id="_id21" rendered="true" transient="false">
          
           <UIParameter id="_id22" name="name" rendered="true" transient="false"/>
          
           <UIParameter id="_id23" name="conversationId" rendered="true" transient="false" value="1"/>
          
           </HtmlOutputLink>
          
           </UIColumn>
          
           </HtmlDataTable>
          
           <HtmlOutputText escape="true" id="_id24" rendered="true" transient="false" value="Empty business process context"/>
          
           <HtmlDataTable border="-2147483648" first="0" id="_id25" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@1b4e557" var="name">
          
           <UIColumn id="_id26" rendered="true" transient="false">
          
           <HtmlOutputLink id="_id27" rendered="true" transient="false">
          
           <UIParameter id="_id28" name="name" rendered="true" transient="false"/>
          
           <UIParameter id="_id29" name="conversationId" rendered="true" transient="false" value="1"/>
          
           </HtmlOutputLink>
          
           </UIColumn>
          
           </HtmlDataTable>
          
           <HtmlOutputText escape="true" id="_id30" rendered="true" transient="false" value="Empty session context"/>
          
           <HtmlDataTable border="-2147483648" first="0" id="_id31" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@13cd05a" var="name">
          
           <UIColumn id="_id32" rendered="true" transient="false">
          
           <HtmlOutputLink id="_id33" rendered="true" transient="false">
          
           <UIParameter id="_id34" name="name" rendered="true" transient="false"/>
          
           <UIParameter id="_id35" name="conversationId" rendered="true" transient="false" value="1"/>
          
           </HtmlOutputLink>
          
           </UIColumn>
          
           </HtmlDataTable>
          
           <HtmlDataTable border="-2147483648" first="0" id="_id36" rendered="true" rowIndex="-1" rows="0" transient="false" value="[Ljava.lang.String;@192ce93" var="name">
          
           <UIColumn id="_id37" rendered="true" transient="false">
          
           <HtmlOutputLink id="_id38" rendered="true" transient="false">
          
           <UIParameter id="_id39" name="name" rendered="true" transient="false"/>
          
           <UIParameter id="_id40" name="conversationId" rendered="true" transient="false" value="1"/>
          
           </HtmlOutputLink>
          
           </UIColumn>
          
           </HtmlDataTable>
          
          </UIViewRoot>


          • 2. Re: Seam Debug Page
            Gavin King Master

            This is a known issue with MyFaces and facelets. Not sure of the current status, but I guess you can probably fix it by upgrading both.