下载 - IllegalStateException:UT000021:会话已失效

时间:2017-05-18 10:44:19

标签: java spring-security wildfly undertow

即使可以从请求中获取会话,但似乎在下载InMemorySessionManager中无效。请找到日志:

IllegalStateException: UT000021: Session already invalidated
    at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:375)
    at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:365)
    at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:197)
    at org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler.logout(SecurityContextLogoutHandler.java:65)

我们是否可以在Spring SecurityContextLogoutHandler使会话无效之前重新检查下级会话是否无效?我不需要发生这种IllegalStateException。

0 个答案:

没有答案