I'm having a very difficult time trying to debug a Grails 2.2.0 application which uses Shiro (1.1.4, via the plugin). For some reason which is completely mysterious to me, whenever I call the following code, to log out the current user, I get an UnknownSessionException.
This is the stacktrace: Message: org.apache.shiro.session.UnknownSessionException: There is no session with id [74639e50-5928-4c31-b92a-ca582f49d4d4] Line | Method ->> 133 | getAttribute in org.apache.shiro.web.servlet.ShiroHttpSession - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 195 | doFilter in grails.plugin.cache.web.filter.PageFragmentCachingFilter | 63 | doFilter . . . . in grails.plugin.cache.web.filter.AbstractFilter | 55 | doFilter in org.apache.shiro.grails.SavedRequestFilter | 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 '' | 380 | 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 | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run . . . . . . in '' ^ 662 | run in java.lang.Thread Caused by UnknownSessionException: There is no session with id [74639e50-5928-4c31-b92a-ca582f49d4d4] ->> 170 | readSession in org.apache.shiro.session.mgt.eis.AbstractSessionDAO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 236 | retrieveSessionFromDataSource in org.apache.shiro.session.mgt.DefaultSessionManager | 222 | retrieveSession in '' | 118 | doGetSession in org.apache.shiro.session.mgt.AbstractValidatingSessionManager | 105 | lookupSession . in org.apache.shiro.session.mgt.AbstractNativeSessionManager | 109 | lookupRequiredSession in '' | 206 | getAttribute . . in '' | 141 | getAttribute in org.apache.shiro.session.mgt.DelegatingSession | 121 | getAttribute . . in org.apache.shiro.session.ProxiedSession | 131 | getAttribute in org.apache.shiro.web.servlet.ShiroHttpSession | 195 | doFilter . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter | 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter | 55 | doFilter . . . . in org.apache.shiro.grails.SavedRequestFilter | 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 '' | 380 | 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 | 886 | runTask . . . . in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 662 | run . . . . . . in java.lang.Thread The strangest thing is that in a newly created Grails 2.2.0 app, with apparently identical code, no such error is thrown. I cannot for the life of me work out where the difference might be. So, what kind of conditions might cause such an exception? -- View this message in context: http://shiro-user.582556.n2.nabble.com/What-might-cause-an-UnknownSessionException-tp7578179.html Sent from the Shiro User mailing list archive at Nabble.com.
