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 | ✅ |
| 7.2.x | ✅ |
| 7.0.x | ❌ |
Observed on RDBMS
| RDBMS | Yes/No |
|---|---|
| Oracle Server | ✅ |
| Microsoft SQL Server | ✅ |
| CSS2 | ✅ |
| CSS1 | ✅ |
Step by Step Scenario
- Start Tomcat
- Deploy and WAR
- 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
- Delete the content in the <tomcat_installation_dir>/work/Catalina/localhost/<WAR_name>/ directory and
- 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