Home  >  Forum  >  Web Services
Post New Query

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

joined on
March 27,2014
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.

joined on
October 10,2013
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

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us