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
Release
Yes/No
7.3.x(tick)
7.2.x(tick)
7.0.x(error)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS2(tick)
CSS1(tick)
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