padcom/grails-json-rest-api — Issue #6: grails 2.0.0.RC1
Author: aeischeid
Created: 2011-11-08 21:38:53+00:00
State: open

New with this plugin so possible that I am missing something fundamental here.

I have a simple author and book classes.

class Author {
static expose = 'author'

String fname
String lname
Date dob

static hasMany = [books:Book]
static constraints = {
}
}

going to author/create page:

ERROR errors.GrailsExceptionResolver - NullPointerException occurred when processing request: [GET] /JsonApiTest/author/create
Stacktrace follows:
Message: null
Line | Method
->> 18 | doCall in org.grails.plugins.rest.JsonRestApiPropertyEditorRegistrar$_registerCustomEditors_closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 16 | registerCustomEditors in org.grails.plugins.rest.JsonRestApiPropertyEditorRegistrar
| 19 | create . . . . . . . in jsonapitest.AuthorController
| 26 | doFilter in org.grails.plugin.resource.DevModeSanityFilter
| 1110 | runWorker . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 679 | run . . . . . . . . . in java.lang.Thread