<?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: Error code 0 despite NullPointerException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284613#M58265</link>
    <description>&lt;P&gt;Can you describe your job in more detail or post screenshots of it? If you have a POST job component where you handle errors, or you component that failed in the logging actually did not have to "Die on error" checkbox activated, the job runs in full and only logs your exceptions but does not fail. You can add a trigger on fail, and explicitly link it to a tDie component perhaps?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 17:53:43 GMT</pubDate>
    <dc:creator>diazsmiedts</dc:creator>
    <dc:date>2019-10-08T17:53:43Z</dc:date>
    <item>
      <title>Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284612#M58264</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote my own bash script which should call another Talend job when the first one went through without errors.&lt;/P&gt;&lt;P&gt;Now I had a NullPointerException and Talend gave still the exit code 0. Can I change that somehow? How can I make sure at STDOUT or STDERR that the job ran without errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;BooWseR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284612#M58264</guid>
      <dc:creator>BooWseR</dc:creator>
      <dc:date>2024-11-16T04:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284613#M58265</link>
      <description>&lt;P&gt;Can you describe your job in more detail or post screenshots of it? If you have a POST job component where you handle errors, or you component that failed in the logging actually did not have to "Die on error" checkbox activated, the job runs in full and only logs your exceptions but does not fail. You can add a trigger on fail, and explicitly link it to a tDie component perhaps?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 17:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284613#M58265</guid>
      <dc:creator>diazsmiedts</dc:creator>
      <dc:date>2019-10-08T17:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284614#M58266</link>
      <description>&lt;P&gt;Sorry for the late answer. Yes, of course i can go more in detail:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's a small excerpt from my job.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7pp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133485i8CBB7C32CFB025CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7pp.png" alt="0683p000009M7pp.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;As you can see, the job consists of several subjobs. If these are necessary for the execution of the main job, the checkbox "Died on error in child process" (dunno the correct spelling in english) is also checked.&lt;/P&gt; 
&lt;P&gt;Now I get an error in one of these subjobs and the main job aborts. So far, so good.&amp;nbsp;But the problem is that I want to call another job via a shell script if the job went through without problems.&amp;nbsp;For this I use the following code:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;STATUS="${?}"
if [ ${STATUS} -eq 0 ]; then echo "done!"&lt;/PRE&gt; 
&lt;P&gt;Unfortunately the main job doesn't end with error code 1 but with error code 0, so my script thinks the job went through without problems.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So the output of my job is:&lt;/P&gt; 
&lt;PRE&gt;00:07:15,034 WARN&amp;nbsp; Job_0_11.Job - 1&lt;BR /&gt;done!&lt;/PRE&gt; 
&lt;P&gt;I get the 1 as output, but the exit code remains the 0 so i get the string "done!". I hope you understand my problem.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 07:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284614#M58266</guid>
      <dc:creator>BooWseR</dc:creator>
      <dc:date>2019-10-18T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284615#M58267</link>
      <description>&lt;P&gt;Do you have a tPostJob component in your main job? If so, this will be the cause.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 16:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284615#M58267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-18T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284616#M58268</link>
      <description>&lt;P&gt;I haven't.&amp;nbsp;&lt;SPAN&gt;But I also just read the article and replied to it:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kT8oCAE" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/Job-in-Talend-failing-with-exit-code-0/m-p/122216&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;You already suspected something like that there.&lt;/P&gt; 
&lt;P&gt;Also the "error" occurs both in Talend itself and on the server as a "standalone" job.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 16:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284616#M58268</guid>
      <dc:creator>BooWseR</dc:creator>
      <dc:date>2019-10-18T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284617#M58269</link>
      <description>&lt;P&gt;The reason I asked that is that your screenshot shows a tPreJob and the bottom of the job cannot be seen. When people use tPreJob components, they generally use tPostJob components. This is a common cause for this issue. I have not seen this without a tPostJob. Can you recreate this in a test job? If you can, could you post it here so that I can see this?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 17:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284617#M58269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-18T17:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284618#M58270</link>
      <description>&lt;P&gt;Hi, from the screenshot, I also notice that all components seem linked to the PRE job. Thats usually not how you work with those. You have PRE and POST to handle connections, commit points etc, but your main part is not linked to the PRE or POST components.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This could now trigger all of the processing to be executed as a PRE job part, then fail, then the actual job part is executed but has nothing in it, so completes successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you separate the main job processing from the PRE part and try again?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 11:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284618#M58270</guid>
      <dc:creator>diazsmiedts</dc:creator>
      <dc:date>2019-10-23T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 0 despite NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284619#M58271</link>
      <description>&lt;P&gt;Sorry for my long response time but I couldn't reproduce the error in a simple job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took the whole job from a co-worker and unfortunately had no idea why he did it that way. Since this was also my first Talend project, I didn't question it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've had to rebuild the job anyway, so the problem doesn't occur anymore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nevertheless thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-code-0-despite-NullPointerException/m-p/2284619#M58271</guid>
      <dc:creator>BooWseR</dc:creator>
      <dc:date>2019-11-19T12:25:24Z</dc:date>
    </item>
  </channel>
</rss>

