Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Data REST throws NPE when exposing JSON Schema for a Groovy domai object [DATAREST-754] #1125

spring-projects-issues opened this issue Jan 22, 2016 · 0 comments
type: bug


Copy link

@spring-projects-issues spring-projects-issues commented Jan 22, 2016

Greg Turnquist opened DATAREST-754 and commented

While looking up the JSON Schema for a Groovy domain object-based repository, Spring Data REST threw an NPE. It was trying to parse Groovy's "metaClass" attribute, which doesn't exist in a pure Java-based domain object definition.

Need to add groovy-all as a test dependency and then craft some Groovy-based test cases so we can then patch whatever is needed inside PersistentEntityToJsonSchemaConverter to make this work

Affects: 2.3.2 (Fowler SR2), 2.2.4 (Evans SR4), 2.4.2 (Gosling SR2)

Referenced from: pull request #206, and commits 7f261ab, b866af7, 12d08bf, 9fd62b5, 92765fc, 8149105, 18cc227

Backported to: 2.4.4 (Gosling SR4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
type: bug
None yet

No branches or pull requests

2 participants