java.lang.IllegalStateException:PWC2778:getAttribute:会话已经失效

时间:2015-07-02 23:17:18

标签: spring hibernate session glassfish illegalstateexception

现有几个帖子重新调整了会话失效的问题。但在我使用Glassfish 3.1.2.2,Spring 3.2.5.RELEASE和Hibernate 4.2.7.Final的情况下,我无法从中得到很多。

有时会在glassfish服务器日志中显示错误:

java.lang.IllegalStateException:PWC2778:getAttribute:会话已经失效     在org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1226)     在org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:152)     在org.springframework.security.web.savedrequest.HttpSessionRequestCache.getRequest(HttpSessionRequestCache.java:52)     在org.springframework.security.web.savedrequest.HttpSessionRequestCache.getMatchingRequest(HttpSessionRequestCache.java:68)     在org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:42)     在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)     在org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)     在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)     在org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)     在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)     在org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)     在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)     在org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)     在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)     在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)     在org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)     在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:342)     在org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)     在org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)     在org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)     在org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)     在org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)     在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

我试过调试但没有运气。关于这种情况如何发生以及可能是什么原因的任何提示?

非常感谢您的帮助,Jing

0 个答案:

没有答案