If you have ADF applications running on clustered environment, you might be familliar with the Serialization errors in the server log messages. The error is somthing like this.
There are a few reasons for this error to appear in the logs.
To avoid these error messages, you need to keep following things in mind while developing managed beans.
There are a few reasons for this error to appear in the logs.
- The managed bean class is not implementing Serializable and the bean is in scope greater than viewScope.
- The other reason could be that you have UI Component bindings in the serialized bean with scope greater than viewScope.
You can read more about ADF High Availability at Oracle ADF and High Availability Concepts.
To avoid these error messages, you need to keep following things in mind while developing managed beans.
- Do not bind UI Components in managed beans with scope more than viewScope.
- If you have to use UI Component bindings then use backing bean to bind the UI Components and reference the pageFlowScope bean inside backing bean to process the important data.
2 comments:
"Do not bind UI Components in managed beans with scope more than viewScope."
In general, component bindings should live no longer than request length (which means request scope or backingBean scope). For whatever you need to keep for longer, write it in a separate bean and look that bean up from the shorter scope'd bean.
Hi Frank,
Thanks for the valuable comment.
Tanvir
Post a Comment