ERROR - Jersey - The registered message body readers compatible with the MIME media type are: application/octet-stream

Error

SEVERE: A message body reader for Java class , and Java type class , and MIME media type application/octet-stream was not found.
The registered message body readers compatible with the MIME media type are:
application/octet-stream ->

Error Type

RunTime


Possible Cause

MIME attachment with the content type "application/octet-stream" is a binary file. Seems like you are trying to send the binary content but the application is not able to find reader for octet-stream. If you intent only to send XML or JSON data, you are not sending the correct Header for 
Content-Type


Possible Resolution

Make sure that you are sending the following Header correctly

accept: application/json

Content-Type: application/json





Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
comments powered by Disqus