undertow-IllegalStateException:UT000021:会话已失效

问题描述 投票:2回答:1

即使可以从请求中获取会话,但在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使会话无效之前重新检查underwow会话是否无效?我需要不发生此IllegalStateException。

java spring-security wildfly undertow
1个回答
0
投票

有人解决了吗?我也有同样的问题

© www.soinside.com 2019 - 2024. All rights reserved.