Howdy,
Something else is modifying the session (adding/removing attributes or
otherwise modifying the backing collection of your session_var enumeration)
while you're iterating through it.

>      while(session_var.hasMoreElements())
>      {
>          String key=(String)session_var.nextElement();

You need to make the above code synchronized on the session.  This may not be
as trivial as it sounds: for example, it might be impossible if your
environment is clustered.

Alternative options include doing this on session passivation or destruction
(probably the former), using the appopriate listener.  

Why are you clearing all the attributes instead of a specific one?  

Yoav Shapira


=====
Yoav Shapira
[EMAIL PROTECTED]

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to