tomcat throwing exceptions

2005-03-17 Thread Barclay, Lachlan
Hi everyone,

I'm currently getting a tomcat exception showing up in my logs - I'm not
sure 
if this is a Tomcat problem or not, so any suggestions would be great.

(I am using Tomcat 4.1.10, can't use 5 because of 
what is running in production)

The exception is:

2005-03-18 17:15:19 StandardWrapperValve[UserPurchase]:
Servlet.service() for servlet zzz threw exception
java.lang.NullPointerException
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.isCommitted(CoyoteRespons
eFacade.java:244)
at
.servlet.HandleRequest.showMessage(HandleRequest.java:203)
...
(etc etc etc.)


Now the interested thing is that this is happening when I 
am trying to load-test my app. I have written a small java program
to create 10 threads, and for each to make a HttpRequest 
(all are the same), and to print out the corresponding HTML. 
(I also wrote it in C# just to make sure that it wasn't the problem)

If I fire off a few requests, with a gap (200ms) in between, everyone
works fine. 

But then if I quicken the delays to about 20ms, I start to
get these exceptions. It looks like Tomcat is thinking that
a request is part of a previous request, and then something
goes wrong.

Any suggestions would be really helpful, thanks very much guys.

LB




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



RE: tomcat throwing exceptions

2005-03-17 Thread Caldarale, Charles R
 From: Barclay, Lachlan [mailto:[EMAIL PROTECTED]
 Subject: tomcat throwing exceptions
 
 But then if I quicken the delays to about 20ms, I start to
 get these exceptions. It looks like Tomcat is thinking that
 a request is part of a previous request, and then something
 goes wrong.

Odds are it's your application, not Tomcat.  (Although this is a pretty old 
level, and there have been a fair number of bugs fixed since then.)  Look for 
some request- or response-related object being stored in the session or in the 
servlets being used.  Since you can have multiple threads using the session and 
each servlet simultaneously, you could be inadvertently sharing data.  Static 
fields are also prone to this problem unless carefully used.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: tomcat throwing exceptions

2005-03-17 Thread Antony Paul
Just out of curiousity what this line means ?
StandardWrapperValve[UserPurchase]:
Also this line looks strange
.servlet.HandleRequest.showMessage(HandleRequest.java:203)



On Fri, 18 Mar 2005 00:34:18 -0600, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
  From: Barclay, Lachlan [mailto:[EMAIL PROTECTED]
  Subject: tomcat throwing exceptions
 
  But then if I quicken the delays to about 20ms, I start to
  get these exceptions. It looks like Tomcat is thinking that
  a request is part of a previous request, and then something
  goes wrong.
 
 Odds are it's your application, not Tomcat.  (Although this is a pretty old 
 level, and there have been a fair number of bugs fixed since then.)  Look for 
 some request- or response-related object being stored in the session or in 
 the servlets being used.  Since you can have multiple threads using the 
 session and each servlet simultaneously, you could be inadvertently sharing 
 data.  Static fields are also prone to this problem unless carefully used.
 
  - Chuck
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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