开发者社区> 问答> 正文

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)

展开
收起
爱吃鱼的程序员 2020-06-22 20:03:47 762 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    删除workspce下面的session_data目录就可以了,这个目录在你项目所在目录的上一级。发生这个异常的原因是jfinal支持session持久化,开发过程中如果存入session的数据被改变,那么恢复的时候无法反序列化,jfinal下一版考虑改进这个问题

    T_T多谢詹哥,果然还是应该来发帖问问。。被这问题纠结屎了。。

    删了也不好使!

    2020-06-22 20:04:04
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载