Hi All,



I am getting following exception while using XA transaction with Jackrabbit Resource Adapter installed on Websphere 6.1.




while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException.

30/07/08 13:32:13:247 IST 0000003c XATransaction E J2CA0026E: Method addSync caught java.lang.IllegalStateException: Transaction is inactive or prepared

at com.ibm.ws.Transaction.JTA.TransactionImpl.registe rSynchronization(TransactionI mpl.java:3545)

at com.ibm.ws.Transaction.JTA.TransactionImpl.registe rSynchronization(TransactionI mpl.java:3515)

at com.ibm.ws.Transaction.JTA.TranManagerSet.register Synchronization(TranManagerSe t.java:505)

at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATra nsactionWrapper.java:289)

at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW (ConnectionManager.java:1276)

at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran( ConnectionManager.java:1024)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnecti on(ConnectionManager.java:598 )

at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConn ection(WSJdbcDataSource.java: 431)

at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConn ection(WSJdbcDataSource.java: 400)

at org.apache.jackrabbit.core.persistence.bundle.util .ConnectionFactory.getConnect ion(ConnectionFactory.java:61)

at org.apache.jackrabbit.core.persistence.bundle.util .ConnectionRecoveryManager.se tupConnection(ConnectionRecoveryManager.java:328)

at org.apache.jackrabbit.core.persistence.bundle.util .ConnectionRecoveryManager.re establishConnection(ConnectionRecoveryManager.java :403)

at org.apache.jackrabbit.core.persistence.bundle.util .ConnectionRecoveryManager.ge tConnection(ConnectionRecoveryManager.java:157)

at org.apache.jackrabbit.core.persistence.bundle.Bund leDbPersistenceManager.store( BundleDbPersistenceManager.java:523)

at org.apache.jackrabbit.core.state.SharedItemStateMa nager$Update.end(SharedItemSt ateManager.java:704)

at org.apache.jackrabbit.core.state.XAItemStateManage r.commit(XAItemStateManager.j ava:164)

at org.apache.jackrabbit.core.TransactionContext.comm it(TransactionContext.java:18 9)

at org.apache.jackrabbit.core.XASessionImpl.commit(XA SessionImpl.java:339)

at org.apache.jackrabbit.jca.TransactionBoundXAResour ce.commit(TransactionBoundXAR esource.java:39)

at com.ibm.ejs.j2c.XATransactionWrapper.commit(XATran sactionWrapper.java:462)

at com.ibm.ws.Transaction.JTA.JTAXAResourceImpl.commi t_one_phase(JTAXAResourceImpl .java:306)

at com.ibm.ws.Transaction.JTA.RegisteredResources.flo wCommitOnePhase(RegisteredRes ources.java:2898)

at com.ibm.ws.Transaction.JTA.TransactionImpl.commitX AResources(TransactionImpl.ja va:2470)

at com.ibm.ws.Transaction.JTA.TransactionImpl.stage1C ommitProcessing(TransactionIm pl.java:1642)

at com.ibm.ws.Transaction.JTA.TransactionImpl.process Commit(TransactionImpl.java:1 602)

at com.ibm.ws.Transaction.JTA.TransactionImpl.commit( TransactionImpl.java:1537)

at com.ibm.ws.Transaction.JTA.TranManagerImpl.commit( TranManagerImpl.java:239)

at com.ibm.ws.Transaction.JTA.TranManagerSet.commit(T ranManagerSet.java:163)

at com.ibm.ws.Transaction.JTA.UserTransactionImpl.com mit(UserTransactionImpl.java: 292)

at org.springframework.transaction.jta.JtaTransaction Manager.doCommit(JtaTransacti onManager.java:1003)

at org.springframework.transaction.support.AbstractPl atformTransactionManager.proc essCommit(AbstractPlatformTransactionManager.java: 662)

at org.springframework.transaction.support.AbstractPl atformTransactionManager.comm it(AbstractPlatformTransactionManager.java:632)

at org.springframework.transaction.interceptor.Transa ctionAspectSupport.commitTran sactionAfterReturning(TransactionAspectSupport.jav a:319)

at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(Trans actionInterceptor.java:116)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(Reflective MethodInvocation.java:171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy. java:204)

at $Proxy48.getFolder(Unknown Source)

at sun.reflect.GeneratedMethodAccessor451.invoke(Unkn own Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtil s.java:301)

at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(Re flectiveMethodInvocation.java:182)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(Reflective MethodInvocation.java:149)

at org.springframework.aop.interceptor.ExposeInvocati onInterceptor.invoke(ExposeIn vocationInterceptor.java:89)

at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(Reflective MethodInvocation.java:171)

at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy. java:204)

at $Proxy48.getFolder(Unknown Source)


Any help is highly appreciated.



Thanks