0 Replies Latest reply on Feb 3, 2009 12:17 PM by Sascha Janz

    java.lang.StringIndexOutOfBoundsException: srcBegin > srcEnd

    Sascha Janz Master

      i got an extended datatable in a rich:tabPanel

      after switching from the rich:tabPanel with the extended dataTable and back i got following error

      
      java.lang.StringIndexOutOfBoundsException: srcBegin > srcEnd
       at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:327)
       at java.lang.StringBuilder.getChars(StringBuilder.java:55)
       at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.flushAttributes(HtmlResponseWriter.java:981)
       at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.endElement(HtmlResponseWriter.java:489)
       at org.ajax4jsf.renderkit.AjaxRendererUtils.encodeAreas(AjaxRendererUtils.java:794)
       at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:126)
       at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:677)
       at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:548)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
       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:109)
       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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       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: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:390)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
       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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
       at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
       at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
       at java.lang.Thread.run(Thread.java:619)
      




      code for extendeddatatable is

       <rich:extendedDataTable value="#{Session.workflows}" var="wf" id="table"
       onRowMouseOver="this.style.backgroundColor='#FFFF99'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0"
       width="100%" border="0" >
       <rich:column sortBy="#{wf.col1l}" colspan="1" style="text-align:left;" label="col1" >
       <f:facet name="header" >
       <h:outputText value="col1l" />
       </f:facet>
       <center> <h:graphicImage value="#{wf.col1}" /></center>
       </rich:column>
      
       <rich:column sortBy="#{wf.fristforsort}" colspan="1" style="text-align:left;" label="Frist" >
       <f:facet name="header">
       <h:outputText value="Frist" />
       </f:facet>
       <h:outputText value="#{wf.frist}" styleClass="#{wf.textstyle}" />
       </rich:column>
       <rich:column sortBy="#{wf.typeimage}" colspan="1" label="Offen">
       <f:facet name="header">
       <h:outputText value="Offen" />
       </f:facet>
       <center><h:graphicImage value="#{wf.image}" /></center>
       </rich:column>
       <rich:column sortBy="#{wf.descr}" colspan="1" label="descr" >
       <f:facet name="header">
       <h:outputText value="descr" />
       </f:facet>
       <h:outputText value="#{wf.descr}" escape="false" styleClass="#{wf.textstyle}" />
       </rich:column>
       <rich:column sortBy="#{wf.name}" filterBy="#{wf.name}" filterEvent="onkeyup" colspan="1" label="name" >
       <f:facet name="header">
       <h:outputText value="name" />
       </f:facet>
       <h:outputText value="#{wf.name}" styleClass="#{wf.textstyle}" />
       </rich:column>
       <rich:column sortBy="#{wf.refid}" colspan="1" label="refID" >
       <f:facet name="header">
       <h:outputText value="refID" />
       </f:facet>
       <h:outputText value="#{wf.refid}" styleClass="#{wf.textstyle}" />
       </rich:column>
      
       <rich:column sortBy="#{wf.startforsort}" colspan="1" label="Start" >
       <h:outputText value="#{wf.start}" styleClass="#{wf.textstyle}" />
       <f:facet name="header">
       <h:outputText value="Start" />
       </f:facet>
      
       </rich:column>
       <rich:column sortBy="#{wf.status}" filterBy="#{wf.status}" filterEvent="onkeyup" colspan="1" label="Status" >
       <h:outputText value="#{wf.status}" styleClass="#{wf.textstyle}" />
       <f:facet name="header">
       <h:outputText value="Status" />
       </f:facet>
      
       </rich:column>
      
       <rich:column sortBy="#{wf.col2}" filterBy="#{wf.col2}" filterEvent="onkeyup" colspan="1" label="Bearbeiter" >
       <h:outputText value="#{wf.col2}" styleClass="#{wf.textstyle}" />
       <f:facet name="header">
       <h:outputText value="col2" />
       </f:facet>
      
       </rich:column>
       <rich:column sortBy="#{wf.col3}" colspan="1" filterBy="#{wf.col3}" filterEvent="onkeyup" label="Starter" >
       <h:outputText value="#{wf.col3}" styleClass="#{wf.textstyle}" />
       <f:facet name="header">
       <h:outputText value="col1" />
       </f:facet>
      
       </rich:column>
      
       <rich:column sortBy="#{wf.id}" colspan="1" label="ID" >
       <h:outputText value="#{wf.id}" styleClass="#{wf.textstyle}" />
       <f:facet name="header">
       <h:outputText value="ID" />
       </f:facet>
      
       </rich:column>
      
       <rich:componentControl event="onRowClick" for="menuwf"
       operation="show">
       <f:param value="#{wf.id}" name="wfid" />
      
       </rich:componentControl>
      
      
       <a4j:support event="onRowMouseDown" immediate="true" reRender="ga" ignoreDupResponses="true" action="#{Session.clear}" />
       </rich:extendedDataTable>
      



      any ideas? workarounds?