microee / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

java.lang.IllegalStateException: Cannot create a session after the response has been committed #82

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
rapid版本:3.9.3

使用的相关插件组合是:

按如下步骤重现错误:
1.request.getSession().invalidate()

期待的结果是:

java的error stack trace:
java.lang.IllegalStateException: Cannot create a session after the response has 
been committed

其它错误信息:

修改:
cn.org.rapid_framework.web.scope.Flash

public void save(HttpServletRequest request,HttpServletResponse response) {
        if(request.isRequestedSessionIdValid()){
request.getSession().setAttribute(FLASH_IN_SESSION_KEY, out);
        }
    }

Original issue reported on code.google.com by v64...@gmail.com on 11 Aug 2011 at 10:05