Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

session.removeAttribute problem

843841May 30 2007 — edited Jun 1 2007
Hello,
I have following problem which is occuring in sevlet api 2.4 (but the document doesnt talk about the same) please let me know if there is any document which explains this behaviour
-------------------------------------------
Something like this is happening....

String str=null;
request.getSession().removeAttribute(str);

its throwing this error:
------------------------------------
SEVERE: Servlet.service() for servlet action threw exception
java.lang.NullPointerException
------------------------------------
though it seems obvious, the code was not failing until specs. 2.3
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 29 2007
Added on May 30 2007
3 comments
254 views