tomcat启动报错:IOException while loading persisted sessions: java.io.EOFException java.io.EOFException

错误如下严重: IOException while loading persisted sessions: java.io.EOFExceptionjava.io.EOFExceptionat java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2303)at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2772)at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)at java.io.ObjectInputStream.(ObjectInputStream.java:278)at org.apache.catalina.util.CustomObjectInputStream.(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:643)at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4559)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)at org.apache.catalina.core.StandardService.start(StandardService.java:519)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)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:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2016-4-8 16:13:08 org.apache.catalina.session.StandardManager start严重: Exception loading sessions from persistent storagejava.io.EOFExceptionat java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2303)at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2772)at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)at java.io.ObjectInputStream.(ObjectInputStream.java:278)at org.apache.catalina.util.CustomObjectInputStream.(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:643)at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4559)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)at org.apache.catalina.core.StandardService.start(StandardService.java:519)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)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:597)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)百度了下原因:tomcat对保存硬盘的session读取失败解决方法:1.把项目remove掉,clean下tomcat 效果:tomcat正常启动,没有再报错 2.删掉tomcat安装目录\work\Catalina\localhost\sessions.ser,按以上目录找不到时可以搜索下sessions.ser(没实践过,度娘的方法)_

你可能感兴趣的:(报错)