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
Post a Comment