Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The complete message is:
2019-08-15T10:02:40,064 | ERROR | qtp1292759967-217149 | pache.cxf.jaxrs.utils.JAXRSUtils 1847 | 48 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.14 | No message body writer has been found for class org.apache.cxf.message.MessageContentsList, ContentType: application/json
I have a Route, which is a REST service and to which I added a URL. This is basically a copy of an existing URL, except for the produced output. The only difference between the two is in the MessagingEndpoint, which stylesheet. And even the two stylesheets differ only in one way. So I guessed this could have been done much smarter, but I do not have a lot of Talend experience yet.
The error message occurs for the new URL. The existing URL still works.
I have attached two Studio screen prints.
Hello,
Here is a related topic and set as resolved. Let us know if it helps.
https://community.talend.com/t5/Design-and-Development/Can-t-POST-an-XML-file-to-a-Route/m-p/80469
Best regards
Sabrina
Hi Sabrina,
I clicked on that link but got message "Page not found"
Could you please post an updated link if that exists for this issue?
PS: I am getting similar error message:
[ERROR] 13:36:20 org.apache.cxf.jaxrs.utils.JAXRSUtils- No message body reader has been found for class org.dom4j.Document, ContentType: text/html;charset=utf-8
Exception in component tRESTClient_1 (Copy_of_ESRI_DisableUser_API)
javax.ws.rs.client.ResponseProcessingException: No message body reader has been found for class org.dom4j.Document, ContentType: text/html;charset=utf-8
at org.apache.cxf.jaxrs.impl.ResponseImpl.reportMessageHandlerProblem(ResponseImpl.java:553)
at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:506)
at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:410)
at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:400)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.tFixedFlowInput_2Process(Copy_of_ESRI_DisableUser_API.java:8681)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.tHashInput_1Process(Copy_of_ESRI_DisableUser_API.java:7461)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.tLoop_1Process(Copy_of_ESRI_DisableUser_API.java:2021)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.tDBInput_1Process(Copy_of_ESRI_DisableUser_API.java:1706)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.tSetGlobalVar_1Process(Copy_of_ESRI_DisableUser_API.java:10054)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.runJobInTOS(Copy_of_ESRI_DisableUser_API.java:10864)
at edi_esri.copy_of_esri_disableuser_api_0_1.Copy_of_ESRI_DisableUser_API.main(Copy_of_ESRI_DisableUser_API.java:10342)
Basically, I am trying to use a variable out of tMap --> tFLowToIterate -> iFixedFlowInput --> tRestClient
My API call does not have a JSON body. It is of this format (works in postman):
https://xxxyyyzzz.com/sharing/rest/community/users/<username>/disable?token=<token value>
The username is the variable that I need to feed into the API call. In my case, username is the output from tMap component, that I am feeding into tFlowToItrerate component to handle multiple rows of username.
That variable is part of a URL: that works in postman.
Thanks