Application Servers - Apache Tomcat - Error - IOException while loading persisted sessions java io EOFexception

Description

This page gives solution to the error IOException while loading persisted sessions : java.io.EOFexception which occurs while deploying war in tomcat :

Observed in CAST AIP

ReleaseYes/No
7.3.x
7.2.x
7.0.x

Observed on RDBMS

RDBMSYes/No
Oracle Server
Microsoft SQL Server
CSS2
CSS1

Step by Step Scenario

  1. Start Tomcat
  2. Deploy and WAR
  3. Check that the log contains exceptions IOException while loading persisted sessions java.io.EOFexception

Action Plan

When there are memory issues, some active sessions are made persistent by writing their details into a SESSION.ser file by Tomcat(located at <tomcat_installation_dir>/work/Catalina/localhost/<WAR_name>/SESSION.ser ) If this file is not found while it is being tried to access to make the persistent session active then such exceptions occur.
To solve this issue, you need to

  1. Delete the content in the <tomcat_installation_dir>/work/Catalina/localhost/<WAR_name>/ directory and
  2. Restart your web server.

Impact on Analysis Results and Dashboard

Analysis - N/A Dashboard - N/A

Notes/comments

This solution is taken from internet.

Related Pages