|
| Re: NullPointerException in initSessionInfo() |
 |
Tue, 18 Mar 2008 05:02:16 -070 |
Hi,
That means you are using the request object beyond its scope, and hence
resulting in NPE. We know that NPE is not a good error, but it is better then
getting undeterminate results.
Please refer to Servlet Specs 2.4 Section SRV.4.10 for more details.
Each request object is valid only within the scope of a servlet’s service
method, or
within the scope of a filter’s doFilter method. Containers commonly recycle
request objects in order to avoid the performance overhead of request object
creation. The developer must be aware that maintaining references to request
objects
outside the scope described above is not recommended as it may have
indeterminate
|
| Post Reply
|
|
|
|
|
|
|
|
|
|