Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 0.6-RC1
-
Fix Version/s: 0.6
-
Component/s: Persistence
-
Labels:None
-
Testcase included:yes
Description
When code in BootStrap calls save() method on domain object exception is thrown:
java.lang.IllegalStateException: No thread-bound request found
(see full stacktrace in attachment)
It seems like this problem is related to Rev.5317 or Rev.5318 since before these commits everything worked just fine.
My Author class:
class Author {
String name
}
My BootStrap:
class BootStrap {
def init = { servletContext ->
def author = new Author(name:"Test")
author.save(true)
}
def destroy = {
}
}
Issue Links
- is duplicated by
-
GRAILS-1543
Grails HEAD rev 5318 changes prevent saving/validating domain objects from bootstrap
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Bulk closing bunch of resolved issues