Custom Content Type returns java issue

One Star

Custom Content Type returns java issue

I am using tRESTClient, with POST request.
30-Aug-2013 10:12:55 org.apache.cxf.jaxrs.client.AbstractClient reportMessageHandlerProblem
SEVERE: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
30-Aug-2013 10:12:55 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for {http://orion.test.gta-travel.com/gts-webServices/company.xml/search}WebClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1019)
at org.apache.cxf.jaxrs.client.AbstractClient$AbstractBodyWriter.handleMessage(AbstractClient.java:979)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:581)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:904)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:772)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:759)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:355)
at org.apache.cxf.jaxrs.client.WebClient.put(WebClient.java:402)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tOracleInput_3Process(CompanyWS_Search1.java:9114)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tJava_1Process(CompanyWS_Search1.java:6018)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tOracleInput_2Process(CompanyWS_Search1.java:3800)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tOracleInput_1Process(CompanyWS_Search1.java:1234)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.runJobInTOS(CompanyWS_Search1.java:15002)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.main(CompanyWS_Search1.java:14826)
Caused by: javax.ws.rs.client.ClientException: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
at org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:709)
at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:416)
at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1014)
... 14 more
Exception in component tRESTClient_1
javax.ws.rs.client.ClientException: javax.ws.rs.client.ClientException: org.apache.cxf.interceptor.Fault: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:946)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:905)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:772)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:759)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:355)
at org.apache.cxf.jaxrs.client.WebClient.put(WebClient.java:402)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tOracleInput_3Process(CompanyWS_Search1.java:9114)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tJava_1Process(CompanyWS_Search1.java:6018)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tOracleInput_2Process(CompanyWS_Search1.java:3800)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.tOracleInput_1Process(CompanyWS_Search1.java:1234)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.runJobInTOS(CompanyWS_Search1.java:15002)
at mdmprototype.companyws_search1_0_1.CompanyWS_Search1.main(CompanyWS_Search1.java:14826)
Caused by: javax.ws.rs.client.ClientException: org.apache.cxf.interceptor.Fault: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:522)
at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:508)
at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:941)
... 11 more
Caused by: org.apache.cxf.interceptor.Fault: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1019)
at org.apache.cxf.jaxrs.client.AbstractClient$AbstractBodyWriter.handleMessage(AbstractClient.java:979)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:581)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:904)
... 10 more
Caused by: javax.ws.rs.client.ClientException: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00+xml.
disconnected
at org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:709)
at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:416)
at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1014)
Moderator

Re: Custom Content Type returns java issue

Hi,

I suppose you have read the component reference tREST
javax.ws.rs.client.ClientException: javax.ws.rs.client.ClientException: org.apache.cxf.interceptor.Fault: .No message body writer has been found for class : class org.dom4j.tree.DefaultDocument, ContentType : application/vnd.company.v01.00 xml.

Something wrong with your tRest component setting, would you mind uploading your component setting screenshot into forum so that we can address your issue quickly.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Custom Content Type returns java issue

Hi Sabrina,
I work with Hari. Please copy and paste the link below to view screenshots featuring the component attributes of the tRestClient component we are using:
http://s1370.photobucket.com/user/DesmondRose/media/screenshot_zpsebb8aa28.jpg.html

Re: Custom Content Type returns java issue

We also get this issue randomly.... Can some post an answer/resolution to this issue?

Re: Custom Content Type returns java issue

Here is more detailed error message (forgot to attach this)
tRestClient (callCatalogEndpoint) component failed with ERR MSG: org.apache.cxf.interceptor.Fault: .Problem with writing the request message, class : class org.dom4j.tree.DefaultDocument, ContentType : application/xml
One Star

Re: Custom Content Type returns java issue

Hello 
We are also facing similar issue. What is the solution for bug? We also get this issue randomly not all the time. When it fails we captured logs in wireshark and no packets are getting captured which means it is getting lost before that.
Thanks 
Smita
Moderator

Re: Custom Content Type returns java issue

Hi Smita,
On which build version you got this issue randomly.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Custom Content Type returns java issue

We are using Talend Palatform for MDM version 5.6.1, on windows 7 VM machine, java version is 1.7
Moderator

Re: Custom Content Type returns java issue

Hi Smitab,
We would suggest that you should report a ticket on Talend Support Portal so that we can give you a remote assistance on your issue through support cycle with priority.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.