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

Cache get from TransactionCompleted throws IllegalStateException

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Workaround Exists
    • 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.

      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

              pruivo@redhat.com Pedro Ruivo
              rh-ee-galder Galder ZamarreƱo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: