• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

J2CA0026E - Transaction Rollback Exception

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am getting the following error logged in the SystemOut.log file.

[12/04/08 15:45:51:229 GMT] 00000071 XATransaction E J2CA0026E: Method addSync caught javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Inlined Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java(Compiled Code))
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.icm.ci.Datastore$DataSource.getConnection(Datastore.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl$ConnectionWrapper.getConnection(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl.removeExpiredIndexClaims(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.state(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer(Janitor.java(Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.cleanupLibraryServer(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.access$000(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService$Notifiee.onEvent(JanitorService.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.runActivity(ActivityImpl.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.run(ActivityImpl.java(Compiled Code))
at com.ibm.hrl.workmanager.RunnableWrapper.run(RunnableWrapper.java:44)
at com.ibm.hrl.workmanager.impl.was.WasWork.run(WasWork.java:75)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:258)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at javax.security.auth.Subject.doAs(Subject.java:477)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
at com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java:325)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:709)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:218)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:154)
at java.lang.Thread.run(Thread.java:570)
while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException.
[12/04/08 15:45:51:247 GMT] 00000071 JCRCFLLoggerI E com.ibm.icm.ts.tss.JCRCFLLoggerImpl com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims [java.lang.ThreadGroup[name=icmciWorkManager: icmjcrear,maxpri=10]]: Error removing expired index claims from the database. java.sql.SQLException: ConnectionWrapper.getConnection()
at com.ibm.icm.ts.tss.ls.BaseDBImpl$ConnectionWrapper.getConnection(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl.removeExpiredIndexClaims(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.state(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer(Janitor.java(Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.cleanupLibraryServer(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.access$000(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService$Notifiee.onEvent(JanitorService.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.runActivity(ActivityImpl.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.run(ActivityImpl.java(Compiled Code))
at com.ibm.hrl.workmanager.RunnableWrapper.run(RunnableWrapper.java:44)
at com.ibm.hrl.workmanager.impl.was.WasWork.run(WasWork.java:75)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:258)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at javax.security.auth.Subject.doAs(Subject.java:477)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
at com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java:325)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:709)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:218)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:154)
at java.lang.Thread.run(Thread.java:570)
Caused by: java.sql.SQLException: addSync: caught Exception
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.icm.ci.Datastore$DataSource.getConnection(Datastore.java(Compiled Code))
... 24 more
Caused by: javax.resource.ResourceException: addSync: caught Exception
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
... 27 more
Caused by: javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Inlined Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java(Compiled Code))
... 31 more

[12/04/08 15:45:51:258 GMT] 00000071 JCRCFLLoggerI E com.ibm.icm.ts.tss.JCRCFLLoggerImpl com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer [java.lang.ThreadGroup[name=icmciWorkManager: icmjcrear,maxpri=10]]: Error getting the library server. com.ibm.icm.ts.tss.ls.DatabaseException: Error removing expired index claims from the database.
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.removeExpiredIndexClaims(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.LibraryServerImpl.state(LibraryServerImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.app.Janitor.cleanupLibraryServer(Janitor.java(Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.cleanupLibraryServer(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService.access$000(JanitorService.java(Inlined Compiled Code))
at com.ibm.icm.ts.tss.app.JanitorService$Notifiee.onEvent(JanitorService.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.runActivity(ActivityImpl.java(Compiled Code))
at com.ibm.icm.ts.act.ActivityImpl$ManagerImpl$ActivityRunner.run(ActivityImpl.java(Compiled Code))
at com.ibm.hrl.workmanager.RunnableWrapper.run(RunnableWrapper.java:44)
at com.ibm.hrl.workmanager.impl.was.WasWork.run(WasWork.java:75)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:258)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at javax.security.auth.Subject.doAs(Subject.java:477)
at com.ibm.websphere.security.auth.WSSubject.doAs(WSSubject.java:118)
at com.ibm.ws.asynchbeans.J2EEContext$DoAsProxy.run(J2EEContext.java:325)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:709)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:218)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:154)
at java.lang.Thread.run(Thread.java:570)
Caused by: java.sql.SQLException: ConnectionWrapper.getConnection()
at com.ibm.icm.ts.tss.ls.BaseDBImpl$ConnectionWrapper.getConnection(BaseDBImpl.java(Compiled Code))
at com.ibm.icm.ts.tss.ls.BaseDBImpl.removeExpiredIndexClaims(BaseDBImpl.java(Compiled Code))
... 22 more
Caused by: java.sql.SQLException: addSync: caught Exception
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.icm.ci.Datastore$DataSource.getConnection(Datastore.java(Compiled Code))
... 24 more
Caused by: javax.resource.ResourceException: addSync: caught Exception
at com.ibm.ejs.j2c.XATransactionWrapper.addSync(XATransactionWrapper.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.involveMCInTran(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
... 27 more
Caused by: javax.transaction.RollbackException: Transaction rolled back
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TransactionImpl.registerSynchronization(TransactionImpl.java(Inlined Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.registerSynchronization(TranManagerSet.java(Compiled Code))
... 31 more

I actually want to know when this error " while trying to register the Resource Adapter with the Synchronization Manager for the current transaction, and threw a ResourceException." will occur and what is the solution for resolving it..

Looking forward for help.

Thanks,
Shri Devi
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!