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
A 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
Make sure that you are sending the following Header correctly
accept: application/json
Content-Type: application/json