Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-11 Thread Jörg Fröber
Am 10.06.2008, 16:52 Uhr, schrieb Rémy Maucherat  
[EMAIL PROTECTED]:


On Tue, Jun 10, 2008 at 4:17 PM, Jörg Fröber [EMAIL PROTECTED]  
wrote:
An explizit call of response.flushBuffer() seems to have solved the  
problem.




So it could indeed be worth it if you provide a test JSP.

Rémy



I'm sorry, I can't provide a simple test jsp. There are quite a lot  
includes and method-calls in this jsp.


--
Regards
JF

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-11 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jörg,

Jörg Fröber wrote:
| I'm sorry, I can't provide a simple test jsp. There are quite a lot
| includes and method-calls in this jsp.

It is very difficult to develop a fix without something that
demonstrates the problem.

Can you copy your JSP to foo.jsp or something and then start removing
things until it no longer fails? Perhaps it doesn't matter /what/ you
include... just as long as you include enough of it?

It would really be a help to the TC community if you could provide a
test case.

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhP1ucACgkQ9CaO5/Lv0PDCrgCgpwRpCbp0XDjvsoLrCau2H1uG
uGoAn0uHm0IDBUKRUWyNujlisq695o77
=IJL3
-END PGP SIGNATURE-

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Jörg Fröber

Am 09.06.2008, 19:15 Uhr, schrieb Mark Thomas [EMAIL PROTECTED]:



Jörg Fröber wrote:

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

 java.lang.ArrayIndexOutOfBoundsException: 8192


That looks like a Tomcat bug. Do you see the same problem with the  
latest 6.0.x source from subversion?


Mark



I've build tomcat from  
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk and there still  
occurs an error.

Here is the stacktrace:

java.lang.ArrayIndexOutOfBoundsException: 8192
	at  
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:711)
	at  
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:618)
	at  
org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:491)
	at  
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1600)
	at  
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:935)

at org.apache.coyote.Response.action(Response.java:181)
	at  
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:563)

at org.apache.coyote.Response.doWrite(Response.java:560)
	at  
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)

at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:325)
	at  
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:242)

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:191)
	at  
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:134)

at 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:439)
at 
org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:143)
	at  
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:119)

at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:326)
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)
at org.apache.jsp.M30102_jsp._jspService(M30102_jsp.java:889)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	at  
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at de.indv.logging.DefaultLogFilter.doFilter(DefaultLogFilter.java:98)
	at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at  
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:194)
	at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at  
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at  
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

--
Regards
JF

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Mark Thomas


Jörg Fröber wrote:
I've build tomcat from 
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk and there still 
occurs an error.

Here is the stacktrace:


Can you provide the source of the simplest JSP that causes the error? What 
we need is a test case we can use to investigate this. The simpler the test 
case the better.


Cheers,

Mark

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Rémy Maucherat
On Tue, Jun 10, 2008 at 2:54 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 Can you provide the source of the simplest JSP that causes the error? What
 we need is a test case we can use to investigate this. The simpler the test
 case the better.

I suppose he should increase the header size, or (better) use a
smaller HTTP header since it is pretty large.

Rémy

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Jörg Fröber
Am 10.06.2008, 15:13 Uhr, schrieb Rémy Maucherat  
[EMAIL PROTECTED]:



On Tue, Jun 10, 2008 at 2:54 PM, Mark Thomas [EMAIL PROTECTED] wrote:
Can you provide the source of the simplest JSP that causes the error?  
What
we need is a test case we can use to investigate this. The simpler the  
test

case the better.


I suppose he should increase the header size, or (better) use a
smaller HTTP header since it is pretty large.

Rémy



An explizit call of response.flushBuffer() seems to have solved the  
problem.


--
Regards
JF

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-10 Thread Rémy Maucherat
On Tue, Jun 10, 2008 at 4:17 PM, Jörg Fröber [EMAIL PROTECTED] wrote:
 An explizit call of response.flushBuffer() seems to have solved the problem.


So it could indeed be worth it if you provide a test JSP.

Rémy

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



Re: ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-09 Thread Mark Thomas


Jörg Fröber wrote:


Hello,

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

java.lang.ArrayIndexOutOfBoundsException: 8192


That looks like a Tomcat bug. Do you see the same problem with the latest 
6.0.x source from subversion?


Mark


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