Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anjalivnr
Contributor
Contributor

com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class routines.system.Document, and MIME media type, application/xml, was not found - trest component

Hi Team ,

Im calling the API using tRest component to post the content to API using xml data. Below is the error

xception in component tREST_1 (final_test)

com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class routines.system.Document, and MIME media type, application/xml, was not found

at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131)

at com.sun.jersey.api.client.Client.handle(Client.java:616)

at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)

at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:72)

at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:502)

at claim_secmsg.final_test_0_1.final_test.tWriteXMLField_1_InProcess(final_test.java:3965)

Please someone help me on this issue.

Labels (2)
1 Reply
Anonymous
Not applicable

Hello,

Could you please let us know if this article helps?

https://stackoverflow.com/questions/15618061/a-message-body-writer-for-java-class-java-util-arraylis...

Best regards

Sabrina