<?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: tRESTResponse: Exception Rest response already sent. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364347#M128111</link>
    <description>Thanks, I've linked to it from TESB-12039
&lt;BR /&gt;Cheers, Sergey</description>
    <pubDate>Mon, 28 Apr 2014 15:50:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-28T15:50:33Z</dc:date>
    <item>
      <title>tRESTResponse: Exception Rest response already sent.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364344#M128108</link>
      <description>So I am working on reconciliation service for OpenRefine. OpenRefine send query with the following payload as Form. 
&lt;BR /&gt;Below an example of query sent by OpenRefine 
&lt;BR /&gt; 
&lt;PRE&gt;queries={"q0":{"query":"Joe","limit":3},"q1":{"query":"John","limit":3},"q2":{"query":"Henry","limit":3},"q3":{"query":"Willliam","limit":3}}&lt;/PRE&gt; 
&lt;BR /&gt;My Talend job: 
&lt;BR /&gt;1. parse the payload into different record for q0, q1 .... 
&lt;BR /&gt;2. do some computing for each record and build individual JSON answer using a tMap (screenshot 02) 
&lt;BR /&gt;3. wrap all results in a single payload and pass it to tRESTResponse (screenshot 03) 
&lt;BR /&gt; 
&lt;BR /&gt;As the first query got parsed the job failed with the following Exception: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tRESTResponse_2&lt;BR /&gt;java.lang.RuntimeException: Rest response already sent.&lt;BR /&gt;	at openrefinereconciliation.restservice2_0_1.RESTService2.tRESTRequest_1_LoopProcess(RESTService2.java:8091)&lt;BR /&gt;	at openrefinereconciliation.restservice2_0_1.RESTService2$RestServiceProviderImpl4TalendJob.processRequest(RESTService2.java:598)&lt;BR /&gt;	at openrefinereconciliation.restservice2_0_1.RESTService2$RestServiceProviderImpl4TalendJob.queries(RESTService2.java:700)&lt;BR /&gt;	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR /&gt;	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;	at java.lang.reflect.Method.invoke(Method.java:601)&lt;BR /&gt;	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)&lt;BR /&gt;	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)&lt;BR /&gt;	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:192)&lt;BR /&gt;	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)&lt;BR /&gt;	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)&lt;BR /&gt;	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)&lt;BR /&gt;	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)&lt;BR /&gt;	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)&lt;BR /&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)&lt;BR /&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)&lt;BR /&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)&lt;BR /&gt;	at org.eclipse.jetty.server.Server.handle(Server.java:370)&lt;BR /&gt;	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)&lt;BR /&gt;	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)&lt;BR /&gt;	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)&lt;BR /&gt;	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)&lt;BR /&gt;	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)&lt;BR /&gt;	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)&lt;BR /&gt;	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)&lt;BR /&gt;	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)&lt;BR /&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)&lt;BR /&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)&lt;BR /&gt;	at java.lang.Thread.run(Thread.java:722)&lt;/PRE&gt; 
&lt;BR /&gt;and I am clueless on what I am doing wrong? Is my document not formed properly at the tXMLMap level? Did I missed some configuration in the tRESTResponse (ie should I configure specific response header?) 
&lt;BR /&gt;Thanks in advance for your help. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDy1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133785i73A9DFFF081E93D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDy1.png" alt="0683p000009MDy1.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDrp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140278iFF93776B185F04DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDrp.png" alt="0683p000009MDrp.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDs9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131077i8D82889D0D9996CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDs9.png" alt="0683p000009MDs9.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364344#M128108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTResponse: Exception Rest response already sent.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364345#M128109</link>
      <description>Hi 
&lt;BR /&gt;The error message suggests that an attempt is made to repeatedly write a response into the back channel representing a current client request. 
&lt;BR /&gt;Unfortunately it is not possible to do it at the Studio level, there's an enhancement request to support streaming of the response data into a single tRESTRequest response, but it is not supported yet. 
&lt;BR /&gt;Can you open an enhancement request on your own and I will link to it from the internal JIRA issue ? 
&lt;BR /&gt; 
&lt;BR /&gt;Cheers, Sergey</description>
      <pubDate>Mon, 28 Apr 2014 09:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364345#M128109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTResponse: Exception Rest response already sent.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364346#M128110</link>
      <description>Thanks Sergey, 
&lt;BR /&gt;I've created the following issue: 
&lt;A href="https://jira.talendforge.org/browse/TESB-13475" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-13475&lt;/A&gt; 
&lt;BR /&gt;I was not able to track back the issue to request to support streaming of the response data into a single tRESTRequest response. May you provide a link to it? 
&lt;BR /&gt;thanks</description>
      <pubDate>Mon, 28 Apr 2014 15:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364346#M128110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTResponse: Exception Rest response already sent.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364347#M128111</link>
      <description>Thanks, I've linked to it from TESB-12039
&lt;BR /&gt;Cheers, Sergey</description>
      <pubDate>Mon, 28 Apr 2014 15:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364347#M128111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-28T15:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTResponse: Exception Rest response already sent.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364348#M128112</link>
      <description>Hi,&lt;BR /&gt;this may be helpful: setting the XMLMap's output option "All in one" to "true" shovels all rows to one document before passing the row out... this helped me in a similar problem&lt;BR /&gt;regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Wed, 14 May 2014 13:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-Exception-Rest-response-already-sent/m-p/2364348#M128112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T13:58:19Z</dc:date>
    </item>
  </channel>
</rss>

