Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2090

Cache get from TransactionCompleted throws IllegalStateException

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Several workarounds:

      1. Set the listener to be sync=false
      2. Within the listener impl, get the transaction manager and suspend the on-going transaction.

      Show
      Several workarounds: 1. Set the listener to be sync=false 2. Within the listener impl, get the transaction manager and suspend the on-going transaction.

      Description

      When implementing @TransactionCompleted in a sync listener, calling cache.get() even when event.isPre=false throws:

      IllegalStateException - ActionStatus.COMMITTED  is not in a valid state to be invoking cache operations on

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pruivo Pedro Ruivo
                  Reporter:
                  galder.zamarreno Galder ZamarreƱo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: