<?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 [resolved] Problem open PDF File in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289231#M62635</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I have install the tFileOutputPDF component from &amp;nbsp;exchange.talend.com and it work great.&lt;BR /&gt;But when I try to open the pdf file at the end of my process, I have an error message like this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Starting job LaunchAPP at 10:22 09/09/2015.&lt;BR /&gt;[statistics] connecting to socket on port 3711&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tJava_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at java.io.File.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.tJava_1Process(LaunchAPP.java:1683)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.tMsgBox_1Process(LaunchAPP.java:1599)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.tRowGenerator_1Process(LaunchAPP.java:1447)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.runJobInTOS(LaunchAPP.java:1944)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.main(LaunchAPP.java:1796)&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job LaunchAPP ended at 10:22 09/09/2015. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;In the tJava&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;try {&lt;BR /&gt;Desktop.getDesktop().open(new File(((String)globalMap.get("tFileOutputPDF_1_FILE_NAME"))));&lt;BR /&gt;} catch (IOException e) {e.printStackTrace();}&lt;BR /&gt;&lt;BR /&gt;advanced settings&lt;BR /&gt;import java.awt.Desktop;&lt;BR /&gt;import java.io.File;&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;If I try with just the XLS file it works without problem.&lt;BR /&gt;&lt;BR /&gt;LAR_TEST.zip.zip&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2015 09:26:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-09T09:26:47Z</dc:date>
    <item>
      <title>[resolved] Problem open PDF File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289231#M62635</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have install the tFileOutputPDF component from &amp;nbsp;exchange.talend.com and it work great.&lt;BR /&gt;But when I try to open the pdf file at the end of my process, I have an error message like this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;Starting job LaunchAPP at 10:22 09/09/2015.&lt;BR /&gt;[statistics] connecting to socket on port 3711&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tJava_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at java.io.File.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.tJava_1Process(LaunchAPP.java:1683)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.tMsgBox_1Process(LaunchAPP.java:1599)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.tRowGenerator_1Process(LaunchAPP.java:1447)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.runJobInTOS(LaunchAPP.java:1944)&lt;BR /&gt;	at lar_test.launchapp_0_1.LaunchAPP.main(LaunchAPP.java:1796)&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;Job LaunchAPP ended at 10:22 09/09/2015. [exit code=1]&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;In the tJava&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;try {&lt;BR /&gt;Desktop.getDesktop().open(new File(((String)globalMap.get("tFileOutputPDF_1_FILE_NAME"))));&lt;BR /&gt;} catch (IOException e) {e.printStackTrace();}&lt;BR /&gt;&lt;BR /&gt;advanced settings&lt;BR /&gt;import java.awt.Desktop;&lt;BR /&gt;import java.io.File;&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;If I try with just the XLS file it works without problem.&lt;BR /&gt;&lt;BR /&gt;LAR_TEST.zip.zip&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 09:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289231#M62635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Problem open PDF File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289232#M62636</link>
      <description>It looks like the component does not fill the global variable correctly. Check in the source code if this var will be set or not. 
&lt;BR /&gt;To do so, select the &amp;nbsp;tFileOutputPDF component and switch to the Code tab below the job design.</description>
      <pubDate>Wed, 09 Sep 2015 11:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289232#M62636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Problem open PDF File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289233#M62637</link>
      <description>HI,
&lt;BR /&gt;I don't understand very well where I must click/Go!
&lt;BR /&gt;I have click on tFileOutputPDF, Click on Tab Run and on the tab under on the right I have choose : Debug Run.
&lt;BR /&gt;I join the TalendJob
&lt;BR /&gt;
&lt;A href="https://community.talend.com/legacyfs/online/316187/LaunchAPP.zip" target="_blank"&gt;LaunchAPP.zip &lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Burnside.</description>
      <pubDate>Wed, 09 Sep 2015 13:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289233#M62637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T13:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Problem open PDF File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289234#M62638</link>
      <description>Hi Burnside,
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;Next to the Designer tab there is a Code tab which &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="&amp;quot;Calibri&amp;quot;,sans-serif"&gt;enables you to visualize the code and highlights the possible language errors.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGgn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135527i95EB50D9F913D571/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGgn.png" alt="0683p000009MGgn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 10 Sep 2015 08:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289234#M62638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T08:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Problem open PDF File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289235#M62639</link>
      <description>Hi, 
&lt;BR /&gt;Thank's I understand now 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I have do this to open the PDf file: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;try {&lt;BR /&gt;Desktop.getDesktop().open(new File(context.OutputFile));&lt;BR /&gt;} catch (IOException e) {e.printStackTrace();}&lt;/PRE&gt; 
&lt;BR /&gt;And for the XLS 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;try {&lt;BR /&gt;Desktop.getDesktop().open(new File(((String)globalMap.get(tFileOutputDelimited_1_FILE_NAME"))));&lt;BR /&gt;} catch (IOException e) {e.printStackTrace();}&lt;/PRE&gt; 
&lt;BR /&gt;Idea from :&amp;nbsp; 
&lt;A href="http://www.datalytyx.com/how-to-open-a-file-with-a-system-default-application-in-talend-studio/" target="_blank" rel="nofollow noopener noreferrer"&gt;Link&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thank's 
&lt;BR /&gt;Burnside.</description>
      <pubDate>Thu, 10 Sep 2015 12:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289235#M62639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T12:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Problem open PDF File</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289236#M62640</link>
      <description>Hi Burnside,&lt;BR /&gt;&lt;BR /&gt;Thanks for sharing your solution with us.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 11 Sep 2015 11:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Problem-open-PDF-File/m-p/2289236#M62640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T11:07:20Z</dc:date>
    </item>
  </channel>
</rss>

