@JFinal 你好,想跟你请教个问题:
我写了一个通用的SessionHandler,用于处理检验登录超时、和处理不需要进行权限校验的直接跳转的一些功能;
现出现了一个问题,在页面Session失效后,点击退登录功能,处理了清除登录信息,再跳转到登录页面的操作
报错信息如下:
JFinal action report -------- 2014-12-08 15:56:23 ------------------------------ Controller : com.lzx3.manage.LoginController.(LoginController.java:1) Method : logout Interceptor : com.jfinal.ext.interceptor.SessionInViewInterceptor.(SessionInViewInterceptor.java:1) -------------------------------------------------------------------------------- 2014-12-08 15:56:23 [ERROR]-[com.jfinal.core.ActionHandler.handle()]: /login/logout java.lang.IllegalStateException: Attempt to invoke addELResolver after the application has already received a request at org.apache.jasper.runtime.JspApplicationContextImpl.addELResolver(JspApplicationContextImpl.java:99) at com.jfinal.plugin.activerecord.ModelRecordElResolver.init(ModelRecordElResolver.java:49) at com.jfinal.plugin.activerecord.ModelRecordElResolver.init(ModelRecordElResolver.java:54) at com.jfinal.render.JspRender.render(JspRender.java:63) at com.jfinal.core.ActionHandler.handle(ActionHandler.java:92) at com.lzx3.framework.secure.handler.SessionCheckHandler.handle(SessionCheckHandler.java:91) at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:365) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745)
噢,试出来了,是当时你帮忙调试EL表达式属性丢失问题的单独修改包的问题
换回官方的包,就没这个问题了
@JFinal
这里有完美解决方案: http://www.oschina.net/question/559699_220832版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。