I have been using Tomcat 6 as a web server.
Suddenly the following exception occurs when Tomcat is started:
Severe:Ioexception while loading persisted sessions: Java. Io. eofexception
Java. Io. eofexception
At java. Io. objectinputstream $ peekinputstream. readfully (objectinputstream. Java: 2279)
At java. Io. objectinputstream $ blockdatainputstream. readshort (objectinputstream. Java: 2748)
At java. Io. objectinputstream. readstreamheader (objectinputstream. Java: 780)
At java. Io. objectinputstream. <init> (objectinputstream. Java: 280)
At org. Apache. Catalina. util. customobjectinputstream. <init> (customobjectinputstream. Java: 58)
At org. Apache. Catalina. session. standardmanager. doload (standardmanager. Java: 362)
At org. Apache. Catalina. session. standardmanager. Load (standardmanager. Java: 321)
At org. Apache. Catalina. session. standardmanager. Start (standardmanager. Java: 648)
At org. Apache. Catalina. Core. containerbase. setmanager (containerbase. Java: 446)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4630)
The reason is that Tomcat failed to read the hard disk session. The complete solution is as follows:
Clear the files under work, mainly the *. Ser file, or delete the session. Ser file.