IllegalStateException after multiple remote SFSB invocations

Solution Verified - Updated -

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)

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content