错误代码如下:
严重: 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. maven配置及使用

    配置maven工程.从官网下载maven工具,然后解压到磁盘某个目录下即可. 计算机->属性->高级系统设置->环境变量. 新建如下变量: 变量名:MAVEN_HOME 变量值:C: ...

  2. sed应用

    删除每行空白字符 sed -i 's/^[[:space:]]*//' user.txt 删除空白行 sed -i '/^$/d' user.txt

  3. Document.write和 InnerHTML

    Document.write 定义: Document.write()这种方法是将文本字符串写入document.open()打开的文档流. document.write()方法可以用在两个方面:页面 ...

  4. awk shell

    作业一:整理博客,内容包含awk.变量.运算符.if多分支 awk   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 ...

  5. MySQL数据库SQL语句基本操作

    一.用户管理: 创建用户: create user '用户名'@'IP地址' identified by '密码'; 删除用户: drop user '用户名'@'IP地址'; 修改用户: renam ...

  6. 第一章 Python基本语法

    寒假不能荒废,终于静下心来认真地开始学习Python,在这里与大家分享一下所学知识,希望能对像我这样的小白有所帮助,如有错误之处,谢大佬不吝赐教!!    编程语言包括机器语言.汇编语言.高级语言.超 ...

  7. 编译安装LAMP

    编译安装MariaDB 创建MariaDB安装目录.数据库存放目录.建立用户和目录 先创建一个名为mysql且没有登录权限的用户和一个名为mysql的用户组,然后安装mysql所需的依赖库和依赖包,最 ...

  8. datatable处理gridview筛选后的值

    DataTable dt = (DataTable)gridView1.GridControl.DataSource; DataRow[] drr = dt.Select(gridView1.RowF ...

  9. c++数组传参

    最近感觉老是碰到数组传参的问题,特别是二维的数组,每次报错都感觉头疼,烦躁:这里必须总结一下了,先把暂时能解决的问题写在这吧,以便以后碰到查看! 先看一个一维数组传参:这样用数组传参是很不安全的:会输 ...

  10. LeakCanary 来检查 Android 内存泄漏

    LeakCanary 来检查 Android 内存泄漏