I am writing an Android client which calls a web service. The service is written using JAX-RS / Jersey API. I\'m also trying to use Jersey-Client API on the android side.
Judging by the stack trace, it's probably something happing at either
ERAService line
80 in the updateRestaurantFranchise
methodRestaurantActivity
line 201 in the onItemSelected
methodAndroid has Dalvik Virtual Machine, not original JVM. I think this the reason why Jersey Client API does not work in Android OS. but I'am nog sure!
I am also a Jersey newbie, but I think that the reason your post code does not work is that formData must be in one of the types accepted. I'm not totally sure on the difference between the type and the accept commands in this contexts, but I am pretty sure that formData must be of one of the types that your invocation builder supports. E.g. if you serialised formData as a JSON object and set type/accept to JSON then this code would work. As it is it is probably calling some bodymethodwriter to serialise it into an acceptable type but formData doesnt have one so the method call returns null. In fact, it looks like its calling ValueOf to try to obtain the data out of formData for serialisation, but that returns null.