开发者社区> 问答> 正文

执行addELResolver报错问题?报错

@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)



求指导


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

    噢,试出来了,是当时你帮忙调试EL表达式属性丢失问题的单独修改包的问题

    换回官方的包,就没这个问题了

    @JFinal

    这里有完美解决方案: http://www.oschina.net/question/559699_220832
    2020-06-14 19:02:47
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载