tomcat - java.lang.ArrayIndexOutOfBoundsException: 4096

S

Simon Bieri

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)
 
L

Liz

Simon Bieri said:
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)
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav
a:659)
org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffe
r.java:539)
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)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:257)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:245)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:199)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184
)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:156)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
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)
 
S

Simon Bieri

Which array? The html source code? And is that a default setting of
tomcat which I can change?
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)

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

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

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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top