RE: catching JSON parse errors

2013-04-30 Thread Jon Sawyer
So, I may be missing the obvious, but if the method's precondition is that it receives an int[], shouldn't you be doing input validation anyway? if (userData instanceof int[] ((int[]) userData.length 0) { return userData; } else { getResponse().setStatus(Status.BAD_REQUEST); } Or are

RE: Intermittent Communication Error (1001) with Restlet 2.1.1

2013-04-12 Thread Jon Sawyer
No, I have not. My work has taken me away from my task on which this problem occurs, but it still exists. Any comments from the Restlet folks? Any hints on how to diagnose this further? What additional information could we post to help you help us?

@Post et. al. need Javadoc updates

2013-03-09 Thread Jon Sawyer
It appears that the ability to do @Post(?queryparam) has not been added to the Javadoc for the annotations. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3050702

RE: Re: @Post not handling multiple variants properly?

2013-02-26 Thread Jon Sawyer
Thank you, Thierry. I added a comment to the ticket describing my workaround (though it's probably obvious). -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3049873

RE: Intermittent Communication Error (1001) with Restlet 2.1.1

2013-02-26 Thread Jon Sawyer
Any ideas on this? I have not seen this when running against appspot.com, only the development server. Is the dev server running out of some resource, such as sockets? I am opening 8 simultaneous ClientResource instances in the client app, although it is single threaded (only one request

Intermittent Communication Error (1001) with Restlet 2.1.1

2013-02-12 Thread Jon Sawyer
I'm seeing the following stack trace from my Restlet 2.1.1 client application when talking to my Restlet 2.1.1 server running on the GAE SDK development server. It is intermittent (sometimes the client app runs to completion), and happens on different calls. Exception in thread main

RE: Re: Problem with CookieAuthenticator

2012-11-11 Thread Jon Sawyer
Oh, drat. Sorry for the confusion, but I meant to write ... and have NOT been able to get CookieAuthenticator to work. Sorry if I got anyone's hopes up... Jon -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3027643

RE: Problem with CookieAuthenticator

2012-11-08 Thread Jon Sawyer
I am having the same problem as the original poster, and have been able to get CookieAuthenticator to work. Has this problem been solved? It sounds like the implementation may be incomplete. --

RE: NPE when using WADL extension auto transform to HTML feature

2012-10-26 Thread Jon Sawyer
I'm having this same issue: just trying to retrieve url/method=OPTIONS on my WadlApplication derivative gives the following: SEVERE: An exception occured writing the response entity java.lang.NullPointerException at