Help Us Improve. Please let us know if you were asked any of these questions.

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 directly to your mailbox.
Enter your email address:

'
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




×

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.


×

Try our new Java Practice Test tool.

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