I’m having a problem in GWT 2.5. Whenever I call an async method on the remote service, I get a ‘The response could not be deserialized’ error. The async method returns a simple string. What causes the error is probably the size of the string: A method which returns a string of 70.000 characters fails, where a string with 60.000 characters does not.
My question is: does someone know how to deal with large return values in GWT? I guess I can always try to make this into a regular http servlet, but I would like to avoid that.
It’s a limitation of the JS Parser used in DevMode to decode RPC payloads, which thinks Java strings cannot be longer than 64K characters:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/dev/js/rhino/Parser.java#1420
Feel to file a bug report on GWT.