一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以下异常:
严重: IOException while loading persisted sessions: java.io.EOFException
严重: Exception loading sessions from persistent storage
原因是tomcat对硬盘的session读取失败,彻底解决办法一下:将work下面的文件清空,主要是*.ser文件,或者只是删除掉session.ser即可以解决。
评论:
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2007-10-12 17:01 |
Tomcat 默认好像并不把Session序列化到硬盘,你做过改动?
回复
更多评论
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2007-10-12 18:07 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2007-10-12 18:15 |
我的tomcat是6.0的,我是通过把E:\Tomcat 6.0\work里面的session.ser文件删除解决的,也是第一次遇到这个问题,最近没有改动过,只是发布项目到tomcat中。
回复
更多评论
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2007-10-12 23:59 |
在非正常退出时,TOMCAT会记录一些数据,下次开启时会去读这些数据,以便让上次关闭时的session继续有效.(猜想)
回复
更多评论
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录] 2007-10-13 00:15 |
@Alexander.Yu,你的推断都有可能,有时间试试非正常退出,看看是不是这个原因,第一次遇到找到这样的解决方法,但不知道是什么原因。
回复
更多评论
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2007-10-13 15:25 |
在重新启动Tomcat的webapp的时候,禁止把session写入文件。
修改conf/web.xml
取消注释:
<!---->
<Manager pathname="" />
回复
更多评论
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2009-02-16 01:24 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2009-06-07 20:47 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2011-05-05 10:21 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2011-06-03 15:51 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录] 2011-06-16 18:54 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2011-07-13 14:32 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2011-07-26 16:56 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录] 2011-08-16 17:40 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2011-11-11 14:00 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2011-12-20 16:45 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-02-29 11:14 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-05-02 14:46 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-06-08 14:10 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-06-11 08:31 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-06-14 10:02 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-08-11 09:41 |
@惨
在\work\Catalina\localhost\_\里面
回复
更多评论
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录] 2012-08-11 17:33 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-08-17 14:30 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-08-30 10:13 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录] 2012-09-17 17:12 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记[未登录] 2012-09-26 10:06 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-11-02 16:52 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记 2012-11-02 16:53 |
#
re: Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记
2012-11-12 11:13 |