Restlet and Expect: 100-continue

2013-05-29 Thread Daniel Halperin
? Thanks Dan On Mon, Mar 4, 2013 at 7:16 PM, Daniel Halperin dhalp...@cs.washington.eduwrote: Hey, I found the problem in my logs (compared with wget) and then, on the Internet (http://curl.haxx.se/mail/lib-2008-02/0048.html) Curl automatically uses a Expect: 100-continue header when sending

Re: catching JSON parse errors

2013-04-30 Thread Daniel Halperin
Hi Jon, In method 1, there is a need for input validation, as you say... but when there is input provided and there are parse errors, the handler simply gets a *null* argument and is not able to catch the exception. In method 2, the exception describes the parse error---which I want to feed back

catching JSON parse errors

2013-04-29 Thread Daniel Halperin
Hi, I have a resource that takes a POST request with JSON payload. Let's say it takes an *int[]*, and for our purposes simply returns it. There are (at least) two ways to do this: (1) Accept an *int[]*, letting Jackson auto-deserialize it. For echoing, return the deserialized array. @POST

Re: RESTlet + JSON performance flip at ~1024/1025 byte payload?

2013-03-04 Thread Daniel Halperin
org.restlet.jee:org.restlet:${restletVersion} compile org.restlet.jee:org.restlet.ext.jackson:${restletVersion} compile org.restlet.jee:org.restlet.ext.jaxrs:${restletVersion} } I think that means this demo uses uses the org.restlet.jar ones. Thanks, Dan On Fri, Feb 15, 2013 at 2:58 PM, Daniel Halperin

Re: RESTlet + JSON performance flip at ~1024/1025 byte payload?

2013-03-04 Thread Daniel Halperin
Followup: the bug persists with the newer 2.1.2 release. Dan On Mon, Mar 4, 2013 at 5:23 PM, Daniel Halperin dhalp...@cs.washington.eduwrote: Hi Jerome, Sorry for not responding until now -- I am not signed up for the mailing list (about to rectify this) and I never saw your answer

Re: RESTlet + JSON performance flip at ~1024/1025 byte payload?

2013-03-04 Thread Daniel Halperin
, but I hope this is useful! Thanks, Dan On Mon, Mar 4, 2013 at 5:29 PM, Daniel Halperin dhalp...@cs.washington.eduwrote: Followup: the bug persists with the newer 2.1.2 release. Dan On Mon, Mar 4, 2013 at 5:23 PM, Daniel Halperin dhalp...@cs.washington.edu wrote: Hi Jerome, Sorry

RESTlet + JSON performance flip at ~1024/1025 byte payload?

2013-02-15 Thread Daniel Halperin
Hi everyone, I'm having some crazy timing properties related to RESTlet responses being above or below 1024 bytes. The fact that this is a power of 2 makes me think it's no coincidence! [To start, here is some setup text copied from my previous mail.] I'm just getting started with RESTlet

Re: RESTlet + JSON performance flip at ~1024/1025 byte payload?

2013-02-15 Thread Daniel Halperin
Hi everyone, Just a note that I created a clean, minimal test example here: https://github.com/dhalperi/restlet-testing Thanks, Dan On Fri, Feb 15, 2013 at 10:20 AM, Daniel Halperin dhalp...@cs.washington.edu wrote: Hi everyone, I'm having some crazy timing properties related to RESTlet

Re: internal NPE exception while handling 415 response

2013-02-13 Thread Daniel Halperin
writing the outbound entities. Thanks, Jerome -- http://restlet.com http://twitter.com/#!/jlouvel 2013/1/31 Daniel Halperin dhalp...@cs.washington.edu Hi everyone, I'm just getting started with RESTlet (v.2.1.1, with org.restlet.jee.ext.jackson jee.ext.jaxrs), so I may be doing

internal NPE exception while handling 415 response

2013-01-30 Thread Daniel Halperin
Hi everyone, I'm just getting started with RESTlet (v.2.1.1, with org.restlet.jee.ext.jackson jee.ext.jaxrs), so I may be doing something very wrong. However, basic things work well for me. For instance, if I return POJOs from a function annotated with @Produces(MediaType.APPLICATION_JSON), they