[jboss-jira] [JBoss JIRA] (WFLY-5434) HttpSession invalidate() throws IllegalStateException: Transaction is not in a valid state

Mark Wardell (JIRA) issues at jboss.org
Wed Sep 30 13:18:00 EDT 2015


Mark Wardell created WFLY-5434:
----------------------------------

             Summary: 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
    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:

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)


(full stack trace attached)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list