Hi, I am running tomcat-6.0.16 on centos5. I deployed the following simple servlet. When I tried to post more than 8192 chars to the server, I got
ava.lang.ArrayIndexOutOfBoundsException: 8192 org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:388) org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:368) org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:93) test.ReadChar.doPost(ReadChar.java:39) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) </pre></p><p>note <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs. trying the same servlet on tomcat-6.0.14, I got the correct result. Is this a bug in 6.0.16? thanks, Peter simple servlet code: -------------------------------------------------------------------------------- package test; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ReadChar extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { BufferedReader requestReader = request.getReader(); response.setContentType("text/html"); int count = 0; while (requestReader.read()>=0) { ++count; } PrintWriter writer = response.getWriter(); writer.println("chars read=" + count); } } -- View this message in context: http://www.nabble.com/tomcat-6.0.16-regression--tp15907206p15907206.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]