Details
Description
There is a problem with the transaction management in Grails 1.1.1
Transactions wont get started as you can see in the example app that i have attached.
Start the app with 'run-app' and invoke url 'http://localhost:8080/faultyTxMngt/blah/index'
This problem was introducted with Grails 1.1.1. The example is working with the previous version 1.1
As workaround it is possible to use the withTransaction method (http://grails.org/doc/1.1.x/ref/Domain%20Classes/withTransaction.html)
-
Hide
- faultyTxMngt-bug-report-03062009.zip
- 03/Jun/09 2:18 AM
- 15 kB
- Sven Lange
-
- grails-app/conf/BootStrap.groovy 0.1 kB
- grails-app/conf/Config.groovy 3 kB
- grails-app/conf/DataSource.groovy 0.6 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/.../BlahController.groovy 0.2 kB
- grails-app/i18n/messages.properties 3 kB
- grails-app/i18n/messages_de.properties 3 kB
- grails-app/i18n/messages_es.properties 3 kB
- grails-app/i18n/messages_fr.properties 2 kB
- grails-app/i18n/messages_it.properties 2 kB
- grails-app/i18n/messages_ja.properties 2 kB
- grails-app/i18n/messages_nl.properties 3 kB
- grails-app/.../messages_pt_BR.properties 3 kB
- grails-app/i18n/messages_ru.properties 4 kB
- grails-app/i18n/messages_th.properties 5 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/services/AaaaService.groovy 0.5 kB
- grails-app/services/BbbbService.groovy 0.5 kB
- grails-app/views/error.gsp 2 kB
- grails-app/views/index.gsp 0.9 kB
- grails-app/views/layouts/main.gsp 0.7 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Show
Markus Kramer
added a comment - I can confirm this bug.
Seems to be a super critical blocker!
Show
Graeme Rocher
added a comment - Fixed in Git head
Hide
Bob Tiernay
added a comment -
I think I also ran into this issue in 1.1.1, but I can't tell from the description here
The following is non-transactional for me:
class MemberService {
static transactional = true
def delete(Member member) {
member.delete(flush:true)
// ...
}
}
However, the following is transactional
:
class MemberService {
def delete(Member member) {
member.delete(flush:true)
// ...
}
}
Is this consistent with what the issue here? Or should I open a new jira?
Thanks
Show
Bob Tiernay
added a comment - I think I also ran into this issue in 1.1.1, but I can't tell from the description here
The following is non-transactional for me:
class MemberService {
static transactional = true
def delete(Member member) {
member.delete(flush: true )
// ...
}
}
However, the following is transactional
:
class MemberService {
def delete(Member member) {
member.delete(flush: true )
// ...
}
}
Is this consistent with what the issue here? Or should I open a new jira?
Thanks
Wow. I ran into it as well. Any chance this can be fixed soon?