Error: A message body writer for Java type was not found

Asked on June 11, 2014
Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.ArrayList, and MIME media type, application/json, was not found
at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(
... 5 more

I am running REST  Web Service + JSON and trying to consume JSON but got above error. Need help.

Replied on June 11, 2014
Update  jersey Jar version
In latest version, may be above 1.8, we do not need to create message body writer

Write Answer

©2024 | Privacy Policy | Contact Us