jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes puzzle for everyone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "puzzle for everyone" Watch "puzzle for everyone" New topic

puzzle for everyone

Mahajan Bhupendra
Ranch Hand

Joined: Dec 01, 2000
Posts: 118
From last few weeks i working on online exam problem..
rest of the things are all ok..
but i m sufferring with a big problem..
i m creating a session for each user and it's working fine..
At the end i invalidating a session for that user and i m
inserting his marks into database...
upto this is very fine..
next time when i again start the exam the first question is
always the old one and if i click on next question (Without
refreshing )i get NullPointerException prbably because of
the previous exam object has been invalidated.
i m creating Exam object in doGet method ..
and further processing is in
but at the first question if i refreshed program works smoothly
so i think this might be a problem of cache memory ..
can anybody please help me???
i m using resin server...

<B>Bhupendra Mahajan</B>
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Pl. do not post your question more that once.
Your earlier post din't get any responses, because,
IMO its too specific could you re-phrase it and post
in the same thread.
Also, If I could suggest one more thing, please use
appropriate subjects something like "NullPointer Exception
using Resin". This way anyone who knows Resin will definetly
look at your post and have some suggestions. I agree that
its a little dis-heartning when no one replies.
But then we should try our best.
We appreciate your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link: http://aspose.com/file-tools
subject: puzzle for everyone
It's not a secret anymore!