jfinal 使用jetty启动报错 java.io.EOFException
之前都没有问题,就是前几天突然出现的,很奇怪,网上搜也没有相应的错误,望大神们指导指导
[WARN]-[Thread: main]-[org.eclipse.jetty.server.session.HashSessionManager.restoreSession()]: Problem restoring session 1s15trl6u62wiox7bz1guny8r
java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2576)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1295)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at org.eclipse.jetty.server.session.HashSessionManager.restoreSession(HashSessionManager.java:567)
at org.eclipse.jetty.server.session.HashSessionManager.restoreSession(HashSessionManager.java:493)
at org.eclipse.jetty.server.session.HashSessionManager.restoreSessions(HashSessionManager.java:478)
at org.eclipse.jetty.server.session.HashSessionManager.doStart(HashSessionManager.java:107)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:123)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:115)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:752)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:277)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at com.jfinal.server.JettyServer.doStart(JettyServer.java:114)
at com.jfinal.server.JettyServer.start(JettyServer.java:63)
at com.jfinal.core.JFinal.start(JFinal.java:164)
at cn.net.sk.AppConfig.main(AppConfig.java:88)
2013-04-23 09:59:03
[WARN]-[Thread: main]-[org.eclipse.jetty.server.session.HashSessionManager.restoreSession()]: Problem restoring session p2hapugk349oosa60bnzwvcm
java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2576)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1295)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at org.eclipse.jetty.server.session.HashSessionManager.restoreSession(HashSessionManager.java:567)
at org.eclipse.jetty.server.session.HashSessionManager.restoreSession(HashSessionManager.java:493)
at org.eclipse.jetty.server.session.HashSessionManager.restoreSessions(HashSessionManager.java:478)
at org.eclipse.jetty.server.session.HashSessionManager.doStart(HashSessionManager.java:107)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:123)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:115)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:752)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:277)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at com.jfinal.server.JettyServer.doStart(JettyServer.java:114)
at com.jfinal.server.JettyServer.start(JettyServer.java:63)
at com.jfinal.core.JFinal.start(JFinal.java:164)
at cn.net.sk.AppConfig.main(AppConfig.java:88)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
删了也不好使!
T_T 多谢詹哥,果然还是应该来发帖问问。。被这问题纠结屎了。。
删除 workspce 下面的 session_data 目录就可以了,这个目录在你项目所在目录的上一级。发生这个异常的原因是 jfinal 支持session持久化,开发过程中如果存入session的数据被改变,那么恢复的时候无法反序列化,jfinal 下一版考虑改进这个问题