Start Tomcat, throw java.io.IOException exception

Source: Internet
Author: User
Tags sessions

When you debug your project today, there is a Java.io.IOException exception to start Tomcat.
The main error prompts are as follows:

Serious: IOException while loading persisted sessions:java.io.EOFException

Serious: Exception loading sessions from persistent storage

Reference Source: http://www.javaeye.com/topic/232130

Analysis: Eofexception represents a signal that unexpectedly arrives at the end of a file or stream at the end of the input process, resulting in a failure to fetch data from the session. The exception is the problem with Tomcat itself, because some of the active sessions were persisted (represented as temporary files) when Tomcat was last abnormally shut down, and during the reboot, Tomcat tried to recover the persisted data of the session but failed to read the result. This exception does not affect the use of the system.

Solution:
The Tomcat installation directory/work/catalina/localhost/yourprojectname/sessions.ser deleted. If the server is shut down properly, the file is automatically deleted.

Note: Yourprojectname is the name of the Web project you are currently working on.

Considering that everyone's Tomat working directory is different, it is recommended to find your Sessions.ser file in the "search" feature and just delete it. /yourprojectname/under the Sessions.ser can be.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.