users@jersey.java.net

[Jersey] Problems with Jersey 1.10 and Android 2.3.3

From: Ricardo Borillo <borillo_at_gmail.com>
Date: Sun, 4 Dec 2011 18:47:16 +0100

Hi all,

I have read that it is possible to use Jersey Client in Adroid, but
i'm facing some issues ...

I try to call a remote REST service:

       Client client = Client.create();
       WebResource resource = client.resource("http://xxxxxx").path("yyyyy");
       ClientResponse response =
resource.accept(MediaType.APPLICATION_XML).get(ClientResponse.class);
       Document document = response.getEntity(Document.class);

But i'm getting a NullPointException at
javax.ws.rs.core.MediaType.valueOf(MediaTYpe.java:119).

Any known problem with Jersey and Android?

Best regards,
====================================
Ricardo Borillo Domenech
http://xml-utils.com / http://twitter.com/borillo