用户登录后,将用户信息存入session就反复报错,百度查了半天,说是序列化的问题,但是我看我的modal已经添加了序列表的标识了呀~~
报错信息如下:
2016-11-27 18:22:33.945:WARN:oejss.HashedSession:Problem saving session 1eq1o3er9i7bxf19c6csh6lu0 java.io.NotSerializableException: com.jfinal.log.Log4jLog at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at org.eclipse.jetty.server.session.HashedSession.save(HashedSession.java:170) at org.eclipse.jetty.server.session.HashedSession.save(HashedSession.java:122) at org.eclipse.jetty.server.session.HashSessionManager.invalidateSessions(HashSessionManager.java:388) at org.eclipse.jetty.server.session.AbstractSessionManager.doStop(AbstractSessionManager.java:293) at org.eclipse.jetty.server.session.HashSessionManager.doStop(HashSessionManager.java:135) at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:135) at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) at org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:107) at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:805) at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:160) at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:516) at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) at com.jfinal.server.JettyServer$1.onChange(JettyServer.java:105) at com.jfinal.server.Scanner.compare(Scanner.java:88) at com.jfinal.server.Scanner.working(Scanner.java:57) at com.jfinal.server.Scanner.access$0(Scanner.java:55) at com.jfinal.server.Scanner$1.run(Scanner.java:94) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Generater生成的modal: /** * Generated by JFinal. */ @SuppressWarnings("serial") public class Admin extends BaseAdmin<Admin> { public static final Admin dao = new Admin(); public static final String SESSSION_USER = "user" ; }
项目:JFinal