Ticket #84 (closed defect: fixed)
QueryTest and Co. are broken in TestNg.
| Reported by: | jmoore | Owned by: | jmoore |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.0-M2 |
| Component: | Deployment | Version: | 3.0-M1 |
| Keywords: | iteration2,testing | Cc: |
Description
All subclasses of the Spring transaction-managing test are broken with testng. The configuration of the context is somehow going amiss.
ome.conditions.InternalException: Wrapped Exception: (org.springframework.transaction.IllegalTransactionStateException): Pre-bound JDBC Connection found - HibernateTransactionManager does not support running within DataSourceTransactionManager if told to manage the DataSource itself. It is recommended to use a single HibernateTransactionManager for all transactions on a single DataSource, no matter whether Hibernate or JDBC access. at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:430) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:283) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:234) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:93)
Change History
Note: See
TracTickets for help on using
tickets.
