java - Restlet On Android - Issues with serialization -


i trying retrieve serialized classes using restlet 2.1 android client , gae server. relevant code:

clientresource cr = new clientresource("http://localhost:8888/mydata"); // mydata object mydataresource resource = cr.wrap(mydataresource.class); mydata mydata = resource.retrieve(); 

i tested in standalone jse class, , worked fine. when try run same thing in android, mydata object null. ideas?

you can check here android specificities: restlet android page

i spent few hours before understand problem well, need explicitly register jackson convertor :

engine.getinstance().getregisteredconverters().add(new jacksonconverter()); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -