-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 12/6/13, 1:07 PM, Mark Thomas wrote:
> On 06/12/2013 17:33, C. Benson Manica wrote:
>> I'm sure it *is* some kind of buffer boundary - 16384 is not a 
>> random number ;-) As it happens, I *did* miss some logging (my
>> IDE made it easy to miss). I have no idea what this exception
>> means though:
>> 
>> SEVERE: Servlet.service() for servlet [jsp] in context with path
>> [] threw exception [java.lang.ArrayIndexOutOfBoundsException: 0]
>> with root cause java.lang.ArrayIndexOutOfBoundsException: 0 at 
>> org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:785)
>>  at 
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>>
>>
>
>> 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>> 
>> (rest of stack trace omitted)
>> 
>> Presumably this is my actual problem, whatever it is?
> 
> It means that there is a bug in your JSP. Whether that bug is in
> code generated by Tomcat (i.e. a Tomcat bug) or an application bug
> is TBD. You'll need to look at line 785 of the generated java file
> for that JSP (it is in the work directory) and see.

... and the unspoken consequence of the above is that the JSP will
abruptly stop producing output and, since the headers have already
been sent to the client, the client sees no error at all. That would
explain the behavior you are observing. Tomcat's chunking evidently
does not have a problem: your JSP does instead.

I wonder if your Jetty setup avoids the AOOBE due to environmental
differences (e.g. you have data in your Jetty setup, but not in your
Tomcat one) or perhaps your JSP triggers a bug in Tomcat which
generates unsafe code in some situation.

I'm eager to hear back from C. Benson about what's on that line of
code... it would be nice to know if Tomcat has an obscure bug that
needs to be fixed, or if the JSP was simply carelessly-written.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSoktBAAoJEBzwKT+lPKRYMe0P/1lONDHDA8H18PRbMOj6wczm
95MX8ok7i4zEdds0DS5R9ITyNPL+8QqU7rE91dNithFglKTzAWkoCZrwtj2rbS6y
heGxN4rkshdUnBOHBo4fAk+DwfEYCZGch22TKYE4Vt4scvxUI/7VibEyOt9M49AM
GzOLzptTDxqmHDZzHczm3/NoaBfxOacoHYE12DvsA+xQSQdtadSDB8sSMLVIPnWM
wT/cNlmZ8N+xiIMzT2JrDurPtIbAelBigTsyipHLDLVq+e0Has1GR0ZQsRLcpJrs
L7oiu3pRreYEJPRtJFeGhg/RDP57BaLMbJ67O0y00xBrToR9o1UB+gUMmQGjCqoL
po2TFQHfrQZpmZ33VIebcvt8zXgx2PWShDIRR4gKzWs+XyDJlWNNnXLEzyyAJmWd
6vfAsmec/0cUXtCoo74CYkmMyNdBSRvvsSPwa0uoWlebKol12x4d90kX5eYHiSng
k5PRgbxF3t5NZkah3HVExM68E/eIHhy2Usz3H/WnWEQM/l788DCIe8QdD/ijOPME
YZ6UXm2iAIQkbM0aAS9v9yRnem1vF4GiYQlGnYBBfUsClg7hhSvu97NXegbayLJq
gMWBlnMX+uXiT2KdLsYjpa5uiLWgz0HJeMjmLrN+XVz4GTGDaSyxm3rajq/Q2oio
1qdpRPFOQ/IGYSDAkcMt
=pxi1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to