嚴重: IOException while loading persisted sessions: java.io.EOFExceptionjava
java.io.EOFExceptionapache
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281)tomcat
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)session
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)spa
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)it
at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)io
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:637)margin
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4396)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
-------------------------------------------------
緣由:IOException while loading persisted sessions: java.io.EOFException
當加載持久化的session錯誤:文件末尾異常,就是已經讀取到文件末尾了,tomcat仍然試圖讀取內容,
tomcat讀取的文件是*.ser,session序列化文件,將SESSION.ser刪除,問題就解決了!