jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viz06 <vijaykumarsharma_1...@yahoo.com>
Subject Transaction issues using jackrabbit JCA with Websphere
Date Wed, 30 Jul 2008 12:43:44 GMT

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.registerSynchronization(TransactionImpl.java:3545)
        at
com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java:3515)
        at
com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java:505)
        at
com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.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.allocateConnection(ConnectionManager.java:598)
        at
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:431)
        at
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:400)
        at
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionFactory.getConnection(ConnectionFactory.java:61)
        at
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.setupConnection(ConnectionRecoveryManager.java:328)
        at
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.reestablishConnection(ConnectionRecoveryManager.java:403)
        at
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager.getConnection(ConnectionRecoveryManager.java:157)
        at
org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.store(BundleDbPersistenceManager.java:523)
        at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:704)
        at
org.apache.jackrabbit.core.state.XAItemStateManager.commit(XAItemStateManager.java:164)
        at
org.apache.jackrabbit.core.TransactionContext.commit(TransactionContext.java:189)
        at
org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:339)
        at
org.apache.jackrabbit.jca.TransactionBoundXAResource.commit(TransactionBoundXAResource.java:39)
        at
com.ibm.ejs.j2c.XATransactionWrapper.commit(XATransactionWrapper.java:462)
        at
com.ibm.ws.Transaction.JTA.JTAXAResourceImpl.commit_one_phase(JTAXAResourceImpl.java:306)
        at
com.ibm.ws.Transaction.JTA.RegisteredResources.flowCommitOnePhase(RegisteredResources.java:2898)
        at
com.ibm.ws.Transaction.JTA.TransactionImpl.commitXAResources(TransactionImpl.java:2470)
        at
com.ibm.ws.Transaction.JTA.TransactionImpl.stage1CommitProcessing(TransactionImpl.java:1642)
        at
com.ibm.ws.Transaction.JTA.TransactionImpl.processCommit(TransactionImpl.java:1602)
        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(TranManagerSet.java:163)
        at
com.ibm.ws.Transaction.JTA.UserTransactionImpl.commit(UserTransactionImpl.java:292)
        at
org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1003)
        at
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662)
        at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
        at
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:319)
        at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy48.getFolder(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor451.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy48.getFolder(Unknown Source)


Any help is highly appreciated.

Thanks

-- 
View this message in context: http://www.nabble.com/Transaction-issues-using-jackrabbit-JCA-with-Websphere-tp18732398p18732398.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message