啟動Tomcat時報IOException while loading persisted sessions: java.io.EOFException異常解決辦法

來源:互聯網
上載者:User

假如tomcat啟動時報如下錯誤:

[ERROR,ManagerBase,main] IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
 at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2155)
 at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2621)
 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
 at java.io.ObjectInputStream.<init>(ObjectInputStream.java:251)
 at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:56)
 at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:384)
 at org.apache.catalina.session.StandardManager.load(StandardManager.java:343)
 at org.apache.catalina.session.StandardManager.start(StandardManager.java:657)
 at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:499)
 at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:317)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at org.apache.catalina.core.StandardService.start(StandardService.java:480)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

只要刪除tomcat下\work\Catalina\localhost\下對應項目中的SESSIONS.ser,然後重新啟動即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.