如何解决找不到媒体类型= text / plain异常的MessageBodyReader?

时间:2017-04-04 19:38:18

标签: java web-services jersey jax-rs

我在回读实体时面临MessageBodyReader Not Found Exception。我将实体作为字节流发送。在我的服务中,我将application / xml作为媒体类型,但是在text / plain上的跟踪中。

堆栈跟踪:

Caused by: org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/plain;charset=utf-8, type=class com.mercuryinsurance.esignature.integration.provider.docusign.rest.model.response.SendDocumentsResponse, genericType=class com.mercuryinsurance.esignature.integration.provider.docusign.rest.model.response.SendDocumentsResponse. 

0 个答案:

没有答案