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
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Graeme Rocher [ graemerocher ] | Sergey Nebolsin [ lataupe ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 0.6 [ 13679 ] | |
| Resolution | Duplicate [ 3 ] |
| Link |
This issue duplicates |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Workflow | jira [ 31344 ] | Grails [ 44243 ] |
| Workflow | Grails [ 44243 ] | Copy of Grails [ 51697 ] |
| Workflow | Copy of Grails [ 51697 ] | Grails [ 59107 ] |
| Workflow | Grails [ 59107 ] | Grails2 [ 66685 ] |
| Workflow | Grails2 [ 66685 ] | jira [ 73395 ] |
| Workflow | jira [ 73395 ] | Grails2 [ 82243 ] |
| Workflow | Grails2 [ 82243 ] | jira [ 90727 ] |
| Workflow | jira [ 90727 ] | Grails2 [ 98937 ] |
Duplicate of
GRAILS-1542