<?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 Getting the exception message of a subjob in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360485#M125056</link>
    <description>Hi,&lt;BR /&gt;I have a job running another job with a tRunJob component and I would like to send an email when this job fails.&lt;BR /&gt;So I'm using a tSendMail with an OnSubjobError trigger.&lt;BR /&gt;I set the content of the mail to ((String)globalMap.get("tRunJob_1_ERROR_MESSAGE"))&lt;BR /&gt;but unfortunately, this retrieves only a generic message like: 'Child job running failed'&lt;BR /&gt;I would like to get the corresponding exception message:&lt;BR /&gt;Exception in ....&lt;BR /&gt;at ...&lt;BR /&gt;at ...&lt;BR /&gt;How can I do that ?</description>
    <pubDate>Sat, 16 Nov 2024 13:59:06 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T13:59:06Z</dc:date>
    <item>
      <title>Getting the exception message of a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360485#M125056</link>
      <description>Hi,&lt;BR /&gt;I have a job running another job with a tRunJob component and I would like to send an email when this job fails.&lt;BR /&gt;So I'm using a tSendMail with an OnSubjobError trigger.&lt;BR /&gt;I set the content of the mail to ((String)globalMap.get("tRunJob_1_ERROR_MESSAGE"))&lt;BR /&gt;but unfortunately, this retrieves only a generic message like: 'Child job running failed'&lt;BR /&gt;I would like to get the corresponding exception message:&lt;BR /&gt;Exception in ....&lt;BR /&gt;at ...&lt;BR /&gt;at ...&lt;BR /&gt;How can I do that ?</description>
      <pubDate>Sat, 16 Nov 2024 13:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360485#M125056</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the exception message of a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360486#M125057</link>
      <description>Hi,&lt;BR /&gt;What about the LogCatcher? There you could specify that Java exception should be catched. From there you can create a new flow like writing to a log or database as sending a mail, too.&lt;BR /&gt;&lt;BR /&gt;Danny</description>
      <pubDate>Tue, 21 Apr 2009 12:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360486#M125057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T12:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the exception message of a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360487#M125058</link>
      <description>Hi wizard, I still need some of your magic,
&lt;BR /&gt;I've tried your solution but the LogCatcher returns something like this:
&lt;BR /&gt;2009-04-21 12:21:47|WWS9MD|WWS9MD|WWS9MD|my_project|my_job|Default|6|Java Exception|tRunJob_1|Child job running failed|1
&lt;BR /&gt;It contains an error message telling me that there was an exception, but it doesn't hold the exception message itself, I want to retrieve this:
&lt;BR /&gt;Exception in component tJava_1
&lt;BR /&gt;java.lang.ArithmeticException: / by zero
&lt;BR /&gt; at my_project.test_0_1.test.tJava_1Process(test.java:159)
&lt;BR /&gt; at my_project.test_0_1.test.runJobInTOS(test.java:301)
&lt;BR /&gt; at my_project.test_0_1.test.runJob(test.java:229)
&lt;BR /&gt; at my_project.my_job_0_1.my_job.tRunJob_1Process(my_job.java:1000)
&lt;BR /&gt; at my_project.my_job_0_1.my_job.runJobInTOS(my_job.java:1462)
&lt;BR /&gt; at my_project.my_job_0_1.my_job.main(my_job.java:1358)
&lt;BR /&gt;Exception in component tRunJob_1
&lt;BR /&gt;java.lang.RuntimeException: Child job running failed
&lt;BR /&gt;Any idea ?</description>
      <pubDate>Tue, 21 Apr 2009 13:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360487#M125058</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-04-21T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the exception message of a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360488#M125059</link>
      <description>No Problem, I still have mana left ;-).&lt;BR /&gt;Let a JavaRow component be the target of the logCatcher with the following line of code:&lt;BR /&gt;System.out.println(globalMap.get(&amp;lt;input_row&amp;gt;.origin+"_CHILD_EXCEPTION_STACKTRACE"));&lt;BR /&gt;This should do the trick. The Stacktrace is saved in a the globalMap object. The key is a concatentation of the exceptionthrowing component an the final String upon.</description>
      <pubDate>Tue, 21 Apr 2009 14:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360488#M125059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T14:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the exception message of a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360489#M125060</link>
      <description>Unfortunately, the option you are talking about seems to be available only in the milestone release of the TOS (
&lt;A href="http://www.talendforge.org/bugs/view.php?id=5409" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=5409&lt;/A&gt;)
&lt;BR /&gt;I'm using the latest stable release (3.0.4) and I cannot see the CHILD_EXCEPTION_STACKTRACE feature.
&lt;BR /&gt;I really cannot use a milestone release in production...</description>
      <pubDate>Tue, 21 Apr 2009 15:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360489#M125060</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-04-21T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the exception message of a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360490#M125061</link>
      <description>hi,
&lt;BR /&gt;perhaps , if you have to use stable release , you can add variable in the code source like show 
&lt;BR /&gt;
&lt;A href="http://talendforge.org/trac/tos/changeset/23149" target="_blank" rel="nofollow noopener noreferrer"&gt;there&lt;/A&gt;
&lt;BR /&gt;hope it help you
&lt;BR /&gt;regards
&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 21 Apr 2009 16:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-the-exception-message-of-a-subjob/m-p/2360490#M125061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T16:09:46Z</dc:date>
    </item>
  </channel>
</rss>

