wood burning stoves 2.0*
The moose likes JSF and the fly likes Getting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Getting "view could not be restored" error, has anyone seen this before?" Watch "Getting "view could not be restored" error, has anyone seen this before?" New topic
Author

Getting "view could not be restored" error, has anyone seen this before?

Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
I'm getting this error in my logs and cannot figure out why I'm seeing this. In my web.xml I have an element to specify no session timeout. I'll post that below as well.



Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

ViewExpiredException

You have your session timeout set to 0 and I'd have to RTFM to verify that that means "don't expire".

I've never done an app with infinitely-long sessions, however. I figure if they go for more than a day or 2 between page clicks, %$^%@ 'em. Those sessions cost resources, and if they're not eventually freed up, the resulting leaks will blow out the server.


Customer surveys are for companies who didn't pay proper attention to begin with.
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
Oh wow, good point. I never even put it together but we have seen OutOfMemory exceptions every 7 days or so. I'll set the timeout to something and see if I can handle that exception gracefully. Any tips on that?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting "view could not be restored" error, has anyone seen this before?