Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Reynir Hübner
Hi, 

When using version tc. 4.1.14 this exception sometimes occures : 


java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615)
at 
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407)
at 
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471)
at org.apache.coyote.Response.action(Response.java:214)
at 
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:428)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


What should I bee looking at ?
-reynir





Re: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread David Brown
Reynir Hübner writes: 

Hi,  

When using version tc. 4.1.14 this exception sometimes occures :  


java.lang.ArrayIndexOutOfBoundsException
at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615)
at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471)
at org.apache.coyote.Response.action(Response.java:214)
at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:428)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536) 


What should I bee looking at ?
-reynir 





Hello Reynir, difficult to get people to answer questions like these. it 
would be prudent to add: app type running (jsp, servlet, applet, cgi, html 
etc.) what were u trying to do w/ the application? what defines: platform, 
os, environment, config (apache, tomcat, other servlet container, j2ee 
container), network (firewall, proxies, public, private, etc.)? anything 
that may tip off an experienced developer as to what ur probem is and how to 
solve it. david. 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



REPOST: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Reynir Hübner
Hello,
Sorry I probably did not provide enough information in the first request, so this is 
my second attempt:  

Well it looks as if it's an exception being thrown from coyote http connector, that I 
am using, in a tomcat-standalone setup (no apache/IIS isntl)
As this is a server running more than 20 different applications in more than 20 
different virtual hosts (yet not much load), I am unable to point out what kind of 
action causes the error, if it's a servlet, jsp or even perl cgi apps, or something 
else (there for I asked where I should look). 

When this exception happenes, the server uses a lot of it's processing power (60%-70%) 
for some time (1-2 minutes) and then caughes up this exception, on the System.out : 


2002-11-27 11:41:33 CoyoteAdapter An exception or error occurred in the container 
during the request processing
java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615)
at 
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407)
at 
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471)
at org.apache.coyote.Response.action(Response.java:214)
at 
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:509)
at org.apache.coyote.Response.action(Response.java:216)
at org.apache.coyote.Response.finish(Response.java:336)
at 
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:504)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


I'm running WindowsXP pro, tomcat 4.1.14 in a DMZ. 

So, do you know which arrays index is going out of bounds... Should I move to 
tc.4.1.12 (as it's stable release but 4.1.14 is not). 

Thanx
[EMAIL PROTECTED]



  
  
 
 
 Hello Reynir, difficult to get people to answer questions 
 like these. it 
 would be prudent to add: app type running (jsp, servlet, 
 applet, cgi, html 
 etc.) what were u trying to do w/ the application? what 
 defines: platform, 
 os, environment, config (apache, tomcat, other servlet 
 container, j2ee 
 container), network (firewall, proxies, public, private, 
 etc.)? anything 
 that may tip off an experienced developer as to what ur 
 probem is and how to 
 solve it. david. 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Remy Maucherat
Reynir Hübner wrote:

Hi, 

When using version tc. 4.1.14 this exception sometimes occures : 


java.lang.ArrayIndexOutOfBoundsException
at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:615)
at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:407)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:901)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471)
at org.apache.coyote.Response.action(Response.java:214)
at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:371)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:428)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


What should I bee looking at ?

The exception can be ignored (it might happen only in the case of a 
client disconnect, so at this point, what happens doesn't really matter 
anymore; this also only causes a very small performance drop). The 
problem has been fixed in 4.1.16.

Remy


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Reynir Hübner

Thanx remy!
-reynir

 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]] 
 Sent: 27. nóvember 2002 13:11
 To: Tomcat Users List
 Subject: Re: Coyote:: ArrayIndexOutOfBoundsException
 
 
 Reynir Hübner wrote:
  Hi,
  
  When using version tc. 4.1.14 this exception sometimes occures :
  
  
  java.lang.ArrayIndexOutOfBoundsException
  at 
 org.apache.coyote.http11.InternalOutputBuffer.write(InternalOu
 tputBuffer.java:615)
  at 
 org.apache.coyote.http11.InternalOutputBuffer.sendStatus(Inter
 nalOutputBuffer.java:407)
  at 
 org.apache.coyote.http11.Http11Processor.prepareResponse(Http1
 1Processor.java:901)
  at 
 org.apache.coyote.http11.Http11Processor.action(Http11Processo
 r.java:471)
  at org.apache.coyote.Response.action(Response.java:214)
  at 
 org.apache.coyote.http11.InternalOutputBuffer.endRequest(Inter
 nalOutputBuffer.java:371)
  at 
 org.apache.coyote.http11.Http11Processor.process(Http11Process
 or.java:428)
  at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
 r.processConnection(Http11Protocol.java:380)
  at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:508)
  at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.java:533)
  at java.lang.Thread.run(Thread.java:536)
  
  
  What should I bee looking at ?
 
 The exception can be ignored (it might happen only in the case of a 
 client disconnect, so at this point, what happens doesn't 
 really matter 
 anymore; this also only causes a very small performance drop). The 
 problem has been fixed in 4.1.16.
 
 Remy
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Shapira, Yoav
Hi,

 java.lang.ArrayIndexOutOfBoundsException
 at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffe
r.ja
snip

The exception can be ignored (it might happen only in the case of a
client disconnect, so at this point, what happens doesn't really matter
anymore; this also only causes a very small performance drop). The
problem has been fixed in 4.1.16.

Thanks Remy ;)  May I ask as to the manner of the fix?  Was it a simple
buffer size increase, or something more?  If you remember, I reported
this exception a while ago against 4.1.10-LE, and the buffer size
increase from 32K to 48K has made the problem go away for us.  But I was
worried that was just a band-aid ;)

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Neil Milne
You can see the fix in CVS - it was just a case of moving a few lines of 
code within the commit() method. Thanks to Remy for that!

Neil.
--
Neil MilneHippo IT Consultants Ltd


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: REPOST: Coyote:: ArrayIndexOutOfBoundsException

2002-11-27 Thread Bill Barker
Actually, you should probably move to 4.1.16 :).  There was a bug that looks
a lot like this in earlier versions of the CoyoteConnector.  However, in
those cases, the bug should be much more harmless than what you're seeing.
If you can try at least the 4.1.16 connector code and report what you find,
it whould help a lot.

Reynir Hübner [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Sorry I probably did not provide enough information in the first request, so
this is my second attempt:

Well it looks as if it's an exception being thrown from coyote http
connector, that I am using, in a tomcat-standalone setup (no apache/IIS
isntl)
As this is a server running more than 20 different applications in more than
20 different virtual hosts (yet not much load), I am unable to point out
what kind of action causes the error, if it's a servlet, jsp or even perl
cgi apps, or something else (there for I asked where I should look).

When this exception happenes, the server uses a lot of it's processing power
(60%-70%) for some time (1-2 minutes) and then caughes up this exception, on
the System.out :


2002-11-27 11:41:33 CoyoteAdapter An exception or error occurred in the
container during the request processing
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.jav
a:615)
at
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffe
r.java:407)
at
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav
a:901)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:471)
at org.apache.coyote.Response.action(Response.java:214)
at
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffe
r.java:371)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:509)
at org.apache.coyote.Response.action(Response.java:216)
at org.apache.coyote.Response.finish(Response.java:336)
at
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:
504)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


I'm running WindowsXP pro, tomcat 4.1.14 in a DMZ.

So, do you know which arrays index is going out of bounds... Should I move
to tc.4.1.12 (as it's stable release but 4.1.14 is not).

Thanx
[EMAIL PROTECTED]



 



 Hello Reynir, difficult to get people to answer questions
 like these. it
 would be prudent to add: app type running (jsp, servlet,
 applet, cgi, html
 etc.) what were u trying to do w/ the application? what
 defines: platform,
 os, environment, config (apache, tomcat, other servlet
 container, j2ee
 container), network (firewall, proxies, public, private,
 etc.)? anything
 that may tip off an experienced developer as to what ur
 probem is and how to
 solve it. david.

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]