Error: 
org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor
 
aroundWriteToSEVERE: MessageBodyWriter not found for media 
type=application/vnd.xyzcompany.v1+json, type=class model.OrderStatus, 
genericType=class model.OrderStatu


OrderStatus is a model class.


Facing this issue when trying to return the Object of class OrderStatus.


The main reason for this is Media Type, when i tried it using 
*application/json* it worked, but need to do it with *custom media type* 
like: *application/vnd.xyzcompany.v1+json*


Extra Info: @Produces and @Consumes are used with the same media type and 
OrderStatus class is defined in the response of the request.

Wherever I read mostly found that, custom mime/media type need to be 
registered but don't know how to register and implement.



Can anyone help to resolve this issue.





Thanks in advance :)

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to