<?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: Unexpected EOF in prolog error with tRESTclient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268150#M46815</link>
    <description>Hello,
&lt;BR /&gt;I tried tREST and using the POST method, I get an HTTP 415 error. tLog shows:
&lt;BR /&gt;
&lt;I&gt;Starting job OpenL_Test at 15:45 08/04/2015.&lt;/I&gt;
&lt;BR /&gt;
&lt;PRE&gt; connecting to socket on port 3555&lt;BR /&gt; connected&lt;BR /&gt;|415&lt;BR /&gt; disconnected&lt;BR /&gt;&lt;I&gt;Job OpenL_Test ended at 15:45 08/04/2015. &lt;/I&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;The Tomcat log shows:
&lt;BR /&gt;
&lt;PRE&gt;15:45:45,297  WARN&amp;nbsp; (org.apache.cxf.jaxrs.utils.JAXRSUtils.java:522) - No operation matching request path "/openl-tablets-ws-5.14.0/REST/openl_tomcat_8/bmcg/Greeting1" is found, Relative Path: /Greeting1, HTTP Method: POST, ContentType: text/plain, Accept: text/html,image/gif,image/jpeg,*/*;q=.2,*/*;q=.2,. Please enable FINE/TRACE log level for more details.&lt;BR /&gt;15:45:45,299  WARN&amp;nbsp; (org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.java:73) - javax.ws.rs.ClientErrorException: HTTP 415 Unsupported Media Type&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;After that I decided to try an HTTP PUT (instead of POST) to see what happens. &amp;nbsp;tLog shows an HTTP 405 error:
&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;Starting job OpenL_Test at 15:47 08/04/2015.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3425&lt;BR /&gt; connected&lt;BR /&gt;|405&lt;BR /&gt; disconnected&lt;BR /&gt;&lt;I&gt;Job OpenL_Test ended at 15:47 08/04/2015. &lt;/I&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;and the Tomcat log shows:
&lt;BR /&gt;
&lt;PRE&gt;15:47:44,736  WARN&amp;nbsp; (org.apache.cxf.jaxrs.utils.JAXRSUtils.java:522) - No operation matching request path "/openl-tablets-ws-5.14.0/REST/openl_tomcat_8/bmcg/Greeting1" is found, Relative Path: /Greeting1, HTTP Method: PUT, ContentType: text/plain, Accept: text/html,image/gif,image/jpeg,*/*;q=.2,*/*;q=.2,. Please enable FINE/TRACE log level for more details.&lt;BR /&gt;15:47:44,737  WARN&amp;nbsp; (org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.java:73) - javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;I am not sure if "javax.ws.rs.ClientErrorException: HTTP 415 Unsupported Media Type" exception is thrown because of a configuration error with tREST component or if there is an issue with the way the OpenL web service implements the javax lib.&amp;nbsp;
&lt;BR /&gt;&amp;nbsp;</description>
    <pubDate>Wed, 08 Apr 2015 07:55:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-08T07:55:45Z</dc:date>
    <item>
      <title>Unexpected EOF in prolog error with tRESTclient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268148#M46813</link>
      <description>I have created a simple job using the tRESTclient to call a RESTful service from OpenL Tablets. The job appears to execute and does call the OpenL service, but the following message is displayed in the error flow to tLogRow: 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;I&gt;Starting job OpenL_Test at 14:20 08/04/2015.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3633&lt;BR /&gt; connected&lt;BR /&gt;400|WebApplicationException has been caught, status: 400, message: Unexpected EOF in prolog&lt;BR /&gt;&amp;nbsp;at : &lt;BR /&gt; disconnected&lt;BR /&gt;&lt;I&gt;Job OpenL_Test ended at 14:20 08/04/2015. &lt;/I&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;I checked the log file for the REST service and see the following error message: 
