Hello Sean, could you precise the version of Restlet are you using?
Best regards, Thierry Boileau 2013/4/10 Sean Hogan <seanmho...@hotmail.com> > Hello all, > > My experience with Restlet to date has generally been pleasant; thanks for > that. > > I've been having a problem in some near-production code whereby the first > POST received by a restlet after the app starts up gets an empty form. The > second POST is fine. This is with the Servlet extension, running under > Tomcat. It also happens in GWT hosted mode (embedded Jetty). > > I've traced it into DefaultConverter.toObject where it creates a new Form > from the source, and gets an immediate EOF on the entity's input stream. > The Content-Type and Content-Length of the request are set properly and > the correct content in application/x-www-form-urlencoded format is > definitely present. > > Unfortunately I can't share the exact code but I've created and attached a > small, very similar sample that seems to show a similar problem. (Not > exactly the same in that the POSTed data never appears at all.) > > Could someone explain why the posted form in the attached sample is always > empty? Again this is in a servlet environment. > > Thanks very much, > Sean > --- > Sean Hogan > sean at compusult dot net > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3052946 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3053012