0 Replies Latest reply on Oct 4, 2012 7:42 AM by Attila Csiz

    JBoss AS 7 with Coherence Resource Adapter

    Attila Csiz Newbie

      Hi Guys!

       

      I configured jboss as 7.1 final with oracle coherence resource adapter.

      Everything works fine, I can get a connection, and a cache joining the cluster, till I wan to make some cache iteractions.Then I get the following exception:

       

      12:57:01,450 WARN  [com.arjuna.ats.jta] (MSC service thread 1-3) ARJUNA016039: onePhaseCommit on < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffff0a1d0d95:-7601032a:506d6a92:e, node_name=1, branch_uid=0:ffff0a1d0d95:-7601032a:506d6a92:1d, subordinatenodename=null, eis_name=java:jboss/eis/CoherenceCacheFactory > (XAResourceWrapperImpl@1405448f[xaResource=com.tangosol.coherence.transaction.internal.xa.XAResourceImpl@7da833d4 pad=false overrideRmValue=false productName=Coherence productVersion=3.6 jndiName=java:jboss/eis/CoherenceCacheFactory]) failed with exception -: (Wrapped) java.io.IOException: (Wrapped) org.jboss.jca.core.tx.jbossts.XidWrapperImpl

          at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:215) [coherence.jar:3.7.1.4]

          at com.tangosol.net.partition.DefaultKeyPartitioningStrategy.calculateBasePartition(DefaultKeyPartitioningStrategy.java:90) [coherence.jar:3.7.1.4]

          at com.tangosol.net.partition.DefaultKeyPartitioningStrategy.calculateKeyPartition(DefaultKeyPartitioningStrategy.java:72) [coherence.jar:3.7.1.4]

          at com.tangosol.net.partition.DefaultKeyPartitioningStrategy.getKeyPartition(DefaultKeyPartitioningStrategy.java:42) [coherence.jar:3.7.1.4]

          at com.tangosol.coherence.transaction.internal.storage.StorageKeyPartitioningStrategy.getKeyPartition(StorageKeyPartitioningStrategy.java:33) [coherence.jar:3.7.1.4]

          at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService$ConverterKeyToBinary.convert(PartitionedService.CDB:88) [coherence.jar:3.7.1.4]

          at com.tangosol.util.ConverterCollections$ConverterMap.remove(ConverterCollections.java:1690) [coherence.jar:3.7.1.4]

          at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.remove(PartitionedCache.CDB:1) [coherence.jar:3.7.1.4]

          at com.tangosol.coherence.component.util.SafeNamedCache.remove(SafeNamedCache.CDB:1) [coherence.jar:3.7.1.4]

          at com.tangosol.coherence.transaction.internal.xa.XAResourceImpl.remove(XAResourceImpl.java:626) [coherence.jar:3.7.1.4]

          at com.tangosol.coherence.transaction.internal.xa.XAResourceImpl.commit(XAResourceImpl.java:162) [coherence.jar:3.7.1.4]

          at org.jboss.jca.core.tx.jbossts.XAResourceWrapperImpl.commit(XAResourceWrapperImpl.java:90)

          at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelOnePhaseCommit(XAResourceRecord.java:667)

          at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2283)

          at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1466)

          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:98)

          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)

          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)

          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)

          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:232) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

          at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      Caused by: java.io.IOException: (Wrapped) org.jboss.jca.core.tx.jbossts.XidWrapperImpl

          at com.tangosol.io.pof.ConfigurablePofContext.serialize(ConfigurablePofContext.java:351) [coherence.jar:3.7.1.4]

          at com.tangosol.util.ExternalizableHelper.serializeInternal(ExternalizableHelper.java:2597) [coherence.jar:3.7.1.4]

          at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:211) [coherence.jar:3.7.1.4]

          ... 39 more

      Caused by: (Wrapped) java.io.NotSerializableException: org.jboss.jca.core.tx.jbossts.XidWrapperImpl

          at com.tangosol.util.Base.ensureRuntimeException(Base.java:288) [coherence.jar:3.7.1.4]

          at com.tangosol.util.Base.ensureRuntimeException(Base.java:269) [coherence.jar:3.7.1.4]

          at com.tangosol.io.pof.PofBufferWriter.onException(PofBufferWriter.java:2319) [coherence.jar:3.7.1.4]

          at com.tangosol.io.pof.PofBufferWriter.writeUserType(PofBufferWriter.java:1690) [coherence.jar:3.7.1.4]

          at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1623) [coherence.jar:3.7.1.4]

          at com.tangosol.io.pof.ConfigurablePofContext.serialize(ConfigurablePofContext.java:345) [coherence.jar:3.7.1.4]

          ... 41 more

      Caused by: java.io.NotSerializableException: org.jboss.jca.core.tx.jbossts.XidWrapperImpl

          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) [rt.jar:1.6.0_31]

          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) [rt.jar:1.6.0_31]

          at com.tangosol.coherence.transaction.internal.xa.XidWrapper.writeExternal(XidWrapper.java:111) [coherence.jar:3.7.1.4]

          at com.tangosol.io.pof.PortableObjectSerializer.serialize(PortableObjectSerializer.java:88) [coherence.jar:3.7.1.4]

          at com.tangosol.io.pof.PofBufferWriter.writeUserType(PofBufferWriter.java:1682) [coherence.jar:3.7.1.4]

          ... 43 more

      What can be the problem?

      Thanks for the help.