Help Us Improve. Please let us know if you were asked any question in your interview.

More Questions

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





Stay updated with Java posts in your email.

Enter your email address:


Delivered by FeedBurner
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




×

Would like to try our new Java Interview Questions Search Tool.

There are more than 1000 questions with practice tests. It's updated daily and It's Awesome.


×

Would like to try our new Java Practice Test tool.

There are more than 100 questions currently and expanding quickly. It's updated daily and It's Awesome.