在对抗这个错误的一段时间之后:
Caused by HibernateException: No Session found for current thread
->> 102 | doCall in org.grails.datastore.gorm.GormStaticApi$_methodMissing_closure2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 73 | isPermitted in sie.DbRealm
| 237 | isPermitted . . . . in org.apache.shiro.grails.RealmWrapper
| 59 | isPermitted in org.apache.shiro.grails.RealmAdapter
| 223 | isPermitted . . . . in org.apache.shiro.authz.ModularRealmAuthorizer
| 113 | isPermitted in org.apache.shiro.mgt.AuthorizingSecurityManager
| 158 | isPermitted . . . . in org.apache.shiro.subject.support.DelegatingSubject
| 470 | accessControlMethod in ShiroGrailsPlugin
| 234 | doCall . . . . . . in ShiroGrailsPlugin$_closure3$_closure24
| 15 | doCall in sie.SecurityFilters$_closure1$_closure2$_closure3
| 189 | doFilter . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
| 449 | executeChain . . . in org.apache.shiro.web.servlet.AbstractShiroFilter
| 365 | call in org.apache.shiro.web.servlet.AbstractShiroFilter$1
| 90 | doCall . . . . . . in org.apache.shiro.subject.support.SubjectCallable
| 83 | call in ''
| 383 | execute . . . . . . in org.apache.shiro.subject.support.DelegatingSubject
| 362 | doFilterInternal in org.apache.shiro.web.servlet.AbstractShiroFilter
| 125 | doFilter . . . . . in org.apache.shiro.web.servlet.OncePerRequestFilter
| 1142 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 617 | run . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
我已经得出结论shiro和webflow是不兼容的。我使用的是grails 2.5.0。有什么建议可以解决这个问题吗?