--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d32d02e8-f903-4dd0-88ac-bcb21c40ddbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Try render as JSON
On Tue, Dec 4, 2018 at 5:32 PM Joud <joud.k...@gmail.com> wrote:
Hi all,--I'm upgrading from grails 2 to grails 3.3.8, in my code I have to return something like "response as JSON" but this is giving the following error:ERROR - org.grails.web.converters.exceptions.ConverterException: Error converting Bean with class org.grails.validation.ConstrainedDelegatejava.lang.RuntimeException: org.grails.web.converters.exceptions.ConverterException: Error converting Bean with class org.grails.validation.ConstrainedDelegateAnybody knows what could be the reason?Thanks in advance
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d32d02e8-f903-4dd0-88ac-bcb21c40ddbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Joud,Grails 2 to Grails 3.3.8 is a big jump.I would guess that the object your trying to convert to JSON is failing validation somehow as grails tries and fails to marshall the object into JSON.You could manually create the JSON with JSONBuilder and only take out the objects properties one by one to see which one is failing.Option 2Custom JSON marshaller,something likeI recommend you put your question up on the Grails Slack channel, you will get a faster response.Regards,Daniel Leahy.
On Tue, Dec 4, 2018 at 12:02 PM Joud <joud.k...@gmail.com> wrote:
Hi all,--I'm upgrading from grails 2 to grails 3.3.8, in my code I have to return something like "response as JSON" but this is giving the following error:ERROR - org.grails.web.converters.exceptions.ConverterException: Error converting Bean with class org.grails.validation.ConstrainedDelegatejava.lang.RuntimeException: org.grails.web.converters.exceptions.ConverterException: Error converting Bean with class org.grails.validation.ConstrainedDelegateAnybody knows what could be the reason?Thanks in advance
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
Thanks you, I will post it in grails slack first to see if someone had the same problem before.
On Tuesday, December 4, 2018 at 1:19:17 PM UTC+1, Daniel Leahy wrote:
Hi Joud,Grails 2 to Grails 3.3.8 is a big jump.I would guess that the object your trying to convert to JSON is failing validation somehow as grails tries and fails to marshall the object into JSON.You could manually create the JSON with JSONBuilder and only take out the objects properties one by one to see which one is failing.Option 2Custom JSON marshaller,something likeI recommend you put your question up on the Grails Slack channel, you will get a faster response.Regards,Daniel Leahy.
On Tue, Dec 4, 2018 at 12:02 PM Joud <joud.k...@gmail.com> wrote:
Hi all,--I'm upgrading from grails 2 to grails 3.3.8, in my code I have to return something like "response as JSON" but this is giving the following error:ERROR - org.grails.web.converters.exceptions.ConverterException: Error converting Bean with class org.grails.validation.ConstrainedDelegatejava.lang.RuntimeException: org.grails.web.converters.exceptions.ConverterException: Error converting Bean with class org.grails.validation.ConstrainedDelegateAnybody knows what could be the reason?Thanks in advance
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d32d02e8-f903-4dd0-88ac-bcb21c40ddbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/edba6e29-e2f3-4831-9332-8a89d0473069%40googlegroups.com.