Tomcat ArrayIndexOutOfBoundsException in SocketBufferHandler

2018-01-18 Thread 鄢锦涛
Hello all, My environment : tomcat version is 8.5.23 (default configuration), JDK is 1.8.0_121 and Linux version is centos 3.10.0-327.el7.x86_64 With this environment, working under stress with http POST calls, After about 80 to 100 into the test we started seeing broken responses I do not

Re: ArrayIndexOutOfBoundsException in ServletInputStream.readLine

2017-02-16 Thread 水野謙
Hi Violeta, Thank you for your reponse. I found the following setting in my server.xml. Does this answer your question? 2017-02-16 17:07 GMT+09:00 Violeta Georgieva : > Hi, > > 2017-02-16 5:10 GMT+02:00 水野謙 : >> >> Dear Sirs, >> >> I'm using Apache Tomcat/6.0.48 on Linux and I sometimes s

Re: ArrayIndexOutOfBoundsException in ServletInputStream.readLine

2017-02-16 Thread Violeta Georgieva
Hi, 2017-02-16 5:10 GMT+02:00 水野謙 : > > Dear Sirs, > > I'm using Apache Tomcat/6.0.48 on Linux and I sometimes see the > following exception. > > java.lang.ArrayIndexOutOfBoundsException: 8192 > at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) > at org.apache.catalina.connecto

ArrayIndexOutOfBoundsException in ServletInputStream.readLine

2017-02-15 Thread 水野謙
Dear Sirs, I'm using Apache Tomcat/6.0.48 on Linux and I sometimes see the following exception. java.lang.ArrayIndexOutOfBoundsException: 8192 at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:318) at org.

Re: ArrayIndexOutOfBoundsException

2010-01-07 Thread geoffrey
Hi everyone. Sorry it took some time but here it is. It actually looks like changing the variables to method variables fixed the problem. It has been running for 3 days now without any problems. Thanks everyone. Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS O

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Pid
On 25/11/2009 14:05, geoff...@fileflow.com wrote: On 25 Nov 2009, at 14:34, Felix Schumacher wrote: Am Dienstag, den 24.11.2009, 17:57 +0100 schrieb geoff...@fileflow.com: Hi everyone. I'm stuck with a problem I don't understand. We have a tomcat server and after redeploying our war file,

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
Java is the same and no APR. On 25 Nov 2009, at 15:10, Pid wrote: > On 25/11/2009 14:04, geoff...@fileflow.com wrote: >> >> Hardware is different. The one working is a much older machine we use as >> development server (less memory, older CPU, less disk, etc). OS is the same >> and apache is

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Pid
On 25/11/2009 14:04, geoff...@fileflow.com wrote: Hardware is different. The one working is a much older machine we use as development server (less memory, older CPU, less disk, etc). OS is the same and apache is 6.0.18 on dev and 6.0.20 on the problem server (but it doesn't work with 6.0.18

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
On 25 Nov 2009, at 14:34, Felix Schumacher wrote: > Am Dienstag, den 24.11.2009, 17:57 +0100 schrieb geoff...@fileflow.com: >> Hi everyone. >> >> >> I'm stuck with a problem I don't understand. We have a tomcat server >> and after redeploying our war file, we get this error: >> > ... > Are "i

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
On 25 Nov 2009, at 14:08, Pid wrote: > On 25/11/2009 13:03, geoff...@fileflow.com wrote: >> >> On 25 Nov 2009, at 13:26, Pid wrote: >> >>> On 25/11/2009 12:13, geoff...@fileflow.com wrote: On 25 Nov 2009, at 12:53, Pid wrote: > On 25/11/2009 11:30, geoff...@fileflow.com wr

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Felix Schumacher
Am Dienstag, den 24.11.2009, 17:57 +0100 schrieb geoff...@fileflow.com: > Hi everyone. > > > I'm stuck with a problem I don't understand. We have a tomcat server > and after redeploying our war file, we get this error: > ... Are "in" and "out" instance variables? They should be method variables,

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Pid
On 25/11/2009 13:03, geoff...@fileflow.com wrote: On 25 Nov 2009, at 13:26, Pid wrote: On 25/11/2009 12:13, geoff...@fileflow.com wrote: On 25 Nov 2009, at 12:53, Pid wrote: On 25/11/2009 11:30, geoff...@fileflow.com wrote: On 25 Nov 2009, at 11:10, Pid wrote: On 25/11/2009 08:17, geoff

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
On 25 Nov 2009, at 13:26, Pid wrote: > On 25/11/2009 12:13, geoff...@fileflow.com wrote: >> >> On 25 Nov 2009, at 12:53, Pid wrote: >> >>> On 25/11/2009 11:30, geoff...@fileflow.com wrote: On 25 Nov 2009, at 11:10, Pid wrote: > On 25/11/2009 08:17, geoff...@fileflow.com >

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Pid
On 25/11/2009 12:13, geoff...@fileflow.com wrote: On 25 Nov 2009, at 12:53, Pid wrote: On 25/11/2009 11:30, geoff...@fileflow.com wrote: On 25 Nov 2009, at 11:10, Pid wrote: On 25/11/2009 08:17, geoff...@fileflow.com wrote: I changed the size to 4K, 50K and

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
On 25 Nov 2009, at 12:53, Pid wrote: > On 25/11/2009 11:30, geoff...@fileflow.com wrote: >> On 25 Nov 2009, at 11:10, Pid wrote: >> >>> On 25/11/2009 08:17, geoff...@fileflow.com >>> wrote: I changed the size to 4K, 50K and 1 byte without any luck. >>> >>> Wh

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Pid
On 25/11/2009 11:30, geoff...@fileflow.com wrote: On 25 Nov 2009, at 11:10, Pid wrote: On 25/11/2009 08:17, geoff...@fileflow.com wrote: I changed the size to 4K, 50K and 1 byte without any luck. What about adding a byte counter to catch when the exception occu

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
On 25 Nov 2009, at 11:10, Pid wrote: > On 25/11/2009 08:17, geoff...@fileflow.com wrote: >> I changed the size to 4K, 50K and 1 byte without any luck. > > What about adding a byte counter to catch when the exception occurs? It happens totally at random. Sometimes after 200KB sometimes after 250M

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Pid
On 25/11/2009 08:17, geoff...@fileflow.com wrote: I changed the size to 4K, 50K and 1 byte without any luck. What about adding a byte counter to catch when the exception occurs? p Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo,

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Ronald Klop
You can compile Tomcat yourself and insert some debug statements at the location of the exception. Ronald. Op dinsdag, 24 november 2009 18:17 schreef geoff...@fileflow.com: The bytesRead returns the size of the buffer (8KB) every time. I also debug and I can't find anything wrong. Input

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
On 25 Nov 2009, at 04:14, Konstantin Kolinko wrote: > 2009/11/24 : >> HTTP connector. I'll attach the conf folder from tomcat. >> >> >> >> >> >> Best Regards >> >> Geoffrey >> >> Phone Norway: +47 45 86 53 83 >> Fileflow Technologies AS >> Ole Deviks vei 35, 0668 Oslo, Norway >> >>

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread geoffrey
I changed the size to 4K, 50K and 1 byte without any luck. Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo, Norway - On 25 Nov 2009, at 00:28, Pid wrote: > On 24/11/2009 20:03, Konstantin Kolink

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Konstantin Kolinko
2009/11/24 : > HTTP connector. I'll attach the conf folder from tomcat. > > > > > > Best Regards > > Geoffrey > > Phone Norway:  +47 45 86 53 83 > Fileflow Technologies AS > Ole Deviks vei 35, 0668 Oslo, Norway > > - > > > > On 24 Nov 2009, at 21:03, Konstantin

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Pid
On 24/11/2009 20:03, Konstantin Kolinko wrote: 2009/11/24: There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often. So it is random... I wonder what can trigger it. What connectors are you usi

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Pid
On 24/11/2009 19:26, geoff...@fileflow.com wrote: I can't find anything in the list archive. You're sure it's not another list? No, it's this one. Konstantin found it. p Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo, Norway --

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Konstantin Kolinko
2009/11/24 : > There is a different amount of data sent each time before it crashes. I also > tried byte by byte and gets the same error but it seems that it is less often. > So it is random... I wonder what can trigger it. What connectors are you using? Is it HTTP, or AJP? What is your configu

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread geoffrey
I can't find anything in the list archive. You're sure it's not another list? Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo, Norway - On 24 Nov 2009, at 19:18, Pid wrote: > On 24/11/2009 17:37

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Pid
On 24/11/2009 17:37, geoff...@fileflow.com wrote: There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often. Something is ringing a bell. Search the list archives & see if you can find anything s

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread geoffrey
Same problem. I'm getting lost. Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo, Norway - On 24 Nov 2009, at 18:38, g f wrote: > Perhaps change your code from > while((bytesRead = in.read(buf))

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread g f
Perhaps change your code from while((bytesRead = in.read(buf)) > 0) { while((bytesRead = in.read(buf)) != -1) { >From api: Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread geoffrey
There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often. Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo, Norway -

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Pid
On 24/11/2009 17:27, geoff...@fileflow.com wrote: The files are up to 30GB so it is not a solution. When I try without the buffer it doesn't seem to work at all. What I mean is that the servlet sends some data before the error occurs when sending with the buffer but I get 0KB without. At what

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread geoffrey
The files are up to 30GB so it is not a solution. When I try without the buffer it doesn't seem to work at all. What I mean is that the servlet sends some data before the error occurs when sending with the buffer but I get 0KB without. Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fil

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Pid
On 24/11/2009 17:17, geoff...@fileflow.com wrote: The bytesRead returns the size of the buffer (8KB) every time. I also debug and I can't find anything wrong. Input and OutputStream are not null, bytesRead is the correct size and the buffer is also filled. Any other ideas? How big is the fil

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread geoffrey
The bytesRead returns the size of the buffer (8KB) every time. I also debug and I can't find anything wrong. Input and OutputStream are not null, bytesRead is the correct size and the buffer is also filled. Any other ideas? Best Regards Geoffrey On 24 Nov 2009, at 18:13, Ronald Klop wrote:

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Ronald Klop
Try insert some debug statements just before the out.write. System.out.println("bytesRead: " + bytesRead) would be interesting. In fact this is kind of my-first-debugging and you don't even mention you did try it. Ronald. Op dinsdag, 24 november 2009 17:57 schreef geoff...@fileflow.com:

ArrayIndexOutOfBoundsException

2009-11-24 Thread geoffrey
Hi everyone. I'm stuck with a problem I don't understand. We have a tomcat server and after redeploying our war file, we get this error: java.lang.ArrayIndexOutOfBoundsException at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:346) at org.apache.coyote.http11.Intern

RE: TC6 gives ArrayIndexOutOfBoundsException when writing large headers

2009-02-11 Thread Pieter Temmerman
Damn Chuck, good catch. On Wed, 2009-02-11 at 09:52 -0600, Caldarale, Charles R wrote: > > From: Gustaf Cele [mailto:gustaf.c...@webstep.se] > > Subject: TC6 gives ArrayIndexOutOfBoundsException when > > writing large headers > > > > ALLVARLIG: An exception or e

RE: TC6 gives ArrayIndexOutOfBoundsException when writing large headers

2009-02-11 Thread Caldarale, Charles R
> From: Gustaf Cele [mailto:gustaf.c...@webstep.se] > Subject: TC6 gives ArrayIndexOutOfBoundsException when > writing large headers > > ALLVARLIG: An exception or error occurred in the container > during the request processing > java.lang.ArrayIndexOutOfBoundsException: 8192

TC6 gives ArrayIndexOutOfBoundsException when writing large headers

2009-02-11 Thread Gustaf Cele
I've run into an error which may be either a bug or the result of a misconfiguration. When I try to set a large cookie, I get the following error: 2009-feb-11 15:56:00 org.apache.catalina.connector.CoyoteAdapter service ALLVARLIG: An exception or error occurred in the container during the requ

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

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

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

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 te

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 (be

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 simpl

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 lat

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

ArrayIndexOutOfBoundsException at InternalOutputBuffer.write

2008-06-09 Thread Jörg Fröber
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.

Re: ArrayIndexOutOfBoundsException in "ClusterListenThread-2"

2008-03-18 Thread Filip Hanik - Dev Lists
nope, it's not normal. means you got clobbered data. are you running multiple versions of tomcat? Filip Ronald Klop wrote: I have this in my logs. Running tomcat 5.5.26. Exception in thread "ClusterListenThread-2" java.lang.ArrayIndexOutOfBoundsException: 1024 at org.apache.catalina.cluster

ArrayIndexOutOfBoundsException in "ClusterListenThread-2"

2008-03-18 Thread Ronald Klop
I have this in my logs. Running tomcat 5.5.26. Exception in thread "ClusterListenThread-2" java.lang.ArrayIndexOutOfBoundsException: 1024 at org.apache.catalina.cluster.io.XByteBuffer.toInt(XByteBuffer.java:222) at org.apache.catalina.cluster.io.XByteBuffer.countPackages(XByteBuffer.java:163) a

Re: Attempting JAAS Authentication throws ArrayIndexOutOfBoundsException in NTSystem

2006-09-28 Thread Henry McClain
wrote: Gentlemen, I am attempting to authenticate users via JAAS NTLoginModule and repeatedly recieve an ArrayIndexOutOfBoundsException wrapped in a LoginException. The error is (packages removed for confidentiality purposes): javax.security.auth.login.LoginExc

Attempting JAAS Authentication throws ArrayIndexOutOfBoundsException in NTSystem

2006-09-21 Thread Henry McClain
Gentlemen, I am attempting to authenticate users via JAAS NTLoginModule and repeatedly recieve an ArrayIndexOutOfBoundsException wrapped in a LoginException. The error is (packages removed for confidentiality purposes): javax.security.auth.login.LoginException

ArrayIndexOutOfBoundsException when attempting to call Filter init

2005-12-02 Thread Leigh Estes
When initializing a simple filter we have that implements Filter, an ArrayIndexOutOfBoundsException occurs. We have not been able to figure out how this could be caused by something we're doing wrong. The stack trace follows. The line in the SphinxCookieFilter class that it is complaining (li