RE: Google AppEngine and Android problems

2011-02-02 Thread Joe Dec
The correct link to the issue : 
http://restlet.tigris.org/issues/show_bug.cgi?id=1219

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


RE: Google AppEngine and Android problems

2011-02-02 Thread Joe Dec
There is an open issue on that: 
http://restlet.tigri​s.org/ds/viewMessage​.do?dsForumId=4447​dsMessageId=26794​69

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


RE: parameter become null in server side?

2011-01-05 Thread Joe Dec
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2679469

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


RE: Post method not work when deployed to GAE

2011-01-02 Thread Joe Dec
Hi Orville,

I am not sure if all the links you provided are directly linked to the problem 
: no deserialization of JSON-Data on POST/PUT-Methods. But I might be wrong 
here.

Anyway : this issue will be looked into soon, hopefully: 
http://restlet.tigris.org/issues/show_bug.cgi?id=1219 - you might want to 
register yourself to the issue to receive updates.

Back to the issue: the bad thing is that there are no error messages on the GAE 
side. The data is just not deserialized (parameter == null) when originating 
from a restlet client (JSE and Android). This means that I cannot provide 
additional error information to the resolvers.

What I noticed also is that the JacksonConverter is not selected. If I curl a 
POST then the deserialization works and the Converter is resolved:

org.restlet.service.ConverterService toObject: The following converter was 
selected for the [application/json] representation: 
org.restlet.ext.jackson.jacksonconver...@...

With the restlet clients, to above converter selection output won't appear. 
When I compared the curl-Request and the restlet-Request, I noticed some 
differences in the HTTP-Headers. That might be a starting point for the devs.

Though, as Jerome pointed out - it's holiday time ... so we should be patient.

Cheers,
Joe

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


RE: Post method not work when deployed to GAE

2010-12-30 Thread Joe Dec
Hello,

I've tried Version 2.0.4 which has also this issue:

POSTing data to GAE does not work when using the resource.wrap method on the 
client side. On the GAE, the data object passed to the annotated @post-Method 
is always null. It works with a locally deployed version. Also, when I do a 
curl to the GAE, the JSON-Data from the command line is correctly deserialized.

I've purchased and red the book. Though, no clues on what goes wrong using the 
annotation-based and automated de/serialization mechanisms.

I am pretty much stuck right now and the only solution is to redesign my 
HTTP-Calls (using another scope and URL-parameters) to circumvent this issue.

Though, since I am still eager to go the way I've planned, I would still 
greatly appreciate comments on this.

Thanks
Joe

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


RE: Post method not work when deployed to GAE

2010-12-21 Thread Joe Dec
Are there any experiences on this? Is this issue reproducible?

Thanks,
Joe

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


RE: Post method not work when deployed to GAE

2010-12-20 Thread Joe Dec
Hello,

I have the same issue using the current 2.1-snapshot as of today.

Details of the setup:
-

Restlet Client:
---
- Android 2.1-snapshot

Libs in Classpath:
- jackson-core-asl-1.6.3.jar
- jackson-mapper-asl-1.6.3.jar
- org.restlet.ext.jackson.jar
- org.restlet.jar

Snippets:
ClientResource cr = new ClientResource(...url...);
ItemResource res = cr.wrap(ItemResource.class);
Items items = res.search(searchDefinition);


Server Side (GAE):
--
- gae-2.1snapshot
Libs:
- org.restlet.jar
- org.restlet.ext.servlet.jar
- org.restlet.ext.jackson.jar
- jackson-core-asl-1.6.3.jar
- jackson-mapper-asl-1.6.3.jar

Snippets:
...
public interface ItemResource {

   @Post
   public Items search(SearchDefinition req);

}

Implementation:
...
public Items search(SearchDefinition searchDef) {

 --- here, searchDef is null on the GAE-Instance, in the locally deployed 
jetty, the searchDef-Object is correctly deserialized.

}

Anyone else still having this issue?

Thanks in advance,
Joe

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