EAP 7 throws IllegalMonitorStateException if session is invalidated after redirect

Solution Verified - Updated -

Issue

  • We see an exception like the following if a session is invalidated after a redirect:
Caused by: java.lang.IllegalMonitorStateException
    at java.util.concurrent.locks.StampedLock.unlock(StampedLock.java:609)
    at org.wildfly.clustering.web.undertow.session.DistributableSessionManager.lambda$getSessionCloseTask$1(DistributableSessionManager.java:103)
    at org.wildfly.clustering.web.undertow.session.DistributableSession.invalidate(DistributableSession.java:218)
    at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:198)

Environment

  • JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.