net.sf.ehcache.transaction.TransactionException

Invalid JTA transaction context, cache was first used in transaction [java.lang.ThreadLocal@2b4c2b4c] but is now used in transaction [net.sf.ehcache.transaction.manager.WebsphereTransactionManagerLookup$WebsphereTransactionManager$WebsphereTransaction@67546754].

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web10

  • via terracotta.org by Unknown author, 1 year ago
    Invalid JTA transaction context, cache was first used in transaction [java.lang.ThreadLocal@2b4c2b4c] but is now used in transaction [net.sf.ehcache.transaction.manager.WebsphereTransactionManagerLookup$WebsphereTransactionManager$WebsphereTransaction@67546754].
  • via Terracotta by kelkarp, 11 months ago
    Invalid JTA transaction context, cache was first used in transaction [java.lang.ThreadLocal@2b4c2b4c] but is now used in transaction [net.sf.ehcache.transaction.manager.WebsphereTransactionManagerLookup$WebsphereTransactionManager$WebsphereTransaction@67546754].
  • no JTA transaction context started, xa caches cannot be used outside of JTA transactions
  • Stack trace

    • net.sf.ehcache.transaction.TransactionException: Invalid JTA transaction context, cache was first used in transaction [java.lang.ThreadLocal@2b4c2b4c] but is now used in transaction [net.sf.ehcache.transaction.manager.WebsphereTransactionManagerLookup$WebsphereTransactionManager$WebsphereTransaction@67546754]. at net.sf.ehcache.transaction.local.JtaLocalTransactionStore.registerInJtaContext(JtaLocalTransactionStore.java:100) at net.sf.ehcache.transaction.local.JtaLocalTransactionStore.put(JtaLocalTransactionStore.java:266) at net.sf.ehcache.Cache.putInternal(Cache.java:1426) at net.sf.ehcache.Cache.put(Cache.java:1359) at net.sf.ehcache.Cache.put(Cache.java:1331)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.