struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: NullPointerException while accessing request struts2
Date Thu, 26 Aug 2010 14:47:28 GMT
On 8/26/10 7:04 AM, Rohit wrote:
> Yes I have done that, it's not that every time I am getting the null pointer
> exception. It's happening randomly.

First I'd track down the code in question and see just what objects are 
getting dereferenced on that line.  If you have any problem that is not 
deterministic, I.E. happens *sometimes* but not in other seemingly 
identical instances, I'd look to race conditions on non-thread-safe 
objects that might be stored in a scope that gets shared between 
threads/requests/etc.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message