Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 0.6-RC1
-
Fix Version/s: 0.6
-
Component/s: Persistence
-
Labels:None
-
Environment:Grails revision 5318
Java 1.6.0-b105
Ubuntu 7.04
Description
After building Grails HEAD at rev 5318, I can no longer call save() or validate() on domain objects created in BootStrap.init() [exception below]. If I roll back to rev 5317, all is well. That would seem to isolate the problem to changes in DomainClassGrailsPlugin.groovy.
javax.servlet.ServletException: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request? If you are actually operating within a web request and still receive this message,your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
Issue Links
- duplicates
-
GRAILS-1542
Exception while saving domain object from BootStrap.groovy
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits