|
From: Kopylenko, D. <dko...@ac...> - 2003-05-09 14:58:20
|
Juergen, Rod, after getting the latest sources this morning and trying it out, the transaction infrastructure does not work anymore. It throws an exception whenever the code tries to use the transaction (using TransactionInterceptor). The same code works perfectly with the previous version of Spring's code. Juergen, I've noticed that you've done some refactorings in the transaction packages and also you've changed the TransactionInterceptor. Could you please tell me what might be causing the problem. Here is the partial stack trace: 2003-05-09 10:45:34,658 INFO [TransactionInterceptor] Creating transaction for method 'addProgramInquiry' 2003-05-09 10:45:34,738 ERROR [TransactionInterceptor] ROLLING BACK transaction on method 'addProgramInquiry' due to throwable: DataSource org.jboss.resource.adapter.jdbc.WrapperDataSource@633d51; nested exception is: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: Could not register synchronization with tx: javax.transaction.RollbackException: Already marked for rollback; - nested throwable: (javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: Could not register synchronization with tx: javax.transaction.RollbackException: Already marked for rollback) 2003-05-09 10:45:34,738 ERROR [ControllerServlet] Unexpected runtime exception com.interface21.jdbc.datasource.CannotGetJdbcConnectionException: DataSource org.jboss.resource.adapter.jdbc.WrapperDataSource@633d51; nested exception is: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: Could not register synchronization with tx: javax.transaction.RollbackException: Already marked for rollback; - nested throwable: (javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: Could not register synchronization with tx: javax.transaction.RollbackException: Already marked for rollback) org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: Could not register synchronization with tx: javax.transaction.RollbackException: Already marked for rollback; - nested throwable: (javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException: Could not register synchronization with tx: javax.transaction.RollbackException: Already marked for rollback) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataS ource.java:106) at com.interface21.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtil s.java:98) at com.interface21.jdbc.core.SQLExceptionTranslaterFactory.getDefaultTranslater (SQLExceptionTranslaterFactory.java:109) at com.interface21.jdbc.core.JdbcTemplate.setDataSource(JdbcTemplate.java:153) at com.interface21.jdbc.core.JdbcTemplate.<init>(JdbcTemplate.java:127) at com.interface21.jdbc.object.SqlOperation.compileInternal(SqlOperation.java:7 9) at com.interface21.jdbc.object.RdbmsOperation.compile(RdbmsOperation.java:208) ............................................................................ ........... Thanks, Dmitriy. |