Discussion Locked

session expire

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

if I don't use the browser for some time(may be 10
minutes), then it shows the error message "Servlet failed with
exception, NullPointerException".
I think that this may be due to the "session expiration". How
can I settle this matter. Pls help.
My first jsp page is a login page,after entering username and password,i go to second page which displays some details where i have a href to another page.
Now that i leave the second page and go out for a while say 5 to 10 minutes and come back
and then click on href in 2nd page it will say error:
SERVLET FAILED WITH EXCEPTION,AND NULL POINTER EXCEPTION.
SESSION EXPIRES.BUT IF I COME TO LOGIN PAGE AGIAN AND GO CONTINOUSLY THRO THE PAGES ACROSS,THRO THE APPLICATION,THERE SEMS TO BE NO PROBLEM.

5 replies

by limatik

First, I would check timeout settings on the web server.

Secondly, I would check the code for maybe, mis-applications in session implementation. Ideally, the application should be able to trap session expiration and not result to other exceptions.

Good luck,

This discussion is closed to new replies.