<?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: tJavaFlex java.lang.ArrayIndexOutOfBoundsException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361099#M125541</link>
    <description>&lt;P&gt;Good point rnathan2020&lt;SPAN class=""&gt;! thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Sep 2018 08:06:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-17T08:06:49Z</dc:date>
    <item>
      <title>tJavaFlex java.lang.ArrayIndexOutOfBoundsException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361094#M125536</link>
      <description>&lt;P&gt;Hi, I'm trying to parse strings into key-value pairs in a tJavaFlex so they can be loaded by tContextLoad in&amp;nbsp;Talend Studio 6.4.1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tSubJob - loads a config file and outputs the variables as a string&amp;nbsp; i.e. "Username;admin;" "Password;123;" etc&lt;/P&gt; 
&lt;P&gt;|&lt;/P&gt; 
&lt;P&gt;tJavaFlex - split into key-values&lt;/P&gt; 
&lt;P&gt;|&lt;/P&gt; 
&lt;P&gt;tContextLoad - load into environment variables&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;the code in tJavaFlex is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;String [] kvPairs = row6.contextString.split(";");&lt;BR /&gt;row5.key = kvPairs[0];&lt;BR /&gt;row5.value = kvPairs[1];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But i get the error below. row6 is definitely the input row and 5 the output.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in component tJavaFlex_1&lt;BR /&gt;java.lang.ArrayIndexOutOfBoundsException: 1&lt;BR /&gt;at tRunJob_2Process(CreateStressRateInMSS.java:4225)&lt;BR /&gt;at tJava_1Process(CreateStressRateInMSS.java:3416)&lt;BR /&gt;at runJobInTOS(CreateStressRateInMSS.java:5407)&lt;BR /&gt;at main(CreateStressRateInMSS.java:4960)&lt;BR /&gt;[FATAL]: tJavaFlex_1 1&lt;BR /&gt;java.lang.ArrayIndexOutOfBoundsException: 1&lt;BR /&gt;at tRunJob_2Process(CreateStressRateInMSS.java:4225)&lt;BR /&gt;at tJava_1Process(CreateStressRateInMSS.java:3416)&lt;BR /&gt;at runJobInTOS(CreateStressRateInMSS.java:5407)&lt;BR /&gt;at main(CreateStressRateInMSS.java:4960)&lt;BR /&gt;[statistics] disconnected&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Anyone any ideas?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361094#M125536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaFlex java.lang.ArrayIndexOutOfBoundsException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361095#M125537</link>
      <description>The above is done in the main section of tjavaflex btw</description>
      <pubDate>Thu, 19 Jul 2018 12:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361095#M125537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T12:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaFlex java.lang.ArrayIndexOutOfBoundsException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361096#M125538</link>
      <description>&lt;P&gt;This suggests that your String being split does not have a semicolon in it. The&amp;nbsp;&lt;SPAN&gt;java.lang.ArrayIndexOutOfBoundsException exception is a standard Java exception indicating that the array does not have the number of elements you are expecting. Can you just print the value held by&amp;nbsp;row6.contextString in your tJavaFlex....&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;System.out.println(row6.contextString);&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 12:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361096#M125538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaFlex java.lang.ArrayIndexOutOfBoundsException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361097#M125539</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;rhall&lt;SPAN class=""&gt;&amp;nbsp;when i inspected the output it was a null value for one of the values which was causing the issue. Have managed to fix it now.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361097#M125539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaFlex java.lang.ArrayIndexOutOfBoundsException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361098#M125540</link>
      <description>Good one. Actually I would enclose this kind of iffy code in try {} catch{} block.</description>
      <pubDate>Sun, 16 Sep 2018 19:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361098#M125540</guid>
      <dc:creator>rnathan2020</dc:creator>
      <dc:date>2018-09-16T19:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaFlex java.lang.ArrayIndexOutOfBoundsException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361099#M125541</link>
      <description>&lt;P&gt;Good point rnathan2020&lt;SPAN class=""&gt;! thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 08:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaFlex-java-lang-ArrayIndexOutOfBoundsException/m-p/2361099#M125541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-17T08:06:49Z</dc:date>
    </item>
  </channel>
</rss>

