Issue
When trying to store a List variable of custom objects
session.setAttribute
is complaining that’s the variable is not serializable.
Solution
Your entire servlet session can be serialized to disk or another store at any moment. So all objects in it must be serializable.
Answered By - mnesarco
Answer Checked By - Gilberto Lyons (JavaFixing Admin)