java.lang.IllegalStateException: Cannot create a session after the response has been committed
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <g:isSelfProfile>: Cannot create a session after the response has been committed
升级到 Grails 2.3.0 GA 后,当我尝试访问视图中的session
变量(或仅调用${session == null}
)时,如果之前未创建会话(在控制器中),则会出现异常。