<?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: GlobalMap variable Error, java.lang.NullPointerException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371688#M134600</link>
    <description>&lt;P&gt;Have a lot of tHash component in a job is't a problem,  it depends on your data volume. Caching large amounts of data in the memory will affect performance, if the amount of data is not large, there is no significant performance difference.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 09:08:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-30T09:08:18Z</dc:date>
    <item>
      <title>GlobalMap variable Error, java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371683#M134595</link>
      <description>&lt;P&gt;I need to count how many input i have before starting the component tDenormalizeSortedRow (If i put a number that are not the correct number of line, the last values are lost). &lt;/P&gt;&lt;P&gt;The problem is that i used a global variable : ((Integer)globalMap.get("tConvertType_1_NB_LINE"))&lt;/P&gt;&lt;P&gt;but it return a :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception in component tJava_1 (TestIDuniqueextract)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don"t know why the global variable is null, &lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009H6loAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142530iFB882AD96A23D581/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009H6loAAC.png" alt="0693p000009H6loAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371683#M134595</guid>
      <dc:creator>LDPtechAFB</dc:creator>
      <dc:date>2024-11-16T01:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalMap variable Error, java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371684#M134596</link>
      <description>&lt;P&gt;The global variable ((Integer)globalMap.get("tConvertType_1_NB_LINE")) is available on the next subjob, eg:&lt;/P&gt;&lt;P&gt;...tConvertType--main--tHashOutput&lt;/P&gt;&lt;P&gt; |onsubjobok&lt;/P&gt;&lt;P&gt;tHashInpu--main--tDenormalizedSortRow....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tDenormalizedSortRow, you can use the global variable ((Integer)globalMap.get("tConvertType_1_NB_LINE")), and it has value now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is tJava_1 component which throws the NPE, can you show us the code on tJava_1?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371684#M134596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalMap variable Error, java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371685#M134597</link>
      <description>&lt;P&gt;The Tjava error might be a mistake from me, the error is just &lt;/P&gt;&lt;P&gt;Exception in component tDenormalizeSortedRow_1 &lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do to have the NB of row from the tConvertType Component ? &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009HKocAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149879iF6797448F71933CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009HKocAAG.png" alt="0693p000009HKocAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the current schema i used : &lt;/P&gt;&lt;P&gt;HashOutput are used because i can't use ExtractDelimitedField as Lookup for my tmap.&lt;/P&gt;&lt;P&gt;But you said that NB_LINE only work on the next subjob, so i have to use &lt;/P&gt;&lt;P&gt;tConvertType--&amp;gt;--&amp;gt;thashOutput --&amp;gt; thashInput--&amp;gt; tDenormalizedSortedRow--&amp;gt;tExtractDelimitedField --&amp;gt; thashOutput --&amp;gt; thashInput--&amp;gt; tmap ...etc&lt;/P&gt;&lt;P&gt;is it a good solution or multiply the thashobject are problematic ?&lt;/P&gt;&lt;P&gt;Thanks for your answer &lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371685#M134597</guid>
      <dc:creator>LDPtechAFB</dc:creator>
      <dc:date>2020-07-30T07:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalMap variable Error, java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371686#M134598</link>
      <description>&lt;P&gt;((Integer)globalMap.get("tConvertType_1_NB_LINE")) return NULL value if you use it in the same flow, that's why you are getting NPE error. Can you share a full screenshot of your job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371686#M134598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T07:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalMap variable Error, java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371687#M134599</link>
      <description>&lt;P&gt;Here is a full screenshot of my job &lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009HKppAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148910i94ED0FCAC0CA8337/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009HKppAAG.png" alt="0693p000009HKppAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I followed your advices and the job work well.&lt;/P&gt;&lt;P&gt;My last question is : &lt;/P&gt;&lt;P&gt;Have a lot of thash component isn't a problem (concerning performance, quality ...etc) ?&lt;/P&gt;&lt;P&gt;in this case my thash input 9.10.11.12 free the datas after reading, so it should not be a problem but i prefer have your confirmation.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371687#M134599</guid>
      <dc:creator>LDPtechAFB</dc:creator>
      <dc:date>2020-07-30T08:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalMap variable Error, java.lang.NullPointerException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371688#M134600</link>
      <description>&lt;P&gt;Have a lot of tHash component in a job is't a problem,  it depends on your data volume. Caching large amounts of data in the memory will affect performance, if the amount of data is not large, there is no significant performance difference.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 09:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/GlobalMap-variable-Error-java-lang-NullPointerException/m-p/2371688#M134600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T09:08:18Z</dc:date>
    </item>
  </channel>
</rss>

