错误代码如下:
严重: 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. STL 小白学习(8) set 二叉树

    #include <iostream> using namespace std; #include <set> void printSet(set<int> s) ...

  2. python之路-----前端之css

    本篇内容 CSS 语法 css的四种引入方式 css选择器 css属性操作 Caution! 后台管理布局 css响应式布局 一.CSS语法 CSS 规则由两个主要的部分构成:选择器,以及一条或多条声 ...

  3. 总结get和post区别---面试用

    总结get和post区别---面试用 我是搬运工!!!! get参数通过url传递,post放在request body中. get请求在url中传递的参数是有长度限制的,而post没有. get比p ...

  4. 面向对象编程思想(OOP)

    本文我将从面向对象编程思想是如何解决软件开发中各种疑难问题的角度,来讲述我们面向对象编程思想的理解,梳理面向对象四大基本特性.七大设计原则和23种设计模式之间的关系. 软件开发中疑难问题: 软件复杂庞 ...

  5. 实现我的第一个Java程序

    第一步.打开记事本 第二步.代码编写 public class Hello{ public static void main( String[] args){ System.out.println(& ...

  6. 使用walle部署laravel的时候问题记录

    1.使用walle部署laravel的时候检出后执行composer update提示 [RuntimeException]The HOME or COMPOSER_HOME environment ...

  7. Spring MVC学习step1——框架熟悉

    b站视频链接,整理的一些笔记,图是网上找到的黑马教案,侵权删,在此记录学习笔记 SpringMVC框架 步骤: 第一步:发起请求到前端控制器(Dispatcherservlet) 第二步:前端控制器请 ...

  8. equals方法中变量在前和在后的区别

    对于变量:String str1; 使用str1.equals("null"); 对于变量str1,如果str1是null,空是没有equals方法的,会抛出空指针异常 使用&qu ...

  9. Linux 系统运行命令 > 查看系统信息

    查看系统运行状态 一 . 查看硬件信息 - 1. cpu信息(可以通过find,whereis,locate查出路径) #cat /proc/cpuinfo 2 . 内存信息:meminfo(可以用c ...

  10. Testner测试圈关于页面响应时间的测试行业标准

    Testner测试圈针对小程序页面的响应时间标准建议如下:0-2秒 用户体验好,可以选择性改善,如首屏体验做到秒开等2-4秒 用户体验一般,有改善空间4-6秒 用户体验较差,有较大改善空间6秒以上 用 ...