`

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

 
阅读更多

一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以下异常:

严重: IOException while loading persisted sessions: java.io.EOFException
严重: Exception loading sessions from persistent storage


原因是tomcat对硬盘的session读取失败,彻底解决办法一下:将tomcat_home\work下面的文件清空,主要是*.ser文件,或者只是删除掉session.ser即可以解决。

 

备注:

 

异常详细信息

 

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

java.io.EOFException

        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)

        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)

        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)

        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)

        at org.apache.catalina.util.CustomObjectInputStream.<init>(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:648)

        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4631)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

        at org.apache.catalina.core.StandardService.start(StandardService.java:525)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

        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)

Jul 11, 2012 9:23:03 AM org.apache.catalina.session.StandardManager start

SEVERE: Exception loading sessions from persistent storage

java.io.EOFException

        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2280)

        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)

        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)

        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)

        at org.apache.catalina.util.CustomObjectInputStream.<init>(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:648)

        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4631)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

        at org.apache.catalina.core.StandardService.start(StandardService.java:525)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

        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)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics