I get I can not get synchronization. LocalTransactionCoordinator completes or ends the exception when my method integration is called from the portlet.
I am using spring transaction management to handle the entire hibernate transaction in the spring configuration file through AOP.
When I run my hibernate dao method to save data through Junit, it works fine.
Exception Description:
I ran into a problem that occurs when I run my code through unit test, case data is updated in the database properly, but when I run the same code with portlet integration, my code is executed accurately, but after the transaction is completed, the records are not updated in the database. In the magazine, which is
You can see the following error:
[4/7/10 23: 06: 38: 685 MDT] 0000006c LocalTranCoor E WLTC0014E: Cannot enlist Synchronization. LocalTransactionContainment is completing or completed.
[4/7/10 23: 06: 38: 689 MDT] 0000006c LocalTransact E J2CA0026E: Method addSync caught java.lang.IllegalStateException: Cannot enlist Synchronization. LocalTransactionCoordinator is completing or completed.
at com.ibm.ws.LocalTransaction.LocalTranCoordImpl.enlistSynchronization (LocalTranCoordImpl.java (Compiled Code))
at com.ibm.ejs.j2c.LocalTransactionWrapper.addSync (LocalTransactionWrapper.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.associateConnection (ConnectionManager.java (Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.associateConnection (ConnectionManager.java (Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.reactivate (WSJdbcConnection.java (Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getWarnings (WSJdbcConnection.java:1539)
source share