Hello,

this should be due to the fact the Android platform supports only a 
subset of the JDK.
In this case, it means that the Json extension, at its current state is 
not supported by the Android platform.
We are aware of this kind of problems (which are met also with the GWT 
platform). Unfortunately, it takes time to translate the code of a given 
extension that works for the JSE in order to keep it running for Android 
or GWT. You may have also noticed that the Restlet core module ported 
for Android platform, even if it only relies on the JDK 1.5, does not 
support all features.

By the way, any help in this area is very welcome.

I hope this help you...
Best regards,
Thierry Boileau


> Hello,
>
> >From the client side, I have exactly the same following code on Android and
> in Junit test on GAE:
>
> String mUri = "http://...";;
> Client mClient = new Client(Protocol.HTTP);
>
> Form f = new Form();
> f.add("name", "value");
> Representation rep = f.getWebRepresentation();
>
> Representation txt = mClient.post(mUri, rep).getEntity();
>
> try {
>   JsonRepresentation json = new JsonRepresentation(txt);
>   ...
> } ...
>
> On GAE, it is working fine (=getting the json).
> On Android, I have an exception "java.lang.VerifyError:
> org.restlet.ext.json.JsonRepresentation".
>
> For information, it appears the type of "txt" is not the same:
> "InputRepresentation" on GAE
> "org.restlet.engine.http.StreamClientCall$SocketWrapperRepresentation" on
> Android
>
> Can someone help me ?
>
> Thanks,
> Seb.
>
>

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

Reply via email to