tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: NullPointer on getParameter
Date Wed, 10 Sep 2003 18:13:45 GMT

The best thing is to come up with a way for us to reproduce it.  The
simplest, most direct way to get the exception.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Laurie Harper []
>Sent: Tuesday, September 09, 2003 6:17 PM
>Subject: NullPointer on getParameter
>Hi, I'm trying to figure out a problem we've encountered since
>to Tomcat 4.1. I've seen this both on 4.1.24 and 4.1.27. I haven't yet
>reduced it to a specific recipe for reproduction outside the context of
>my application but I do see this quite frequently so I thought I'd see
>if anyone else has come across it...
>The problem is that a call to getParameter is getting a
>NullPointerException in the delegation method on CoyoteRequestFacade:
>Caused by:
>         at org.apache.coyote.tomcat4.CoyoteRequestFacade.
>         at javax.servlet.ServletRequestWrapper.
>I checked the code and line 178 just a call to the wrapped
>object, meaning that reference is null. Now, there's only two ways it
>could be null: a null reference was passed into CoyoteRequestFacade's
>constructor, or CoyoteRequestFacade.clear() was called.
>As I understand it, a CoyoteRequestFacade should be associated with a
>request when it starts and not released until the request has completed
>so I'm leaning towards looking at the first possibility. Can anyone
>me an overview of the 'life cycle' of CoyoteRequestFacade? Where is it
>created, managed, assigned/reclaimed from a particular request, etc?
>Better yet, has anyone run into this and found a solution? The nearest
>thing I could find was Bug# 21611 which sounds like the same problem.
> From the commentary, it doesn't look like there's a known cause yet;
>what would be the best way to track this down (as I say, I can
>the behaviour easily here)?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

View raw message