<?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: Exception - The hash is not initialized : The hash must exist... in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354780#M120674</link>
    <description>Hi jlolling, I have updated the screenshot now. 
&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 23 Jul 2014 12:36:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-23T12:36:29Z</dc:date>
    <item>
      <title>Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354778#M120672</link>
      <description>Hi, 
&lt;BR /&gt;I have a job (REST service) to get company information from a database. I use tHashOutput to store the user input in the memory and after database connection is set I read that user input data from memory using tHashInput which then passes the data onto another database component for processing. 
&lt;BR /&gt;It has all worked up until when I tried to test the service using JMeter to simulate multiple users making using the service - the service works at times e.g. success with 10 users and at other times I get the below error with the same number of users: 
&lt;BR /&gt;Exception in component tHashInput_2 
&lt;BR /&gt;java.lang.RuntimeException: The hash is not initialized : The hash must exist before you read from it 
&lt;BR /&gt;I had&amp;nbsp;OnComponentOk links between tHashOutput and tJDBCConnection and between&amp;nbsp;tJDBCConnection and tHashInput components and on advise from another post here on Talend Forum I have deleted the OnComponentOk links between tHashOutput and tJDBCConnection and created a&amp;nbsp;OnSubjobOk link between tRESTComponent and&amp;nbsp;tJDBCConnection. Also I changed the trigger (Linking tJDBCConnection and tHashInput component) from OnComponentOk to OnSubjobOk.&amp;nbsp; 
&lt;BR /&gt;But I still get the Java error mentioned above. 
&lt;BR /&gt;Please see the screenshot (In parts as uploading the whole screenshot makes it too small here) attached and I would greatly appreciate your help in resolving this issue. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEbH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129218i74BDD61A00373EEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEbH.png" alt="0683p000009MEbH.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEbM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143799i2C482EEC2ED580A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEbM.png" alt="0683p000009MEbM.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEbR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129803i0CA3329C049D3875/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEbR.png" alt="0683p000009MEbR.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEbW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154955iAB99E7511D7959D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEbW.png" alt="0683p000009MEbW.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEZl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148593i4CE0CBE631FC6C29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEZl.png" alt="0683p000009MEZl.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEXL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128278i80F9B92B96534D40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEXL.png" alt="0683p000009MEXL.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDaG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129760i26F1108BBE4225E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDaG.png" alt="0683p000009MDaG.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 22 Jul 2014 18:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354778#M120672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354779#M120673</link>
      <description>You should post the whole job as screenshot. With this picture I cannot spot the problem.&lt;BR /&gt;This error happens when you are trying to read before linked tHashOutput has finished the writings -&amp;gt; In any way you have managed to start the reading before the writing has been finished.</description>
      <pubDate>Tue, 22 Jul 2014 20:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354779#M120673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T20:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354780#M120674</link>
      <description>Hi jlolling, I have updated the screenshot now. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 23 Jul 2014 12:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354780#M120674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T12:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354781#M120675</link>
      <description>hi,&lt;BR /&gt;you try to read hashmap as soon as dbConnection is Ok, not when your input in hashmap is ok ...&lt;BR /&gt;link dbConnection with preJob and on subJobOk from subJob putting data in hashmap&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Wed, 23 Jul 2014 13:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354781#M120675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T13:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354782#M120676</link>
      <description>Hi Laurent, 
&lt;BR /&gt;First I had: 
&lt;BR /&gt;thashOutput&amp;nbsp; -&amp;gt; OnComponentOK -&amp;gt; tJDBCConnection -&amp;gt; OnComponentOK-&amp;gt; thashInput&amp;nbsp; (I had the issue as described in my post above) 
&lt;BR /&gt;Then I changed to: 
&lt;BR /&gt;thashOutput&amp;nbsp; -&amp;gt; OnComponentOK -&amp;gt; tJDBCConnection -&amp;gt; OnSubjobOK -&amp;gt; thashInput&amp;nbsp; (Issue still there) 
&lt;BR /&gt;Then I changed to: 
&lt;BR /&gt;tRESTRequest-&amp;gt; OnSubjobOK -&amp;gt; tJDBCConnection -&amp;gt; OnSubjobOK -&amp;gt; thashInput (Issue still there) 
&lt;BR /&gt;I did not want connection pooling to be as part of the prejob but just to check if that resolves the issue I have linked tJDBCConnection with prejob and now have: 
&lt;BR /&gt;thashOutput&amp;nbsp; -&amp;gt; OnComponentOK&amp;nbsp; -&amp;gt; thashInput -&amp;gt; tJDBCSP (This now causes a Java NullPointerException at the jJDBCSP component) 
&lt;BR /&gt;While tJDBCConnection is linked with prejob I also tried: 
&lt;BR /&gt;tRESTRequest-&amp;gt; OnSubjobOK -&amp;gt; thashInput -&amp;gt; tJDBCSP (But still get a Java NullPointerException at the jJDBCSP component) 
&lt;BR /&gt;Without the tHashOutput and tHashInput components (Still get the Java NullPointerException) 
&lt;BR /&gt;Please see my screenshot. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEY9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130902i5FFB1586558D6F7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEY9.png" alt="0683p000009MEY9.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEbN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150558i762EEB52AF3103AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEbN.png" alt="0683p000009MEbN.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEW4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141765iB6108DE52384BAA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEW4.png" alt="0683p000009MEW4.png" /&gt;&lt;/span&gt;http://www.talendforge.org/forum/img/members/196945/mini_New_tHash_Problem_Part_4.png.png 
&lt;BR /&gt;http://www.talendforge.org/forum/img/members/196945/mini_New_tHash_Problem_Part_5.png.png</description>
      <pubDate>Wed, 23 Jul 2014 15:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354782#M120676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T15:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354783#M120677</link>
      <description>Hi jlolling,
&lt;BR /&gt;Please let me know what your thoughts are on my post (#1) which shows the full screenshot.
&lt;BR /&gt;thanks</description>
      <pubDate>Wed, 23 Jul 2014 17:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354783#M120677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354784#M120678</link>
      <description>It's another error in your DBSp ... check parameter ... one of them is null I guess !
&lt;BR /&gt;regards
&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 24 Jul 2014 09:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354784#M120678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-24T09:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354785#M120679</link>
      <description>Yes laurent, it is the result parameter that is of type RECORD SET in the tJDBCSP component and it is added to the schema in the tXMLMap component and passed onto the tJDBCSP component. 
&lt;BR /&gt;But when I had the tHashOutput and tHashInput components before, result was being added to the schema in tHashInput and passed (Without being assigned any value) onto the tJDBCSP component and I did not get this exception. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 24 Jul 2014 10:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354785#M120679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-24T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception - The hash is not initialized : The hash must exist...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354786#M120680</link>
      <description>in your scenario it will better to use tSetGlobalVar I guess as you manage data not flow.&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=tSetGlobalVar&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tSetGlobalVar&amp;amp;content-lang=en&lt;/A&gt;&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 24 Jul 2014 12:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-The-hash-is-not-initialized-The-hash-must-exist/m-p/2354786#M120680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-24T12:15:21Z</dc:date>
    </item>
  </channel>
</rss>

