Home  >  Forum  >  Web Services
Post New Query

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(RequestWriter.java:299)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:203)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:146)
... 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








©2019 concretepage.com | Privacy Policy | Contact Us