1 Reply Latest reply on Mar 23, 2007 2:46 PM by Andrew

    ArrayIndexOutOfBoundsException

    Andrew Apprentice

      Just go an ArrayIndexOutOfBoundsException when using the rich faces tree with A4J that I haven't had before.

      Environment:
      JBoss 4.0.3 SP1
      Seam 1.1.6
      MyFaces 1.1.5
      Ajax4Jsf 1.1.0
      RichFaces 3.0.0
      Facelets 1.0.14

      Stack trace:

      java.lang.ArrayIndexOutOfBoundsException: 8192
       at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:721)
       at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:628)
       at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:501)
       at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1592)
       at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:949)
       at org.apache.coyote.Response.action(Response.java:180)
       at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
       at org.apache.coyote.Response.doWrite(Response.java:555)
       at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
       at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:299)
       at org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:235)
       at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
       at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
       at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
       at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
       at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
       at org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:184)
       at org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:127)
       at org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:536)
       at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:439)
       at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:294)
       at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)
       at org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:130)
       at org.ajax4jsf.io.FastBufferWriter.writeTo(FastBufferWriter.java:165)
       at org.ajax4jsf.org.w3c.tidy.Tidy.pprint(Tidy.java:689)
       at org.ajax4jsf.framework.ajax.xmlfilter.tidy.TidyParser.parseHtmlByTidy(TidyParser.java:191)
       at org.ajax4jsf.framework.ajax.xmlfilter.tidy.TidyParser.parseHtml(TidyParser.java:203)
       at org.ajax4jsf.framework.ajax.xmlfilter.FilterServletResponseWrapper.parseContent(FilterServletResponseWrapper.java:607)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:212)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:190)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      


      Could it be a problem with the Tidy code, or is it something else?