<?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 not working as expected in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296521#M69175</link>
    <description>&lt;P&gt;System.out.println( input_row.lic_server_name  ) ;&lt;/P&gt;&lt;P&gt;To make sure it contains values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 15:44:06 GMT</pubDate>
    <dc:creator>Jesperrekuh</dc:creator>
    <dc:date>2020-09-30T15:44:06Z</dc:date>
    <item>
      <title>tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296519#M69173</link>
      <description>&lt;P&gt;I am using tJavaRow in TOS where in i am using following code to sort string: "gnbsx00061 gnbsx00063 gnx10326" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In tJAVARow :  After sorting it results in "gnx10326 gnbsx00061 gnbsx00063"&lt;/P&gt;&lt;P&gt;String [] licsvr = input_row.lic_server_name.split(" ");&lt;/P&gt;&lt;P&gt;java.util.Arrays.sort(licsvr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output_row.lic_server_name = java.util.Arrays.toString(licsvr).replace(",", "").replace("[",&amp;nbsp;"").replace("]",&amp;nbsp;"");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While if i run the same following java code in test.java file on standalone linux machine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import java.util.*;&lt;/P&gt;&lt;P&gt;public class test {&lt;/P&gt;&lt;P&gt;public static void main(String[] args) {&lt;/P&gt;&lt;P&gt;String p = "gnx10326 gnbsx00061 gnbsx00063";&lt;/P&gt;&lt;P&gt;String [] licsvr = p.split(" ");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.util.Arrays.sort(licsvr);&lt;/P&gt;&lt;P&gt;System.out.println(java.util.Arrays.toString(licsvr).replace(",", "").replace("[", "").replace("]", ""));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running it results in : &lt;/P&gt;&lt;P&gt;java test&lt;/P&gt;&lt;P&gt;gnbsx00061 gnbsx00063 gnx10326&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The linux java program output is what i am expecting.  please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296519#M69173</guid>
      <dc:creator>MKAPOOR1596038160</dc:creator>
      <dc:date>2020-09-30T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296520#M69174</link>
      <description>&lt;P&gt;Probably try it in tJava component instead of the tJavaRow and do the operations? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296520#M69174</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-09-30T15:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296521#M69175</link>
      <description>&lt;P&gt;System.out.println( input_row.lic_server_name  ) ;&lt;/P&gt;&lt;P&gt;To make sure it contains values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296521#M69175</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2020-09-30T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296522#M69176</link>
      <description>&lt;P&gt;tJavaRow in my design a part of flow and i transform one field using tJavaRow. How can i use tJava in this scenario?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296522#M69176</guid>
      <dc:creator>MKAPOOR1596038160</dc:creator>
      <dc:date>2020-09-30T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296523#M69177</link>
      <description>&lt;P&gt;Another point to highlight is that tJavaRow is doing sorting correctly in cases like &lt;/P&gt;&lt;P&gt;"gnbsx00016 gnbsx00013 gnbsx00014" gets transformed  correctly with tJavaRow to "gnbsx00013 gnbsx00014 gnbsx00016".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in case of gnbsx00063 gnbsx00061 gnx10326, it is unable to sort correctly by transforming it to "gnx10326 gnbsx00061 gnbsx00063" . &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expectation is to sort them in order of alphabetically first then numerically second but it is not happening with tJavaRow. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296523#M69177</guid>
      <dc:creator>MKAPOOR1596038160</dc:creator>
      <dc:date>2020-09-30T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296524#M69178</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.talend.com/s/profile/0053p000007LWAcAAO" alt="https://community.talend.com/s/profile/0053p000007LWAcAAO" target="_blank"&gt;MKAPOOR1596038160&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you are 100% sure that your tjavaRow sorting result is gnx10326 gnbsx00061 gnbsx00063 ?&lt;/P&gt;&lt;P&gt;I've tested your both codes and got the same result: gnbsx00061 gnbsx00063 gnx10326.&lt;/P&gt;&lt;P&gt;You are using the same method java.util.Arrays.sort so for me - it's not possible to get diffrent results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My tJava version&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String p = "gnx10326 gnbsx00061 gnbsx00063";&lt;/P&gt;&lt;P&gt;String[] licsvr = p.split(" ");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.util.Arrays.sort(licsvr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println(java.util.Arrays.toString(licsvr).replace(",", "").replace("[", "").replace("]", ""));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;tJavaRow version:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;input: &lt;/U&gt;gnx10326 gnbsx00061 gnbsx00063&lt;/P&gt;&lt;P&gt;String [] licsvr = input_row.lic_server_name.split(" ");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.util.Arrays.sort(licsvr);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output_row.lic_server_name = java.util.Arrays.toString(licsvr).replace(",", "").replace("[", "").replace("]", "");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 08:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296524#M69178</guid>
      <dc:creator>pakapi_</dc:creator>
      <dc:date>2020-10-01T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow not working as expected</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296525#M69179</link>
      <description>&lt;P&gt;I got this issue solved after replacing openjdk with oracle java and the version to 1.8.0.05.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help. &lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 09:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-not-working-as-expected/m-p/2296525#M69179</guid>
      <dc:creator>MKAPOOR1596038160</dc:creator>
      <dc:date>2020-10-01T09:58:39Z</dc:date>
    </item>
  </channel>
</rss>

