Hi there,

With Tomcat 5.5 , I'm using the (what I assume to be typical) pattern:

--
if(!request.isRequestedSessionIdValid() || request.getSession(false) ==
null)
{
  // some code to bail out and return an error
}

HttpSession session = request.getSession();
--

and yet, later on in my code, a call to session.setAttribute() throws
the following exception (see bottom of email)... what am I doing wrong?
I've guarded against an invalid session by checking for one, yet there
it is on the first attempt to use it!

Help! Thanks!

Exception from above:
Throwable/Exception cause: java.lang.IllegalStateException:
setAttribute: Session already invalidated
Stack trace:
java.lang.IllegalStateException: setAttribute: Session already invalidated
        at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1251)
        at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1233)
        at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
        at
edu.ufl.bebr.scheduler.web.action.EmployeeScheduleAction.execute(EmployeeScheduleAction.java:176)



-- 
Martin Smith, Systems Developer
mart...@bebr.ufl.edu
Bureau of Economic and Business Research
University of Florida
(352) 392-0171 Ext. 221

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to