<?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: Not Able to iterate through keySet of HashMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257326#M39449</link>
    <description>&lt;P&gt;That's strange. &amp;nbsp;I reconstructed the HashMap in one component and put it to the globalMap, then reference it in a second component in the same manner you did. &amp;nbsp;Everything seems to work fine, even if the Map is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was a job that's been working in the past? &amp;nbsp;Can you reproduce the error in the Studio? &amp;nbsp;I'm wondering if the error is actually being caused by that line of code. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 18:15:26 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-06-06T18:15:26Z</dc:date>
    <item>
      <title>Not Able to iterate through keySet of HashMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257325#M39448</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The following is the error logs:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Exception in component tJavaFlex_7&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;at gap_bond_mapping.manage_issue_bond_cda_0_1.Manage_Issue_Bond_CDA.tJavaFlex_4Process(Manage_Issue_Bond_CDA.java:1339)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the line 1339 which cause the error: (This is in the 2nd tJavaFlex component)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;for (String c9 : (Set&amp;lt;String&amp;gt;)((Map&amp;lt;String,Map&amp;lt;Long,Long&amp;gt;&amp;gt;)globalMap.get("lMap")).keySet()){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where lMap in my case is described below: (This is in the first tJavaFlex component followed by 2nd tJavaFlex component)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Map &amp;lt;String, Map&amp;lt;Long,Long&amp;gt;&amp;gt; result = new HashMap&amp;lt;String, Map&amp;lt;Long,Long&amp;gt;&amp;gt;();&lt;/P&gt;&lt;P&gt;globalMap.put("lMap",result);&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FFUL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257325#M39448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not Able to iterate through keySet of HashMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257326#M39449</link>
      <description>&lt;P&gt;That's strange. &amp;nbsp;I reconstructed the HashMap in one component and put it to the globalMap, then reference it in a second component in the same manner you did. &amp;nbsp;Everything seems to work fine, even if the Map is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was a job that's been working in the past? &amp;nbsp;Can you reproduce the error in the Studio? &amp;nbsp;I'm wondering if the error is actually being caused by that line of code. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257326#M39449</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-06T18:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not Able to iterate through keySet of HashMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257327#M39450</link>
      <description>&lt;P&gt;Thanks for reply, I replicate same scenario in Eclipse, all's working well.. I'm not sure what's the real reason to cause the error..&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 19:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257327#M39450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T19:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Not Able to iterate through keySet of HashMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257328#M39451</link>
      <description>&lt;P&gt;I looked over the screenshots you sent, and I can see what you're trying to do. The only thing I'm uncertain of is the order that everything executes. &amp;nbsp;Because your javaflex components are connected with flow connections, and because there's some parallelism between components, it's possible that the second component is trying to get() something from globalMap before the first component has put() it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to test that you're getting a non-null value when you retrieve "lmap".&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257328#M39451</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-06T20:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Not Able to iterate through keySet of HashMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257329#M39452</link>
      <description>&lt;P&gt;I moved the 2nd tJavaFlex to a subjob and then it worked!!! Appreciate your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Not-Able-to-iterate-through-keySet-of-HashMap/m-p/2257329#M39452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T20:31:26Z</dc:date>
    </item>
  </channel>
</rss>

