<?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 java.lang.NullPointerException,  when tLogRow has value not null in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377375#M139222</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I think the problem comes from (Integer)globalMap.get("row3.ReturnCode"), this expression return null value.  If ReturnCode is the schema column returned from tRunJob_2, you can change the job design as below:&lt;/P&gt;&lt;P&gt;...tRunJob_2--main--tJavaRow--runif1--tFileCopy&lt;/P&gt;&lt;P&gt;                                               --runIf2--tFileArchive&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;if(input_row.ReturnCode==0){&lt;/P&gt;&lt;P&gt;globalMap.put("doArchive",true);&lt;/P&gt;&lt;P&gt;globalMap.put("doCopy",false);&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;globalMap.put("doArchive",false);&lt;/P&gt;&lt;P&gt;globalMap.put("doCopy",true);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf1:&lt;/P&gt;&lt;P&gt;(boolean)globalMap.get("doCopy")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf2:&lt;/P&gt;&lt;P&gt;(boolean)globalMap.get("doArchive")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Dec 2021 03:04:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-29T03:04:25Z</dc:date>
    <item>
      <title>Error java.lang.NullPointerException,  when tLogRow has value not null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377373#M139220</link>
      <description>&lt;P&gt;Hello, Im new in Talend and I have some error.&lt;/P&gt;&lt;P&gt;TOS 7.3&lt;/P&gt;&lt;P&gt; I have Job exceloader8 which takes data from the excel file and loads into Oracle &lt;/P&gt;&lt;P&gt;table, &lt;/P&gt;&lt;P&gt;then archives and removes excel file from directory. Command to delete a file comes from tRunJob_2 as a variable ReturnCode &lt;/P&gt;&lt;P&gt;If "0" then tFileArchive,&lt;/P&gt;&lt;P&gt; If "1" then tFileCopy.&lt;/P&gt;&lt;P&gt;I get the value "0" from tRunJob_2 (tLogRow_2), but tJavaFlex_1 gives an error&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Exception in component tJavaFlex_1 (exceloader8)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;	at investigation_new.exceloader8_0_1.exceloader8.tFileList_1Process(exceloader8.java:1272)&lt;/P&gt;&lt;P&gt;	at investigation_new.exceloader8_0_1.exceloader8.runJobInTOS(exceloader8.java:2257)&lt;/P&gt;&lt;P&gt;	at investigation_new.exceloader8_0_1.exceloader8.main(exceloader8.java:2081)&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;My &lt;/P&gt;&lt;P&gt;tJavaFlex_1 is empty, fnd If(order:1) and If(order:2) have next code:&lt;/P&gt;&lt;P&gt; If(order:1) &lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("row3.ReturnCode")) != 0 If(order:2) &lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("row3.ReturnCode")) == 0I cannot understand why I am getting &lt;/P&gt;&lt;P&gt;NullPointerException &lt;/P&gt;&lt;P&gt;errorI would be grateful for your help&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377373#M139220</guid>
      <dc:creator>ATernovenko</dc:creator>
      <dc:date>2024-11-15T23:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error java.lang.NullPointerException,  when tLogRow has value not null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377374#M139221</link>
      <description>&lt;P&gt;my screenshots:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LyqWhAAJ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153897i671B9B8697C33839/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LyqWhAAJ.jpg" alt="0695b00000LyqWhAAJ.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LyqWcAAJ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154913i5562CB3C8365C1AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LyqWcAAJ.jpg" alt="0695b00000LyqWcAAJ.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 16:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377374#M139221</guid>
      <dc:creator>ATernovenko</dc:creator>
      <dc:date>2021-12-28T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error java.lang.NullPointerException,  when tLogRow has value not null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377375#M139222</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I think the problem comes from (Integer)globalMap.get("row3.ReturnCode"), this expression return null value.  If ReturnCode is the schema column returned from tRunJob_2, you can change the job design as below:&lt;/P&gt;&lt;P&gt;...tRunJob_2--main--tJavaRow--runif1--tFileCopy&lt;/P&gt;&lt;P&gt;                                               --runIf2--tFileArchive&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;if(input_row.ReturnCode==0){&lt;/P&gt;&lt;P&gt;globalMap.put("doArchive",true);&lt;/P&gt;&lt;P&gt;globalMap.put("doCopy",false);&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;globalMap.put("doArchive",false);&lt;/P&gt;&lt;P&gt;globalMap.put("doCopy",true);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf1:&lt;/P&gt;&lt;P&gt;(boolean)globalMap.get("doCopy")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set the condition of runIf2:&lt;/P&gt;&lt;P&gt;(boolean)globalMap.get("doArchive")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 03:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377375#M139222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-29T03:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error java.lang.NullPointerException,  when tLogRow has value not null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377376#M139223</link>
      <description>&lt;P&gt;Shong, thanks for advice! &lt;/P&gt;&lt;P&gt;I tried to do what you advised, but nothing came of it. The error is repeated. Error in tJavaRow block. &lt;/P&gt;&lt;P&gt;I think the problem is in the tRunJob_2 object.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 09:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377376#M139223</guid>
      <dc:creator>ATernovenko</dc:creator>
      <dc:date>2021-12-30T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error java.lang.NullPointerException,  when tLogRow has value not null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377377#M139224</link>
      <description>&lt;P&gt;the error occurs on tJavaFlex component. For debugging, deactivate the runIf link and tFilexxx Components and run again to see if the problem still exists.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 10:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-java-lang-NullPointerException-when-tLogRow-has-value-not/m-p/2377377#M139224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-30T10:02:06Z</dc:date>
    </item>
  </channel>
</rss>

