tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Fröber <joerg.froe...@indv.de>
Subject ArrayIndexOutOfBoundsException at InternalOutputBuffer.write
Date Mon, 09 Jun 2008 08:14:32 GMT
Hello,

using Tomcat 6.0.12 on one jsp page sometimes the following error occurs:

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.flushBuffer(ByteChunk.java:433)
	at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:348)
	at  
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:235)
	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
	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.append(CharChunk.java:259)
	at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)
	at org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:142)
	at  
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
	at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
	at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:341)
	at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:467)
	at org.apache.jsp.M30102_jsp._jspService(M30102_jsp.java:958)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
	at  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at de.indv.logging.DefaultLogFilter.doFilter(DefaultLogFilter.java:98)
	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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:619)

I have found a similar error in bugzilla, but there was the problem with  
sendHeader.
There is also a customized Status-Code 500 errorpage, where this error  
occurs:

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.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.flushBuffer(ByteChunk.java:433)
	at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:348)
	at  
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:235)
	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
	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.append(CharChunk.java:259)
	at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)
	at org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:142)
	at  
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
	at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
	at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:341)
	at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:467)
	at org.apache.jsp._500_jsp._jspService(_500_jsp.java:891)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
	at  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at  
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
	at  
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
	at  
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at  
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
	at  
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
	at  
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
	at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
	at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:619)

Is there a setting to prevent this error?


-- 
regards
JF

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message