<?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: tJavaRow returns ArrayIndexOutOfBoundsException after 10 rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232218#M22255</link>
    <description>&lt;P&gt;It works. Thank you for your explanation&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 03:50:29 GMT</pubDate>
    <dc:creator>Aznrhmn_97</dc:creator>
    <dc:date>2020-06-25T03:50:29Z</dc:date>
    <item>
      <title>tJavaRow returns ArrayIndexOutOfBoundsException after 10 rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232216#M22253</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Have you experience tJavaRow returns ArrayIndexOutOfBoundsException after 10 rows executed?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to normalize multi columns and use the tMap to generate the sequence and pass it to tJavaRow but after 10 rows, I got indexOutOfBoundsException error. I did check my array but all seems okay. Can someone help me?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my job flow, tJavaFlex-&amp;gt;onSubJob ok-&amp;gt;tFixedFlowInput-&amp;gt;tNormalize(here I only normalize first column)-&amp;gt;tMap(here I set the sequence using Numeric.sequence)-&amp;gt;tJavaRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The logic in tJavarow is&lt;/P&gt; 
&lt;PRE&gt;String[] attribute  = input_row.attributes.split(",");
String[] key = input_row.key.split(",");
String[] value = input_row.value.split(",");

int index = input_row.sequence;
output_row.productId = input_row.productId;
output_row.attributes = attribute[index];
output_row.key = key[index];
output_row.value = value[index];&lt;/PRE&gt; 
&lt;P&gt;Here is the error&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error indexOutBound tJavaRow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaHM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149623iF5B49B8EAFFAC50B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaHM.png" alt="0683p000009MaHM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232216#M22253</guid>
      <dc:creator>Aznrhmn_97</dc:creator>
      <dc:date>2024-11-16T02:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow returns ArrayIndexOutOfBoundsException after 10 rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232217#M22254</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you need to check your array (string to split) size and sequence column&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if array index bigger than number of elements - you will have error&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;also, array index starting from 0 and there you need to control as well - string with 10 elements will have indexes 0-9&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 00:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232217#M22254</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-06-25T00:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow returns ArrayIndexOutOfBoundsException after 10 rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232218#M22255</link>
      <description>&lt;P&gt;It works. Thank you for your explanation&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 03:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-returns-ArrayIndexOutOfBoundsException-after-10-rows/m-p/2232218#M22255</guid>
      <dc:creator>Aznrhmn_97</dc:creator>
      <dc:date>2020-06-25T03:50:29Z</dc:date>
    </item>
  </channel>
</rss>

