]
Galder Zamarreño updated ISPN-8890:
-----------------------------------
Fix Version/s: 9.4.0.Final
(was: 9.3.0.Final)
TransactionXaAdapter does not implement Geronimo's
NamedXaResource
------------------------------------------------------------------
Key: ISPN-8890
URL:
https://issues.jboss.org/browse/ISPN-8890
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.2.0.CR2
Reporter: Dan Berindei
Fix For: 9.4.0.Final
Geronimo uses its own interface for logging transaction resources, {{NamedXAResource}}.
Our {{TransactionXaAdapter}} doesn't implement it, so this error is logged for each
transaction in Karaf:
{noformat}
2018-02-28T09:49:05,931 | ERROR | testng-TransactionsSpanningReplicatedCachesTest-9 |
Transaction | 68 - org.apache.aries.transaction.manager - 1.3.3 |
Please correct the integration and supply a NamedXAResource
java.lang.IllegalStateException: Cannot log transactions as
TransactionXaAdapter{localTransaction=LocalXaTransaction{xid=[Xid:globalId=ffffff96ffffff9561ffffffdb611006f72672e6170616368652e61726965732e7472616e73616374696f6e0000000000000000000000000000,length=64,branchId=1000ffffff84ffffff9561ffffffdb611006170616368652e61726965732e7472616e73616374696f6e0000000000000000000000000000,length=64]}
LocalTransaction{remoteLockedNodes=[TransactionsSpanningReplicatedCachesTest-NodeS-28818,
TransactionsSpanningReplicatedCachesTest-NodeT-4724], isMarkedForRollback=false,
lockedKeys=[], backupKeyLocks=[a], topologyId=5, stateTransferFlag=null}
org.infinispan.transaction.xa.LocalXaTransaction@1f} is not a NamedXAResource.
at
org.apache.geronimo.transaction.manager.TransactionImpl$TransactionBranch.getResourceName(TransactionImpl.java:781)
~[?:?]
at org.apache.geronimo.transaction.log.HOWLLog.prepare(HOWLLog.java:287) ~[?:?]
at
org.apache.geronimo.transaction.manager.TransactionImpl.internalPrepare(TransactionImpl.java:467)
~[?:?]
at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:312)
~[?:?]
at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252)
~[?:?]
at Proxy325c2276_ef50_4396_9e7d_5deaa002f72c.commit(Unknown Source) ~[?:?]
at
org.infinispan.tx.TransactionsSpanningReplicatedCachesTest.runTest(TransactionsSpanningReplicatedCachesTest.java:260)
~[?:?]
at
org.infinispan.tx.TransactionsSpanningReplicatedCachesTest.testDefaultCacheAndNamedCacheSameNode(TransactionsSpanningReplicatedCachesTest.java:240)
~[?:?]
at
org.infinispan.it.osgi.tx.TransactionsSpanningReplicatedCachesTest.testDefaultCacheAndNamedCacheSameNode(TransactionsSpanningReplicatedCachesTest.java:91)
~[?:?]
{noformat}