错误代码如下:
严重: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:226)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:183)
at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:473)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1119)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1760)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
一月 02, 2014 2:38:27 下午 org.apache.catalina.session.StandardManager startInternal
严重: Exception loading sessions from persistent storage
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:226)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:183)
at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:473)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1119)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1760)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
一月 02, 2014 2:38:27 下午 org.apache.catalina.startup.HostConfig deployDirectory

  错误的原因是:EOFException表示输入过程中意外地到达文件尾或流尾的信号,导致从session中获取数据失败。这是由于tomcat上次非正常关闭时有一些活动session被持久化(表现为一些临时文件),在重启时,tomcat尝试去恢复这些session的持久化数据但又读取失败造成的。此异常不影响系统的使用。

可以看到,我正在使用的day56项目中多了一个sessions.ser文件,把此文件删除即可tomcat即可正常的使用.

如果你的项目中不知道是哪个项目引起的.就把Catalina目录下的所有文件删除,即可.

  1. 错误代码如下:
  2. 严重: IOException while loading persisted sessions: java.io.EOFException
  3. java.io.EOFException
  4. at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
  5. at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794)
  6. at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
  7. at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
  8. at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
  9. at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:226)
  10. at org.apache.catalina.session.StandardManager.load(StandardManager.java:183)
  11. at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:473)
  12. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  13. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
  14. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  15. at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
  16. at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
  17. at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
  18. at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1119)
  19. at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1760)
  20. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  21. at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  22. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  23. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  24. at java.lang.Thread.run(Thread.java:744)
  25. 一月 02, 2014 2:38:27 下午 org.apache.catalina.session.StandardManager startInternal
  26. 严重: Exception loading sessions from persistent storage
  27. java.io.EOFException
  28. at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
  29. at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794)
  30. at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
  31. at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
  32. at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:58)
  33. at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:226)
  34. at org.apache.catalina.session.StandardManager.load(StandardManager.java:183)
  35. at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:473)
  36. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  37. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
  38. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  39. at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
  40. at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
  41. at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
  42. at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1119)
  43. at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1760)
  44. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  45. at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  46. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  47. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  48. at java.lang.Thread.run(Thread.java:744)
  49. 一月 02, 2014 2:38:27 下午 org.apache.catalina.startup.HostConfig deployDirectory

tomcat启动时报:IOException while loading persisted sessions: java.io.EOFException的解决方案 ZT的更多相关文章

  1. tomcat启动时报:IOException while loading persisted sessions: java.io.EOFException的解决方案

    错误代码如下: 严重: IOException while loading persisted sessions: java.io.EOFException java.io.EOFException ...

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

    tomcat启动错误代码: 严重: IOException while loading persisted sessions: java.io.EOFException java.io.EOFExce ...

  3. Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记

    原文:http://blog.csdn.net/lifuxiangcaohui/article/details/37659905 一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以 ...

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

    Tomcat:IOException while loading persisted sessions: java.io.EOFException 产生原因: 最近将项目名称修改了一下,然后启动项目, ...

  5. Tomcat:IOException while loading persisted sessions: java.io.EOFException 解决

    转自:http://www.blogjava.net/apple0668/archive/2007/10/12/152383.html Tomcat启动时如下错误: 严重: IOException w ...

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

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

  7. 严重: IOException while loading persisted sessions: java.io.EOFException

    tomcat在启动时出现如下异常问题: 严重: IOException while loading persisted sessions: java.io.EOFException 严重: Excep ...

  8. 严重:IOException while loading persisted sessions:java.io.EOFException.

    1.错误叙述性说明 严重:IOException while loading persisted sessions:java.io.EOFException. java.io.EOFException ...

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

    运行eclipse启动服务器的时候,出现了IOException while loading persisted sessions: java.io.EOFException报错.本以为是代码修改出现 ...

随机推荐

  1. 使用contenteditable=true的div模拟textarea(vue2.0中使用,带placeholder且高度自动撑开)

    子组件: <template> <div class="item-address"> <span v-show="!hasAddress&q ...

  2. hdu2132

    题目:We once did a lot of recursional problem . I think some of them is easy for you and some if hard ...

  3. go报错unimplemented: 64-bit mode not compiled in与mingw 64位安装报错ERROR res已解决

    问题一:cc1.exe: sorry, unimplemented: 64-bit mode not compiled in 参考:https://www.cnblogs.com/lesroad/p/ ...

  4. python运算符与数据类型

    python运算符 Python语言支持以下类型的运算符: 算术运算符 比较(关系)运算符 赋值运算符 逻辑运算符 位运算符 成员运算符 身份运算符 运算符优先级 以下假设变量: a=10,b=20: ...

  5. 【转载】Druid 介绍及配置

    原文链接:https://www.cnblogs.com/niejunlei/p/5977895.html 1. Druid是什么? Druid是Java语言中最好的数据库连接池.Druid能够提供强 ...

  6. oracle新建表空间的四条语句

    1.create user platform identified by intest; 2.create tablespace PLATFORM_DATA datafile 'c:\PLATFORM ...

  7. ESP32搭建3.ubuntu14.04下搭建esp32开发环境 (10-5)

    硬件为乐鑫出品的ESP32一款集成了wifi和蓝牙的集成模块. 1.首先ctrl+alt+t打开终端,sudo -s选择用root权限登陆 . 2. 输入指令:sudo apt-get install ...

  8. 进制与ASCII码转换

    LabeledEdit4.Text := chr(); // 用十进制方式赋值: ASCII码转换为字符 65 -> A LabeledEdit4.Text := #; // 用十进制方式赋值: ...

  9. nodejs-POST数据处理

    GET数据:容量小 32K 数据在URL中 POST数据:数据量大 1G 分段传输 数据另外发 处理方法: const http=require("http"); http.cre ...

  10. django 模板 (ああああああああ!かぴ)

    一 常用 1. {{ 不存在 | default : "xx" }} 2. {{ name | length }} 3. {{ xx | slice "1:-1" ...