<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tRESTClient component is giving weird error for JSON response. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-component-is-giving-weird-error-for-JSON-response/m-p/2344918#M112511</link>
    <description>Hi,&lt;BR /&gt;Did you post json request using tRestClient? What's your input file and job design? Component setting screenshots will be preferred.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Tue, 14 Oct 2014 10:20:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-14T10:20:40Z</dc:date>
    <item>
      <title>tRESTClient component is giving weird error for JSON response.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-component-is-giving-weird-error-for-JSON-response/m-p/2344917#M112510</link>
      <description>Hi all,
&lt;BR /&gt;I am new to TOS for DI. I am working on getting data from REST web service. I used tREST which works perfectly but now I need authentication so I am shifting to tRESTClient. tRESTClient work fine when the response is in XML format but when I gave same URL which return JSON data in tREST and tRESTClient, in tREST it works fine but in tRESTClient it gives me following error:&amp;nbsp;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;Sep 5, 2014 11:40:31 AM org.apache.cxf.jaxrs.client.AbstractClient reportMessageHandlerProblem&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;SEVERE: .No message body reader has been found for class : interface org.dom4j.Document, ContentType : application/x-javascript.&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;Exception in component tRESTClient_1&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;javax.ws.rs.client.ClientException: .No message body reader has been found for class : interface org.dom4j.Document, ContentType : application/x-javascript.&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:756)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.AbstractClient.readBody(AbstractClient.java:523)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:1146)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1130)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1072)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:878)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:852)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:410)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt; disconnected&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:594)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at sample.testjob_3_0_1.testJob_3.tRESTClient_1Process(testJob_3.java:633)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at sample.testjob_3_0_1.testJob_3.runJobInTOS(testJob_3.java:1022)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;at sample.testjob_3_0_1.testJob_3.main(testJob_3.java:881)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;Job testJob_3 ended at 11:40 05/09/2014. &lt;/FONT&gt;
&lt;BR /&gt;Although when I check "log messages" in tRESTClient component advance settings, it returns the response with error.
&lt;BR /&gt;Thanks in advance for any kind of help.</description>
      <pubDate>Fri, 05 Sep 2014 07:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTClient-component-is-giving-weird-error-for-JSON-response/m-p/2344917#M112510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-05T07:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTClient component is giving weird error for JSON response.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-component-is-giving-weird-error-for-JSON-response/m-p/2344918#M112511</link>
      <description>Hi,&lt;BR /&gt;Did you post json request using tRestClient? What's your input file and job design? Component setting screenshots will be preferred.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 14 Oct 2014 10:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTClient-component-is-giving-weird-error-for-JSON-response/m-p/2344918#M112511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-14T10:20:40Z</dc:date>
    </item>
  </channel>
</rss>

