]
Jason Greene updated WFLY-5434:
-------------------------------
Component/s: Clustering
HttpSession invalidate() throws IllegalStateException: Transaction is
not in a valid state
------------------------------------------------------------------------------------------
Key: WFLY-5434
URL:
https://issues.jboss.org/browse/WFLY-5434
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 10.0.0.CR2
Reporter: Mark Wardell
Assignee: Jason Greene
Attachments: exception.txt
Running standalone HA configuration with single sign on enabled in undertow
configuration
Two wars deployed each marked as distributable
If you login thought one war, then execute sesssion.invalidate() on the other you get the
following exception during the invalidate call:
{code}
08:55:46,441 ERROR [io.undertow.request] (default task-35) UT005023: Exception handling
request to /logoutwar/logout: java.lang.IllegalStateException: Transaction
DummyTransaction {xid=DummyXid{id=96}, status=3} is not in a valid state to be invoking
cache operations on.
at org.infinispan.interceptors.TxInterceptor.enlist(TxInterceptor.java:388)
at
org.infinispan.interceptors.TxInterceptor.enlistWriteAndInvokeNext(TxInterceptor.java:357)
at
org.infinispan.interceptors.TxInterceptor.visitRemoveCommand(TxInterceptor.java:230)
...
at
org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.remove(CoarseSessionFactory.java:66)
at
org.wildfly.clustering.web.infinispan.session.InfinispanSession.invalidate(InfinispanSession.java:68)
at
org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager$SchedulableSession.invalidate(InfinispanSessionManager.java:438)
at
org.wildfly.clustering.web.undertow.session.DistributableSession.invalidate(DistributableSession.java:176)
at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:199)
at wf10issue.logoutwar.LogoutServlet.doGet(LogoutServlet.java:27)
{code}
(full stack trace attached)