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

Pagination for objects with embedded variables causes an internal server error #154

Closed
kevintanhongann opened this issue Jan 10, 2018 · 0 comments
Assignees
Milestone

Comments

@kevintanhongann
Copy link

So basically I have an object that has an embedded object, and had done pagination as well, but I get this

Caused by: java.lang.StackOverflowError: null at grails.plugin.json.builder.DefaultJsonGenerator.getObjectProperties(DefaultJsonGenerator.java:246) at grails.plugin.json.builder.DefaultJsonGenerator.writeObject(DefaultJsonGenerator.java:240) at grails.plugin.json.builder.DefaultJsonGenerator.writeMapEntry(DefaultJsonGenerator.java:391) at grails.plugin.json.builder.DefaultJsonGenerator.writeMap(DefaultJsonGenerator.java:379) at grails.plugin.json.builder.DefaultJsonGenerator.writeObject(DefaultJsonGenerator.java:241) at grails.plugin.json.builder.DefaultJsonGenerator.writeMapEntry(DefaultJsonGenerator.java:391) at grails.plugin.json.builder.DefaultJsonGenerator.writeMap(DefaultJsonGenerator.java:379) at grails.plugin.json.builder.DefaultJsonGenerator.writeObject(DefaultJsonGenerator.java:241) at grails.plugin.json.builder.DefaultJsonGenerator.writeMapEntry(DefaultJsonGenerator.java:391) at grails.plugin.json.builder.DefaultJsonGenerator.writeMap(DefaultJsonGenerator.java:379) at grails.plugin.json.builder.DefaultJsonGenerator.writeObject(DefaultJsonGenerator.java:241) at grails.plugin.json.builder.DefaultJsonGenerator.writeMapEntry(DefaultJsonGenerator.java:391) at grails.plugin.json.builder.DefaultJsonGenerator.writeMap(DefaultJsonGenerator.java:379) at grails.plugin.json.builder.DefaultJsonGenerator.writeObject(DefaultJsonGenerator.java:241) at grails.plugin.json.builder.DefaultJsonGenerator.writeMapEntry(DefaultJsonGenerator.java:391) at grails.plugin.json.builder.DefaultJsonGenerator.writeMap(DefaultJsonGenerator.java:379) at grails.plugin.json.builder.DefaultJsonGenerator.writeObject(DefaultJsonGenerator.java:241)

troubleshoot-embedded-pagination.tar.gz

https://localhost:8080/person is the endpoint to trigger, and it produces the error as pasted above.

Please help.

@jameskleeh jameskleeh self-assigned this Jan 10, 2018
jameskleeh added a commit that referenced this issue Jan 10, 2018
@ilopmar ilopmar added this to the 1.2.7 milestone Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants