|Most likely you are calling
session.invalidate() somewhere in your code.
If you do this and then try to use that invalidated
session object, you can expect
java.lang.IllegalStateException to be thrown.
(see the java docs for
ServletExec has a thread that runs in the background which periodically examines all the session objects, calling
invalidate() on those that have expired.
Consider removing any calls to
session.invalidate() in your code, and allowing SE to manage your sessions
automatically, or perhaps wrapping all such calls in a try-catch block.
If you are not calling
session.invalidate() anywhere in your code then this would not be the problem.
In which case we can only say that somehow your session data has gotten into an inconsistent state.
To fix it do this:
- stop ServletExec
- delete the appropriate sessionSwap folder
- start ServletExec