&lt;BR /&gt; 
&lt;PRE&gt;14:20:15,728  WARN&amp;nbsp; (org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.java:73) - javax.ws.rs.BadRequestException: HTTP 400 Bad Request&lt;/PRE&gt; 
&lt;BR /&gt;I am not sure if the issue is caused by how the tRESTclient formats the service request. (I can't see what the actual request looks like.) 
&lt;BR /&gt;Has anyone else seen a similar "Unexpected EOF in prolog" error with the tRESTclient? If so, I'd like to know how you fixed the issue. Thank you. 
&lt;BR /&gt;Environment Notes 
&lt;BR /&gt;------------------- 
&lt;BR /&gt; 
&lt;BR /&gt;OS: OS X 10.0.2 
&lt;BR /&gt;Talend Open Studio v5.3.2 
&lt;BR /&gt;OpenL Tablets Web Services 5.14.0 
&lt;BR /&gt;Apache Tomcat v.8.0.20 
&lt;BR /&gt;Java 1.7.0_60 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDI5.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152761iB3E151C2DE1570C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDI5.jpg" alt="0683p000009MDI5.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD8t.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138143i97A2932444E48257/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD8t.jpg" alt="0683p000009MD8t.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDIO.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142923i76B763B4A95B6CF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDIO.jpg" alt="0683p000009MDIO.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 08 Apr 2015 06:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268148#M46813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T06:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected EOF in prolog error with tRESTclient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268149#M46814</link>
      <description>Hi,&lt;BR /&gt;Can you take a try to use tREST instead of tRESTClient to see if it is working?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 08 Apr 2015 07:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268149#M46814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T07:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected EOF in prolog error with tRESTclient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268150#M46815</link>
      <description>Hello,
&lt;BR /&gt;I tried tREST and using the POST method, I get an HTTP 415 error. tLog shows:
&lt;BR /&gt;
&lt;I&gt;Starting job OpenL_Test at 15:45 08/04/2015.&lt;/I&gt;
&lt;BR /&gt;
&lt;PRE&gt; connecting to socket on port 3555&lt;BR /&gt; connected&lt;BR /&gt;|415&lt;BR /&gt; disconnected&lt;BR /&gt;&lt;I&gt;Job OpenL_Test ended at 15:45 08/04/2015. &lt;/I&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;The Tomcat log shows:
&lt;BR /&gt;
&lt;PRE&gt;15:45:45,297  WARN&amp;nbsp; (org.apache.cxf.jaxrs.utils.JAXRSUtils.java:522) - No operation matching request path "/openl-tablets-ws-5.14.0/REST/openl_tomcat_8/bmcg/Greeting1" is found, Relative Path: /Greeting1, HTTP Method: POST, ContentType: text/plain, Accept: text/html,image/gif,image/jpeg,*/*;q=.2,*/*;q=.2,. Please enable FINE/TRACE log level for more details.&lt;BR /&gt;15:45:45,299  WARN&amp;nbsp; (org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.java:73) - javax.ws.rs.ClientErrorException: HTTP 415 Unsupported Media Type&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;After that I decided to try an HTTP PUT (instead of POST) to see what happens. &amp;nbsp;tLog shows an HTTP 405 error:
&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;Starting job OpenL_Test at 15:47 08/04/2015.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; connecting to socket on port 3425&lt;BR /&gt; connected&lt;BR /&gt;|405&lt;BR /&gt; disconnected&lt;BR /&gt;&lt;I&gt;Job OpenL_Test ended at 15:47 08/04/2015. &lt;/I&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;and the Tomcat log shows:
&lt;BR /&gt;
&lt;PRE&gt;15:47:44,736  WARN&amp;nbsp; (org.apache.cxf.jaxrs.utils.JAXRSUtils.java:522) - No operation matching request path "/openl-tablets-ws-5.14.0/REST/openl_tomcat_8/bmcg/Greeting1" is found, Relative Path: /Greeting1, HTTP Method: PUT, ContentType: text/plain, Accept: text/html,image/gif,image/jpeg,*/*;q=.2,*/*;q=.2,. Please enable FINE/TRACE log level for more details.&lt;BR /&gt;15:47:44,737  WARN&amp;nbsp; (org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.java:73) - javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;I am not sure if "javax.ws.rs.ClientErrorException: HTTP 415 Unsupported Media Type" exception is thrown because of a configuration error with tREST component or if there is an issue with the way the OpenL web service implements the javax lib.&amp;nbsp;
&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Wed, 08 Apr 2015 07:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268150#M46815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T07:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected EOF in prolog error with tRESTclient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268151#M46816</link>
      <description>hi,&lt;BR /&gt;look like Path is not found first &lt;BR /&gt;&lt;PRE&gt; No operation matching request path&lt;/PRE&gt;&lt;BR /&gt;And Content type not supported &lt;BR /&gt;&lt;PRE&gt;Relative Path: /Greeting1, HTTP Method: PUT, ContentType: text/plain,&lt;/PRE&gt;&lt;BR /&gt;Did you put json or xml has content-type ??&lt;BR /&gt;did you try to request with a solution like soaui &amp;amp; check rest request ? (outside Talend)&lt;BR /&gt;regards</description>
      <pubDate>Wed, 08 Apr 2015 08:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unexpected-EOF-in-prolog-error-with-tRESTclient/m-p/2268151#M46816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-08T08:49:01Z</dc:date>
    </item>
  </channel>
</rss>

