我们在Grails 2.5.6和JDK 8 / Tomcat 8上使用了grails数据库会话插件,但是在没有任何现有会话信息的情况下,经常收到以下请求:
19-06-21 21:04:38,033 [http-nio-8080-exec-2] ERROR servlet.GrailsDispatcherServlet - HandlerInterceptor.afterCompletion threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been committed
at grails.plugin.databasesession.SessionFilters$_closure1$_closure2$_closure3.doCall(SessionFilters.groovy:23)
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
at com.ngs.id.security.CompanyAuthenticationFilter.doFilter(CompanyAuthenticationFilter.groovy:26)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
任何建议将不胜感激。看起来很简单。
谢谢