I was reading the wiki and found this text. It may help you:

http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-restlet/303-restlet.html

GAE doesn't support HTTP chunked encoding, therefore serialized object
> can't be sent (via POST or PUT) to a GAE server. In Restlet Framework
> version 2.1 M4 we have a workaround available that buffers the HTTP entity
> to prevent chunk encoding. To use it, call the
> ClientResource#setRequestEntityBuffering(boolean) method with a "true"
> value. Note that this workaround isn't required for the GWT edition.


I hope it helps you.

On Mon, Jul 2, 2012 at 11:31 AM, Stephen <[email protected]> wrote:

> Hi,
>
> Im' trying to get a DomRepresentation from a ClientResource. But I get the
> following error :
> "java.io.IOException: Invalid chunk size specified. End of stream reached
>         at
>
> org.restlet.engine.http.io.ChunkedInputStream.readChunkSizeLine(ChunkedInputStream.java:250)"
>
> When i'm doing :
>
> [CODE]
>
> [/CODE]
>
> The error is a bit odd because when I uncomment the line with
> System.out.println(b.getText()); the error immediately disapperars.
>
> I found similar error searching Google, but they say an IO bug has been
> fixed in Restlet 2.0.9 but I'm already using Restlet 2.0.10.
>
> Your faithfully,
>
> Steph0
>
> --
> View this message in context:
> http://restlet-discuss.1400322.n2.nabble.com/Invalid-chunk-size-specified-End-of-stream-reached-tp7578164.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2974407
>



-- 
Danilo Rosetto Muñoz
[email protected]
http://br.linkedin.com/in/danilomunoz

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2975720

Reply via email to