Dear experts
I have an application which creates session after logging in and all data are stored in the session. Sometimes when I open a page which has to read the parameter from the session using:
String autoRefresh = (String) my_session.getAttribute("autoRefresh");
this exception is thrown:
ErrorPage.jsp: java.lang.IllegalStateException: getAttribute: Session already invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:953)
at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171)
at myapp.SomeHandler.getCurrColText(SomeHandler.java:116)
...
Everything looks like the session doesn't exist anymore, but when I refresh the page which has to read the data from session, everything is ok. I have tried to log session id in the error page, page after the login(when session was created) and in page after the refresh, and it's the same session ID !
Do you have any idea, what's wrong ?
I use
Tomcat 4.1.31 + JDK 1.3.1.
Miro