java.io.EOFException错误

原创 2015年07月09日 16:23:30



tomcat启动后报:

- IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
    at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
    at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2748)
    at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
    at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
    at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:57)
    at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361)
    at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
    at org.apache.catalina.session.StandardManager.start(StandardManager.java:634)
    at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
    at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:391)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1042)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    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:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
- Exception loading sessions from persistent storage
java.io.EOFException
    at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
    at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2748)
    at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
    at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
    at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:57)
    at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:361)
    at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
    at org.apache.catalina.session.StandardManager.start(StandardManager.java:634)
    at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
    at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:391)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1042)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    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:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


产生此异常的原因是:tomcat在启动的时候要读取硬盘上session,读取失败后就会产生此异常。


解决方案:首先在eclipse中将项目从tomcat服务器上移除,然后删除tomcat安装目录下的\work\Catalina\localhost\_ 下的session.ser文件,然后重新部署启动即可。



版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

java.io.EOFException解决

Tomact启动时报:IOException while loading persisted sessions: java.io.EOFException错误 - IOException whi...

tomcat不能正常启动: java.io.EOFException

在启动Tomcat的时候突然报出IO异常,具体异常如下图 百度了下,网上都是说去Tomcat目录下:将tomcat5.5\work\Catalina\localhost\projec...

java.io.EOFException 问题解决办法

Tomcat: IOException while loading persisted sessions: java.io.EOFException解决 严重: IOException while l...

java.io.EOFException解决

主要错误提示如下:  严重: IOException while loading persisted sessions: java.io.EOFException  严重: Excepti...

是什么造成了weblogic server log文件里的java.io.exception

在你的weblogic server的log文件里面, 你有可能会看到一下Exception(Window NT)        java.io.IOException Connection Rese...

TOmcat启动后报:java.io.EOFException错误

TOmcat启动后报:IOException while loading persisted sessions: java.io.EOFException错误 - IOException whi...

TOmcat启动后报:IOException while loading persisted sessions: java.io.EOFException错误

- IOException while loading persisted sessions: java.io.EOFException java.io.EOFException     at&#...

TOmcat启动后报:IOException while loading persisted sessions: java.io.EOFException错误

- IOException while loading persisted sessions: java.io.EOFException java.io.EOFException     at j...

tomcat启动后报:java.io.EOFException错误

TOmcat启动后报:IOException while loading persisted sessions:java.io.EOFException错误 - IOException while ...

android使用ksoap2-android调用webservice时报java.io.EOFException错误

报错代码如下: java.io.EOFException at libcore.io.Streams.readAsciiLine(Streams.java:203) at libcore.net.h...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)