<?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: System.Exit() in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231923#M22059</link>
    <description>Thanks Michaël!&lt;BR /&gt;Yes, I've forgotten this component &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;I only did look for a solution to cancel a script within an own function (because we talked about java code).&lt;BR /&gt;@Arnaud: Will this help you?&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
    <pubDate>Tue, 20 Jan 2009 06:14:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-01-20T06:14:00Z</dc:date>
    <item>
      <title>System.Exit()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231918#M22054</link>
      <description>Hello,&lt;BR /&gt;I'd like to manage several different exit code in my job. I'd like to exit my job with code 1 if no file, with code 2 if the file contains less than 2 lines, etc...&lt;BR /&gt;I can exit my job by typing:&lt;BR /&gt;   System.exit(2);&lt;BR /&gt;It works.&lt;BR /&gt;But, as soon as I try to put the exit code in variable:&lt;BR /&gt;    Integer myErrorCode = 2;&lt;BR /&gt;    System.exit(myErrorCode);&lt;BR /&gt;It does not work... The error is:&lt;BR /&gt;     Exception in component tJava_1&lt;BR /&gt;     java.lang.NullPointerException&lt;BR /&gt;Any idea ? Does anyone of you try this ???&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;Arnaud</description>
      <pubDate>Sat, 16 Nov 2024 14:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231918#M22054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exit()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231919#M22055</link>
      <description>Sorry, I don't know what happened, but I've juste retried and .... it works !
&lt;BR /&gt;The demo effect...
&lt;BR /&gt;Arnaud</description>
      <pubDate>Fri, 16 Jan 2009 10:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231919#M22055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-16T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exit()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231920#M22056</link>
      <description>hi, 
&lt;BR /&gt;i'm not a 'pro in java' but some precision about exit method : 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I'd like to exit my job with code&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;but exit() method is more than just exit the job 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Terminates the currently running Java Virtual Machine&lt;BR /&gt;...&lt;BR /&gt; The call System.exit(n) is effectively equivalent to the call:&lt;BR /&gt; Runtime.getRuntime().exit(n)&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I know that i 've had some "suprises" first times I have use it ...</description>
      <pubDate>Fri, 16 Jan 2009 13:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231920#M22056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-16T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exit()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231921#M22057</link>
      <description>Hi Arnaud, 
&lt;BR /&gt;using System.exit() in Java is mostly a bad solution. This will, as kzone mentioned, immediately terminate the JVM. 
&lt;BR /&gt;The bad point is that I don't know how to do it right. There is a global static variable called errorCode which value is passed to the caller but I think setting its value will not stop processing and may be overwritten at a later time. 
&lt;BR /&gt;Will someone of the Talend team have a good answer? May we create a feature request for a special function? 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 19 Jan 2009 22:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231921#M22057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-19T22:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exit()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231922#M22058</link>
      <description>Hello, &lt;BR /&gt;tDie allow you to finish your job with an error X configurable in the component properties.&lt;BR /&gt;Am I missing something ?&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 19 Jan 2009 22:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231922#M22058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-19T22:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exit()</title>
      <link>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231923#M22059</link>
      <description>Thanks Michaël!&lt;BR /&gt;Yes, I've forgotten this component &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;I only did look for a solution to cancel a script within an own function (because we talked about java code).&lt;BR /&gt;@Arnaud: Will this help you?&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 20 Jan 2009 06:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/System-Exit/m-p/2231923#M22059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-20T06:14:00Z</dc:date>
    </item>
  </channel>
</rss>

