<?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: Custom Code Routine runs well in the job but gives error when run in main job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259225#M40765</link>
    <description>&lt;P&gt;Sorry, I worded that very badly. Do not remove the "routine dependencies" on the jobs, in fact I would re-add them. I was talking about ensuring that you had the libraries related to your code directly linked with the routines, rather than doing it via the job (which lots of people used to do in previous versions.....but is not so easy now).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If that does not work, then it could be that this is caused by&lt;SPAN&gt;&amp;nbsp;another jar in the dependencies that has the same class (maybe another version of the same library) that doesn't have the method that is reported in the error. It could also be down to an old version of the library. The&amp;nbsp;java.lang.NoSuchMethodError&amp;nbsp;is fired&amp;nbsp;if some code tries to call a specified method of a class, and that class no longer has a definition of that method.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Is the job that is failing calling any methods of your routine that other jobs that are successful are not calling?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 09:24:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-16T09:24:23Z</dc:date>
    <item>
      <title>Custom Code Routine runs well in the job but gives error when run in main job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259222#M40762</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt; 
&lt;P&gt;I wrote a custom code routine that will read data from .csv file (generated from the job), format it according to custom XY graph format coloring and such. Refer my job below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4cv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147507iA316F4CB291EC60D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4cv.png" alt="0683p000009M4cv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I call the routine via tJava and below code settings:&lt;/P&gt; 
&lt;P&gt;routines.xyChart.main("Depth vs Days vs Cost");&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The class I have created called xyChart. This java code runs well in Eclipse, runs well in the above job (its immediate job name eDepthDaysCost) and the parent job that calls eDepthDaysCost below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 814px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4d0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135266i1AF7E949CC39B42E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4d0.png" alt="0683p000009M4d0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The above job executes the user routine well, but it gives error when I run the whole main job like below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 985px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Zj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129529i8C496FCC913C5220/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Zj.png" alt="0683p000009M4Zj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The error given:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 912px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4cD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133842i5D84B415D4C3E9A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4cD.png" alt="0683p000009M4cD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;All jobs (from main to its child that directly calls the custom code routine), has already be assigned with routine dependencies:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 358px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4dA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148457iB026FA496B02A355/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4dA.png" alt="0683p000009M4dA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please assists. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259222#M40762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Routine runs well in the job but gives error when run in main job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259223#M40763</link>
      <description>&lt;P&gt;You should assign the routine dependencies to the routine and not the job. Take a look here for an explanation&amp;nbsp;&lt;A href="https://help.talend.com/reader/HqPypUO_cLctKv_dAWcgFw/NgHaZeMdd1TnGz1bm_Hayw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/HqPypUO_cLctKv_dAWcgFw/NgHaZeMdd1TnGz1bm_Hayw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 13:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259223#M40763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-15T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Routine runs well in the job but gives error when run in main job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259224#M40764</link>
      <description>&lt;P&gt;Hi rhall,&lt;/P&gt; 
&lt;P&gt;Thanks for the reply. I have already removed Routine Dependencies in all jobs, and run the main job (top most job) again. In fact, I have put tJava in the top most job. The error still persists.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please advice. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 07:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259224#M40764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-16T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Code Routine runs well in the job but gives error when run in main job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259225#M40765</link>
      <description>&lt;P&gt;Sorry, I worded that very badly. Do not remove the "routine dependencies" on the jobs, in fact I would re-add them. I was talking about ensuring that you had the libraries related to your code directly linked with the routines, rather than doing it via the job (which lots of people used to do in previous versions.....but is not so easy now).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If that does not work, then it could be that this is caused by&lt;SPAN&gt;&amp;nbsp;another jar in the dependencies that has the same class (maybe another version of the same library) that doesn't have the method that is reported in the error. It could also be down to an old version of the library. The&amp;nbsp;java.lang.NoSuchMethodError&amp;nbsp;is fired&amp;nbsp;if some code tries to call a specified method of a class, and that class no longer has a definition of that method.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Is the job that is failing calling any methods of your routine that other jobs that are successful are not calling?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 09:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Custom-Code-Routine-runs-well-in-the-job-but-gives-error-when/m-p/2259225#M40765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-16T09:24:23Z</dc:date>
    </item>
  </channel>
</rss>

