<?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 error when receiving JSON in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249365#M33930</link>
    <description>Hi,&lt;BR /&gt;I want to take the data from database through API and it is in json. So can please tell me how to take data from database through API.&lt;BR /&gt;Which components should i use.&lt;BR /&gt;Thanks,&lt;BR /&gt;Jandi.</description>
    <pubDate>Thu, 14 Jul 2016 07:46:05 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-07-14T07:46:05Z</dc:date>
    <item>
      <title>tRestClient error when receiving JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249363#M33928</link>
      <description>Hello, 
&lt;BR /&gt;When i try to retrieve a JSON object using tRestClient component i get it incomplete and an error is thrown as seen below: 
&lt;BR /&gt;-------------------------------------- 
&lt;BR /&gt;Mar 28, 2014 3:44:44 PM org.apache.cxf.jaxrs.client.AbstractClient reportMessageHandlerProblem 
&lt;BR /&gt;SEVERE: .Problem with reading the response message, class : interface org.dom4j.Document, ContentType : application/json. 
&lt;BR /&gt;Exception in component tRESTClient_1 
&lt;BR /&gt;javax.ws.rs.client.ClientException: .Problem with reading the response message, class : interface org.dom4j.Document, ContentType : application/json. 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:761) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.AbstractClient.readBody(AbstractClient.java:510) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:1109) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1093) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1043) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:857) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:831) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:394) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:573) 
&lt;BR /&gt; at swqldashboardjson.dashboard_0_1.Dashboard.tRESTClient_1Process(Dashboard.java:994) 
&lt;BR /&gt; at swqldashboardjson.dashboard_0_1.Dashboard.runJobInTOS(Dashboard.java:1246) 
&lt;BR /&gt; at swqldashboardjson.dashboard_0_1.Dashboard.main(Dashboard.java:1111) 
&lt;BR /&gt;Caused by: javax.ws.rs.BadRequestException: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. 
&lt;BR /&gt; at org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:258) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.provider.dom4j.DOM4JProvider.readFrom(DOM4JProvider.java:70) 
&lt;BR /&gt; at swqldashboardjson.dashboard_0_1.Dashboard$2.readFrom(Dashboard.java:948) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.provider.dom4j.DOM4JProvider.readFrom(DOM4JProvider.java:41) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1280) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.client.AbstractClient.readBody(AbstractClient.java:506) 
&lt;BR /&gt; ... 10 more 
&lt;BR /&gt;Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName(Unknown Source) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.&amp;lt;init&amp;gt;(Unknown Source) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS(Unknown Source) 
&lt;BR /&gt; at org.apache.cxf.staxutils.W3CDOMStreamWriter.createAndAddElement(W3CDOMStreamWriter.java:150) 
&lt;BR /&gt; at org.apache.cxf.staxutils.W3CDOMStreamWriter.writeStartElement(W3CDOMStreamWriter.java:105) 
&lt;BR /&gt; at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:768) 
&lt;BR /&gt; at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:706) 
&lt;BR /&gt; at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:694) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.provider.json.JSONProvider.copyReaderToWriter(JSONProvider.java:395) 
&lt;BR /&gt; at org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:218) 
&lt;BR /&gt; ... 15 more 
&lt;BR /&gt;Can you please tell me what is the problem?</description>
      <pubDate>Fri, 28 Mar 2014 14:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249363#M33928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient error when receiving JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249364#M33929</link>
      <description>Hi, 
&lt;BR /&gt;Have you already checked component reference 
&lt;A href="https://help.talend.com/search/all?query=tRESTClient&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tRESTClient&lt;/A&gt;? Could you please post your job design and tRestClient component setting screenshots into forum so that we can address your issue quickly.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 01 Apr 2014 05:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249364#M33929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T05:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient error when receiving JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249365#M33930</link>
      <description>Hi,&lt;BR /&gt;I want to take the data from database through API and it is in json. So can please tell me how to take data from database through API.&lt;BR /&gt;Which components should i use.&lt;BR /&gt;Thanks,&lt;BR /&gt;Jandi.</description>
      <pubDate>Thu, 14 Jul 2016 07:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249365#M33930</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-07-14T07:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient error when receiving JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249366#M33931</link>
      <description>There are plenty of database input components. after reading the column containing the json content you can use tExtractJSONField to parse the content.</description>
      <pubDate>Sun, 17 Jul 2016 17:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-error-when-receiving-JSON/m-p/2249366#M33931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-17T17:27:13Z</dc:date>
    </item>
  </channel>
</rss>

