tomcat - java.lang.ArrayIndexOutOfBoundsException: 4096

Discussion in 'Java' started by Simon Bieri, Jun 8, 2004.

  1. Simon Bieri

    Simon Bieri Guest

    Hi

    Tomcat 5.0.19
    Winxp

    Our web application (servlet) has some big forms. On one of those pages,
    if we try filling the form and sending it, tomcat causes an
    java.lang.ArrayIndexOutOfBoundsException: 4096.

    Does anybody knows the reason?

    The hole error message
    2004-06-08 11:55:33 StandardContext[/max]TRACE: [an xml-string with
    approx. 3800 bytes]
    servlet max threw exception
    java.lang.ArrayIndexOutOfBoundsException: 4096
    at
    org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:731)
    at
    org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:659)
    at
    org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:539)
    at
    org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1560)
    at
    org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:926)
    at org.apache.coyote.Response.action(Response.java:224)
    at
    org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:605)
    at org.apache.coyote.Response.doWrite(Response.java:586)
    at
    org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:411)
    at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:332)
    at
    org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:274)
    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:223)
    at
    org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:166)
    at
    org.apache.coyote.tomcat5.OutputBuffer.realWriteChars(OutputBuffer.java:613)
    at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:471)
    at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:402)
    at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:559)
    at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:184)
    at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:193)
    at org.apache.coyote.tomcat5.CoyoteWriter.print(CoyoteWriter.java:243)
    at com.sisclear.core.control.CoreServlet.doPost(CoreServlet.java:451)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    at
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
    at
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
    at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
    at java.lang.Thread.run(Thread.java:534)
     
    Simon Bieri, Jun 8, 2004
    #1
    1. Advertising

  2. Simon Bieri

    Liz Guest

    "Simon Bieri" <> wrote in message
    news:...
    > Hi
    >
    > Tomcat 5.0.19
    > Winxp
    >
    > Our web application (servlet) has some big forms. On one of those pages,
    > if we try filling the form and sending it, tomcat causes an
    > java.lang.ArrayIndexOutOfBoundsException: 4096.
    >
    > Does anybody knows the reason?


    It appears that the array index goes from 0..4095 and you are
    trying to use index of 4096

    >
    > The hole error message
    > 2004-06-08 11:55:33 StandardContext[/max]TRACE: [an xml-string with
    > approx. 3800 bytes]
    > servlet max threw exception
    > java.lang.ArrayIndexOutOfBoundsException: 4096
    > at
    >

    org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav
    a:731)
    > at
    >

    org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav
    a:659)
    > at
    >

    org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffe
    r.java:539)
    > at
    >

    org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav
    a:1560)
    > at
    > org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:926)
    > at org.apache.coyote.Response.action(Response.java:224)
    > at
    >

    org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.j
    ava:605)
    > at org.apache.coyote.Response.doWrite(Response.java:586)
    > at
    >

    org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:411)
    > at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:332)
    > at
    >

    org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:
    274)
    > 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:223)
    > at
    > org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:166)
    > at
    >

    org.apache.coyote.tomcat5.OutputBuffer.realWriteChars(OutputBuffer.java:613)
    > at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:471)
    > at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:402)
    > at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:559)
    > at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:184)
    > at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:193)
    > at org.apache.coyote.tomcat5.CoyoteWriter.print(CoyoteWriter.java:243)
    > at com.sisclear.core.control.CoreServlet.doPost(CoreServlet.java:451)
    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    > at
    >

    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
    FilterChain.java:284)
    > at
    >

    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
    ain.java:204)
    > at
    >

    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
    va:257)
    > at
    >

    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    t.java:151)
    > at
    >

    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    > at
    >

    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
    Valve.java:245)
    > at
    >

    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
    va:199)
    > at
    >

    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    t.java:151)
    > at
    >

    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    > at
    >

    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184
    )
    > at
    >

    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    t.java:151)
    > at
    >

    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
    )
    > at
    >

    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    t.java:149)
    > at
    >

    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    > at
    >

    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
    :156)
    > at
    >

    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    t.java:151)
    > at
    >

    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
    > at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
    > at
    > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
    > at
    >

    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
    ction(Http11Protocol.java:732)
    > at
    > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    > at
    >

    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
    a:688)
    > at java.lang.Thread.run(Thread.java:534)
     
    Liz, Jun 8, 2004
    #2
    1. Advertising

  3. Simon Bieri

    Simon Bieri Guest

    Which array? The html source code? And is that a default setting of
    tomcat which I can change?

    Liz schrieb:

    > "Simon Bieri" <> wrote in message
    > news:...
    >
    >>Hi
    >>
    >>Tomcat 5.0.19
    >>Winxp
    >>
    >>Our web application (servlet) has some big forms. On one of those pages,
    >>if we try filling the form and sending it, tomcat causes an
    >>java.lang.ArrayIndexOutOfBoundsException: 4096.
    >>
    >>Does anybody knows the reason?

    >
    >
    > It appears that the array index goes from 0..4095 and you are
    > trying to use index of 4096
    >
    >
    >>The hole error message
    >>2004-06-08 11:55:33 StandardContext[/max]TRACE: [an xml-string with
    >>approx. 3800 bytes]
    >>servlet max threw exception
    >>java.lang.ArrayIndexOutOfBoundsException: 4096
    >>at
    >>

    >
    > org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav
    > a:731)
    >
    >>at
    >>

    >
    > org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav
    > a:659)
    >
    >>at
    >>

    >
    > org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffe
    > r.java:539)
    >
    >>at
    >>

    >
    > org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav
    > a:1560)
    >
    >>at
    >>org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:926)
    >>at org.apache.coyote.Response.action(Response.java:224)
    >>at
    >>

    >
    > org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.j
    > ava:605)
    >
    >>at org.apache.coyote.Response.doWrite(Response.java:586)
    >>at
    >>

    >
    > org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:411)
    >
    >>at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:332)
    >>at
    >>

    >
    > org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:
    > 274)
    >
    >>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:223)
    >>at
    >>org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:166)
    >>at
    >>

    >
    > org.apache.coyote.tomcat5.OutputBuffer.realWriteChars(OutputBuffer.java:613)
    >
    >>at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:471)
    >>at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:402)
    >>at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:559)
    >>at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:184)
    >>at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:193)
    >>at org.apache.coyote.tomcat5.CoyoteWriter.print(CoyoteWriter.java:243)
    >>at com.sisclear.core.control.CoreServlet.doPost(CoreServlet.java:451)
    >>at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    >>at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    >>at
    >>

    >
    > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
    > FilterChain.java:284)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
    > ain.java:204)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
    > va:257)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    > t.java:151)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
    > Valve.java:245)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
    > va:199)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    > t.java:151)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184
    > )
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    > t.java:151)
    >
    >>at
    >>

    >
    > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
    > )
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    > t.java:149)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
    > :156)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
    > t.java:151)
    >
    >>at
    >>

    >
    > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
    >
    >>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
    >>at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
    >>at
    >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
    >>at
    >>

    >
    > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
    > ction(Http11Protocol.java:732)
    >
    >>at
    >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    >>at
    >>

    >
    > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
    > a:688)
    >
    >>at java.lang.Thread.run(Thread.java:534)

    >
    >
    >
     
    Simon Bieri, Jun 15, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. siarsky
    Replies:
    0
    Views:
    590
    siarsky
    Dec 23, 2003
  2. Replies:
    3
    Views:
    2,524
    Tumbleweed
    Jul 1, 2004
  3. Harald Kirsch
    Replies:
    4
    Views:
    2,860
    Harald Kirsch
    Aug 31, 2004
  4. Replies:
    59
    Views:
    1,748
    Richard Heathfield
    Sep 21, 2006
  5. hon123456
    Replies:
    3
    Views:
    2,393
    John B. Matthews
    May 14, 2010
Loading...

Share This Page