Description

When running java web applications on Tomcat, an object is put into session and after a restart ,it prompts the error : Caused by: java.io.NotSerializableException: java.lang.Object

  

Action Plan

This error message does not prevent Tomcat to work properly, as far as the CAST dashboard application is concerned.

  1. You can change Tomcat's default behaviour by uncommenting in tomcat_dir/conf/context.xml file the place where it says:
    <!-- Uncomment this to disable session persistence across Tomcat restarts →
  2. However, check that it will have no impact on your other Web applications.

 

Impact on Analysis Results and Dashboard

There is no impact on the dashboard, which is not relying on Tomcat's session serialization mechanism

 

Notes/comments

It may not always be java.lang.Object, any class not implementing java.io.Serializable could be in this error.

This is due to Tomcat’s default behavior of serializing all the sessions and after restart trying to deserialize them.