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 a
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?
--
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=4447&dsMessageId=3050702
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 outsta
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=4447&dsMessageId=3049873
I have a Restlet ServerResource method annotated with @Post("multipart"). It
works fine that way. I change only the annotation to @Post("multipart|xml"),
and now I get "Unsupported Media Type - The server is refusing to service the
request because the entity of the request is in a format not sup
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" Communica
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=4447&dsMessageId=3027643
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.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForu
I'm having this same issue: just trying to retrieve /method=OPTIONS on my
WadlApplication derivative gives the following:
SEVERE: An exception occured writing the response entity
java.lang.NullPointerException
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java
10 matches
Mail list logo