gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 374 forks source link

rpc fails to work with chunked data #7241

Open dankurka opened 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 7244

Found in GWT Release: 2.4.0
Detailed description:

from time to time the gwt servlet returns response to the RPC call as chunked data,
in those cases the client can't handle it and fails

the same call may fail or not, and there is no specific condition, one can execute
the same call several times and an arbitrary number of times it will fail

Reported by aram.mkhitaryan on 2012-03-12 14:16:52

dankurka commented 9 years ago
https://groups.google.com/group/google-web-toolkit/browse_thread/thread/01f48aed91f35881?pli=1

Reported by aram.mkhitaryan on 2012-03-12 14:17:37

dankurka commented 9 years ago
Can you provide a simple example that we can take a look at?

Reported by dankurka@google.com on 2013-06-03 12:32:27

dankurka commented 9 years ago
Do you use JavaIO in your application? If yes, the problem may be related to 
http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues This may also apply to
jetty if it also re-uses some of the response management objects.
I had the same random chunked responses for an RPC when having another servlet directly
doing an ImageIO write to the response output stream:
ImageIO.write( bufferedImage, format, response.getOutputStream() );

Reported by lukas.mroz on 2014-03-24 06:29:20