Coherence Throws Error: Cannot Use an EntityTransaction While Using JTA (Doc ID 2253475.1)

Last updated on APRIL 10, 2017

Applies to:

Oracle Coherence - Version 12.2.1.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

On : 12.2.1.0.0 version, Oracle Coherence

Coherence is setup as L2 cache and is unable to update the database. Below errors are thrown repeatedly in the logs

ERROR
-----------------------

(thread=WriteBehindThread:CacheStoreWrapper(com.tangosol.coherence.jpa.JpaCacheStore):rm:JpaDistributedCache:Hotlist, member=1): Failed to store key="120103">
(thread=WriteBehindThread:CacheStoreWrapper(com.tangosol.coherence.jpa.JpaCacheStore):rm:JpaDistributedCache:Hotlist, member=1): java.lang.IllegalStateException:
Exception Description: Cannot use an EntityTransaction while using JTA.
  at org.eclipse.persistence.internal.jpa.transaction.JTATransactionWrapper.getTransaction(JTATransactionWrapper.java:73)
  at org.eclipse.persistence.internal.jpa.EntityManagerImpl.getTransaction(EntityManagerImpl.java:1322)
  at com.tangosol.coherence.jpa.JpaCacheStore.store(JpaCacheStore.java:73)
  at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.storeInternal(ReadWriteBackingMap.java:5997)
  at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5075)
  at com.tangosol.net.cache.ReadWriteBackingMap$WriteThread.run(ReadWriteBackingMap.java:4481)
  at com.tangosol.util.Daemon$DaemonWorker.run(Daemon.java:806)
  at java.lang.Thread.run(Thread.java:745)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms