J2EE Bad Practices: Non-serializable Object Stored in Session |
Weakness ID: 579 (Weakness Variant) | Status: Draft |
Description Summary
Example 1
The following class adds itself to the session, but because it is not serializable, the session can no longer be replicated.
In order for session replication to work, the values the application stores as attributes in the session must implement the Serializable interface. |
A J2EE application can make use of multiple JVMs in order to improve application reliability and performance. In order to make the multiple JVMs appear as a single application to the end user, the J2EE container can replicate an HttpSession object across multiple JVMs so that if one JVM becomes unavailable another can step in and take its place without disrupting the flow of the application. |
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 573 | Failure to Follow Specification | Development Concepts (primary)699 Research Concepts (primary)1000 |
Security-Database help your corporation foresee and avoid any security risks that may impact your IT infrastructure and business applications.