Hello everybody,
> How are you trying to remove all of the attributes from
> the session, and
> could you not just call session.invalidate() ?
I have a class that performs database-related functions.
The object of this class is saved in the session object.
Now when a user logouts, I want to clos
Title: RE: java.util.ConcurrentModificationException
A ConcurrentModificationException is thrown
by a non-synchronized Collection when more
than one thread tries to modify the Collection.
Try synchronizing the Collection or simply
calling the session.invalidate() as suggested
in
I suppose you use
session.invalidate();
and then try to remove any values from the session?
Well, you can't. The session is marked for deletion and therefore you get
the ConcurrentModificationException.
session.invalidate() should be enough...
Johan
- Original Message -
From: "Arun Ja
How are you trying to remove all of the attributes from the session, and
could you not just call session.invalidate() ?
This can occur if, for example, you get the attribute names out of the
session in an enumeration, remove one of them from the session with a
removeAttribute and then try and int