On Wed, Aug 19, 2009 at 6:57 PM, Alex Coles <alex.co...@gmail.com> wrote: > > Apologies if this is a bit off-topic, but wanted to know if anyone > else out there living on the "edge" and has attempted upgrading their > app to the latest Spring Framework development release (3.0M4). > > Specifically, while upgrading from 2.5 to 3.0 was reasonably > straight-forward, upgrading from M3->M4 has caused me to hit upon a > couple new failures relating to transactions. > > For the UserManager methods (virtually unchanged from what > appfuse:full-source gives me): > - testGetUser > - testSaveUser > > I am hitting upon: > org.springframework.transaction.IllegalTransactionStateException: > Transaction is already completed - do not call commit or rollback more > than once per transaction
To answer my own issue: The only substantial change to transactions in 3.0M4 was the resolution of the following issue: http://jira.springframework.org/browse/SPR-3955 I don't know if changes there had anything to do with my above issue. However (by chance), I found that setting <tx:annotation-driven to aspectj mode makes my tests pass cleanly once again: <!-- Enable @Transactional support --> - <tx:annotation-driven/> + <tx:annotation-driven mode="aspectj"/> Alex --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net