[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)
删除workspce下面的session_data目录就可以了,这个目录在你项目所在目录的上一级。发生这个异常的原因是jfinal支持session持久化,开发过程中如果存入session的数据被改变,那么恢复的时候无法反序列化,jfinal下一版考虑改进这个问题
T_T多谢詹哥,果然还是应该来发帖问问。。被这问题纠结屎了。。删了也不好使!
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。