net.sf.ehcache.transaction.TransactionException: JTA transaction not started

Terracotta | luddy | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Help with Configuring Write-Through Cachewriter with JTA / Bitronix

    Terracotta | 5 years ago | luddy
    net.sf.ehcache.transaction.TransactionException: JTA transaction not started

    Root Cause Analysis

    1. net.sf.ehcache.transaction.TransactionException

      JTA transaction not started

      at net.sf.ehcache.transaction.xa.XATransactionStore.getCurrentTransaction()
    2. Ehcache
      Cache.putWithWriter
      1. net.sf.ehcache.transaction.xa.XATransactionStore.getCurrentTransaction(XATransactionStore.java:99)
      2. net.sf.ehcache.transaction.xa.XATransactionStore.getOrCreateXAResource(XATransactionStore.java:110)
      3. net.sf.ehcache.transaction.xa.XATransactionStore.getOrCreateTransactionContext(XATransactionStore.java:151)
      4. net.sf.ehcache.transaction.xa.XATransactionStore.putWithWriter(XATransactionStore.java:424)
      5. net.sf.ehcache.Cache.putInternal(Cache.java:1484)
      6. net.sf.ehcache.Cache.putWithWriter(Cache.java:1442)
      6 frames
    3. com.anz.mosa
      Test.main
      1. com.anz.mosa.tradematcher.cache.Test.testTransaction(Test.java:78)
      2. com.anz.mosa.tradematcher.cache.Test.main(Test.java:64)
      2 frames