RestDispatcher can't handle null response (status code = 204)

100 views
Skip to first unread message

pandemorra

unread,
Jun 19, 2014, 3:39:52 PM6/19/14
to gwt-pl...@googlegroups.com
Hi All

I face some problem

com.gwtplatform.dispatch.rest.client.DefaultRestResponseDeserializer do not check if status code of response is 204, can't deserialize empty string and throw ActionException: "Unable to deserialize response. An unexpected error occurred."

I don't sure it is GWTP or Jackson issue, but I think it is GWTP

I don't find any solution in www, so... any suggestions? Is it real issue and I have to create one GitHub?

Locally I fix it by adding check for response code, but I don't think it is good fix

Olivier Lafleur

unread,
Jun 20, 2014, 9:31:06 AM6/20/14
to gwt-pl...@googlegroups.com
Could you give us a snippet of your code that could reproduce that problem?

It would really help to drill down if it is a GWTP issue.

pandemorra .

unread,
Jun 20, 2014, 11:43:56 AM6/20/14
to gwt-pl...@googlegroups.com
Dear Oliver

sample project is in attachment

to see my workaround uncomment 22th string in com.pandemorra.test.client.gin.ClientModule

thanks for response



--
You received this message because you are subscribed to a topic in the Google Groups "GWTP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gwt-platform/sZGiwrqloD8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

src.tar.gz

Christopher Viel

unread,
Jun 23, 2014, 12:48:38 PM6/23/14
to gwt-pl...@googlegroups.com

Please make sure the big is reproducible on the latest snapshot. I believe this is fixed in there.

You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.

pandemorra

unread,
Jun 24, 2014, 2:32:57 AM6/24/14
to gwt-pl...@googlegroups.com
Dear Christopher


closed
Reply all
Reply to author
Forward
0 new messages