Tomcat startup times: IOException while loading persisted sessions:java.io.EOFException solutions

Source: Internet
Author: User
Tags addchild

The error code is as follows: severity: IOException whileloading persisted sessions:java.io.EOFExceptionjava.io.EOFException at java.io.objectinputstream$ Peekinputstream.readfully (Objectinputstream.java:2325) at Java.io.objectinputstream$blockdatainputstream.readshort (Objectinputstream.java:2794) at Java.io.ObjectInputStream.readStreamHeader (Objectinputstream.java:801) at Java.io.ObjectInputStream.<init> (objectinputstream.java:299) at Org.apache.catalina.util.CustomObjectInputStream.<init> (customobjectinputstream.java:58) at Org.apache.catalina.session.StandardManager.doLoad (Standardmanager.java:226) at Org.apache.catalina.session.StandardManager.load (Standardmanager.java:183) at Org.apache.catalina.session.StandardManager.startInternal (Standardmanager.java:473) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:150) at Org.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5293) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:726) at Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:702) at Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:39]) at Org.apache.catalina.startup.HostConfig.deployDirectory (Hostconfig.java:1119) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (Hostconfig.java:1760) at Java.util.concurrent.executors$runnableadapter.call (Executors.java:471) at Java.util.concurrent.FutureTask.run (Futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:615) at Java.lang.Thread.run (Thread.java:744) January02, 2014 2:38:27afternoon Org.apache.catalina.session.StandardManager startinternal Grave: Exception loading sessions from persistent Storagejava.io.EOFException at java.io.objectinputstream$peekinputstream.readfully (Objectinputstream.java:2325) at Java.io.objectinputstream$blockdatainputstream.readshort (Objectinputstream.java:2794) at Java.io.ObjectInputStream.readStreamHeader (Objectinputstream.java:801) at Java.io.ObjectInputStream.<init> (objectinputstream.java:299) at Org.apache.catalina.util.CustomObjectInputStream.<init> (customobjectinputstream.java:58) at Org.apache.catalina.session.StandardManager.doLoad (Standardmanager.java:226) at Org.apache.catalina.session.StandardManager.load (Standardmanager.java:183) at Org.apache.catalina.session.StandardManager.startInternal (Standardmanager.java:473) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:150) at Org.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5293) at Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (Containerbase.java:726) at Org.apache.catalina.core.ContainerBase.addChild (Containerbase.java:702) at Org.apache.catalina.core.StandardHost.addChild (Standardhost.java:698) at Org.apache.catalina.startup.HostConfig.deployDirectory (Hostconfig.java:1119) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (Hostconfig.java:1760) at Java.util.concurrent.executors$runnableadapter.call (Executors.java:471) at Java.util.concurrent.FutureTask.run (Futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:615) at Java.lang.Thread.run (Thread.java:744) January02, 2014 2:38:27 pm org.apache.catalina.startup.HostConfig deploydirectory

The reason for the error is that eofexception indicates that the input process has unexpectedly reached the end of the file or the signal at the end of the stream, resulting in a failure to obtain data from the session. This is due to a number of active sessions being persisted (shown as temporary files) during Tomcat's last abnormal shutdown, and at reboot, Tomcat attempts to recover the persisted data of the session but failed to read the result. This exception does not affect the use of the system.

As you can see, I am using a day56 project with a sessions.ser file, delete this file can be tomcat normal use.

If you do not know which item is causing the project, just delete all the files in the Catalina directory.

Tomcat startup times: IOException while loading persisted sessions:java.io.EOFException solutions

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.