PDA

View Full Version : Issue in setting attribute in session


nobrains
01-17-2011, 09:57 AM
I have been getting errors like

Can't call setAttribute(String, Object) when session is no longer valid.


When debugging figured out from logs that just above this error, there was something like :

session abcBDkoqimcIeczSkot2s LRU while in use (use-count=1). Consider increasing session-count.


This is a newly created session. So its kinda impossible that the session could be LRU'd. Also we have set <session-max> to 2000 in resin config file.

Am using Resion Professional version 3.1.3.

Any help will be highly appreciated.

Thanks in advance.

alex
01-17-2011, 09:30 PM
Is the session valid, i.e. not invalidated?

Thanks,
Alex

nobrains
01-18-2011, 03:08 AM
Ya.. the session is valid.. As i mentioned it says that the session is LRU.. Try increasing session count.. Also, the session is newly created. This happens intermittently..

nobrains
01-19-2011, 03:50 PM
Any help here.? I've increased session-max to 4096 which is recommended by resin.

Also,
"session <sessionid> LRU while in use (use-count=1). Consider increasing session-count."
which is printed from removeEvent method of sessionImpl class seems to be invalidating the session; hence error of IllegalStateException(Can't call setAttribute(String, Object) when session is no longer valid.)

I don't understand how it can be LRU when its just newly created..

One more thing i noticed was that "reuse-session-id" is set to true in the conf file

Any help will be highly appreciated.