This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 13, 2011, 11:51 AM
40 Posts

Re: Guess: Re: View Scope causes "java.io.NotSerializableException" error

  • Category: Managed Beans in NSF
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 4
fwiw, he view scope is in JSF 2.0
 
You need to make sure your managed bean implements Serailizable ... if you have members of your class that do not implement serializable you need to provide custom state management methods in your class (saveState and restoreState for example) to handled writing out a serializable plain object so the runtime can save the state of your bean during the renderResponse phase.
Jun 15, 2011, 9:04 AM
33 Posts
Re: Guess: Re: View Scope causes "java.io.NotSerializableException" error
I've been facing the same troubles with a bean stored in ViewScope. As Jeremy suggested it was caused by the member variable that holds the Notes document (lotus.domino.Document) as that class does not implement Serializable interface.
For so far I decided not to keep notes document as member variable and use universalID instead. After this change the bean works fine.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal