0 Replies Latest reply on May 14, 2007 12:04 PM by Melanie Ntolo

    ArrayIndexOutOfBoundsException: 8192 by expanding Tree Node

    Melanie Ntolo Newbie

      Hi,
      I redefined a good working rich: tree by adding drop down menus in every node.
      Now I can't expand my TreeNode without getting an java.lang.ArrayIndexOutOfBoundsException: 8192.

      If I take the drop down menu away , I dont get this failure anymore.


      Hier is the trace:

      java.lang.ArrayIndexOutOfBoundsException: 8192
       at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:720)
       at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:627)
       at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:500)
       at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1615)
       at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:962)
       at org.apache.coyote.Response.action(Response.java:180)
       at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:572)
       at org.apache.coyote.Response.doWrite(Response.java:559)
       at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
       at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:324)
       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:142)
       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:613)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:271)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       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:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       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)
      15:23:28,531 ERROR [STDERR] java.lang.ArrayIndexOutOfBoundsException
      15:23:28,531 ERROR [STDERR] at java.lang.System.arraycopy(Native Method)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:689)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:428)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1604)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:962)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.Response.action(Response.java:180)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:572)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.Response.doWrite(Response.java:559)
      15:23:28,531 ERROR [STDERR] at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
      15:23:28,531 ERROR [STDERR] at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
      15:23:28,531 ERROR [STDERR] at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
      15:23:28,531 ERROR [STDERR] at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
      15:23:28,531 ERROR [STDERR] at org.apache.catalina.connector.Response.finishResponse(Response.java:476)
      15:23:28,531 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      15:23:28,531 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      15:23:28,531 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      15:23:28,531 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      15:23:28,531 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      15:23:28,531 ERROR [Http11Processor] Error finishing response
      java.lang.ArrayIndexOutOfBoundsException
       at java.lang.System.arraycopy(Native Method)
       at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:689)
       at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:428)
       at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1604)
       at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:962)
       at org.apache.coyote.Response.action(Response.java:180)
       at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:388)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:906)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       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)


      Thanks for having a look