IllegalStateException after multiple remote SFSB invocations

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.0.4
    • Multiple invocation from server(SLSB)->server(SFSB)

Issue

  • Multiple invocations of a StatefulSessionBean will end in an infinispan exception if the invocation is from server(SLSB)->server(SFSB).
    • Test Case:
      • Standalone client contains a loop which invokes the SLSB.
      • The SLSB simply invokes the SFSB on another (clustered)server. The invocation is sticky. The call fails after 32 invocations
      • If a standalone client invokes the SFSB directly it works correctly
  • We are testing the following scenario:
    • VM1: Domain Controller (DC), Host Controller (HC) and Server-1, Standalone server
    • VM2: 2nd HC and Server-2
    • VM3: Java standalone client
    • Test case: standalone Java client -> stateless SessionBean (SLSB) in standalone EAP -> stateful clustered SessionBean (SFSB) in a 2-server domain
    • The round trip works well 15 times. Strangely, during the 16th call from the client (regardless of which of the two servers is used), the following exception is reported back to the standalone EAP and the client
2017-03-24 09:52:06,361 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-14) ISPN000136: Error executing command GetKeyValueCommand, writing keys []: java.lang.IllegalStateException: Transaction DummyTransaction{xid=DummyXid{id=8}, status=3} is not in a valid state to be invoking cache operations on.
        at org.infinispan.interceptors.TxInterceptor.enlist(TxInterceptor.java:394)
        at org.infinispan.interceptors.TxInterceptor.enlistIfNeeded(TxInterceptor.java:350)

Resolution

This was a known issue Content from issues.jboss.org is not included.JBEAP-10843 Upgrade to EAP 7.0.7 or later for the fix.

Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.