<?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 tJobRun with dynamic job run throws Exception on Karaf in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371913#M134804</link>
    <description>Hi, 
&lt;BR /&gt;I have a problem with tRunJob component set to use dynamic job on Apache Karaf Server.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Project description:&lt;/B&gt;
&lt;BR /&gt;I have one Camel route (named DummyRoute) with cTimer, sending messages from cSetBody to cTalendJob. cTalendJob calls job (named DummyJob) that performs a subjob (named DummySubJob) via tRunJob component. Important note here -
&lt;B&gt; tRunJob&lt;/B&gt; settings 
&lt;B&gt;"Use Dynamic Job"&lt;/B&gt; is checked and dynamic job mapping active. Subjob makes logging and project ends here. Simple. 
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Issue description:&lt;/B&gt;
&lt;BR /&gt;Project above works just fine in Talend Open Studio (both in Run and Debug mode). Runs every second and outputs the log message. Issue occures after deploying built .kar file to the Apache Karaf server. (OGSI container Apache Karaf). Camel Route is registered properly but execution fails and throws Exception on every run. Exception message is written below. Is says class file for DummySubJob couldn't be found, but .kar file includes 
&lt;B&gt;ALL&lt;/B&gt; neccesarry files - also DummySubJob.class file. This issue can be fixed by changing dynamic job mapping to static by unchecking "Use Dynamic Job", but this behaviour is highly undesirable. It seems that the dynamically-called class loaded by tRunJob cannot be instantiated in OGSI container, because it is not exported in OGSI manifest.
&lt;BR /&gt;
&lt;BR /&gt;I read the help for tRunJob component already but didn't find any useful information regarding this issue.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;Exception in component tRunJob_1&lt;BR /&gt;java.lang.RuntimeException: Child job returns 1. It doesn't terminate normally.&lt;BR /&gt;Error: Could not find or load main class dummyproject.dummysubjob_0_1.DummySubJob&lt;/I&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Software version:&lt;/B&gt;
&lt;BR /&gt;Talend Open Studio for ESB v5.6.2.2.20150508_1414
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Links to files:&lt;/B&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sanREVm9pZS1Temc" target="_blank" rel="nofollow noopener noreferrer"&gt;Talend Project in zip archive&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sLW5yandFTkxTQkE" target="_blank" rel="nofollow noopener noreferrer"&gt;.kar file in archive, ready to deploy on Karaf&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sbE15WGNaTVcxZ0E" target="_blank" rel="nofollow noopener noreferrer"&gt;Java Exception&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sVVBsQXJmMFQtWVE" target="_blank" rel="nofollow noopener noreferrer"&gt;Dynamic Job Run settings in tJobRun&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sTUhrZUxsN2dacG8" target="_blank" rel="nofollow noopener noreferrer"&gt;Unchecked "Dynamic Job Run", solution works OK deployed on Karaf&lt;/A&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:38:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:38:19Z</dc:date>
    <item>
      <title>tJobRun with dynamic job run throws Exception on Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371913#M134804</link>
      <description>Hi, 
&lt;BR /&gt;I have a problem with tRunJob component set to use dynamic job on Apache Karaf Server.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Project description:&lt;/B&gt;
&lt;BR /&gt;I have one Camel route (named DummyRoute) with cTimer, sending messages from cSetBody to cTalendJob. cTalendJob calls job (named DummyJob) that performs a subjob (named DummySubJob) via tRunJob component. Important note here -
&lt;B&gt; tRunJob&lt;/B&gt; settings 
&lt;B&gt;"Use Dynamic Job"&lt;/B&gt; is checked and dynamic job mapping active. Subjob makes logging and project ends here. Simple. 
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Issue description:&lt;/B&gt;
&lt;BR /&gt;Project above works just fine in Talend Open Studio (both in Run and Debug mode). Runs every second and outputs the log message. Issue occures after deploying built .kar file to the Apache Karaf server. (OGSI container Apache Karaf). Camel Route is registered properly but execution fails and throws Exception on every run. Exception message is written below. Is says class file for DummySubJob couldn't be found, but .kar file includes 
&lt;B&gt;ALL&lt;/B&gt; neccesarry files - also DummySubJob.class file. This issue can be fixed by changing dynamic job mapping to static by unchecking "Use Dynamic Job", but this behaviour is highly undesirable. It seems that the dynamically-called class loaded by tRunJob cannot be instantiated in OGSI container, because it is not exported in OGSI manifest.
&lt;BR /&gt;
&lt;BR /&gt;I read the help for tRunJob component already but didn't find any useful information regarding this issue.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;Exception in component tRunJob_1&lt;BR /&gt;java.lang.RuntimeException: Child job returns 1. It doesn't terminate normally.&lt;BR /&gt;Error: Could not find or load main class dummyproject.dummysubjob_0_1.DummySubJob&lt;/I&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Software version:&lt;/B&gt;
&lt;BR /&gt;Talend Open Studio for ESB v5.6.2.2.20150508_1414
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Links to files:&lt;/B&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sanREVm9pZS1Temc" target="_blank" rel="nofollow noopener noreferrer"&gt;Talend Project in zip archive&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sLW5yandFTkxTQkE" target="_blank" rel="nofollow noopener noreferrer"&gt;.kar file in archive, ready to deploy on Karaf&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sbE15WGNaTVcxZ0E" target="_blank" rel="nofollow noopener noreferrer"&gt;Java Exception&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sVVBsQXJmMFQtWVE" target="_blank" rel="nofollow noopener noreferrer"&gt;Dynamic Job Run settings in tJobRun&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://drive.google.com/open?id=0B3tN7UAeMH6sTUhrZUxsN2dacG8" target="_blank" rel="nofollow noopener noreferrer"&gt;Unchecked "Dynamic Job Run", solution works OK deployed on Karaf&lt;/A&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371913#M134804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: tJobRun with dynamic job run throws Exception on Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371914#M134805</link>
      <description>Hi,
&lt;BR /&gt;Could you please take a &amp;nbsp;look at a jira issue:
&lt;A href="https://jira.talendforge.org/browse/TESB-10858" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-10858&lt;/A&gt;?
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 18 May 2016 03:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371914#M134805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-18T03:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: tJobRun with dynamic job run throws Exception on Karaf</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371915#M134806</link>
      <description>Hello Sabrina,&lt;BR /&gt;I've read bug you sent carefully, but issue you've sent is different from mine. The problem I've described relates to checkbox "Use dynamic job" solely. With the "Use dynamic job" checked I my code fails on Karaf. Any ideas?</description>
      <pubDate>Thu, 19 May 2016 08:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJobRun-with-dynamic-job-run-throws-Exception-on-Karaf/m-p/2371915#M134806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-19T08:21:28Z</dc:date>
    </item>
  </channel>
</rss>

