Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
toos
Contributor
Contributor

[TOS 5.0.1] tRunJob use dynamic job fails (not in the job list)

Hi
I try to use the property "use dynamic job".
In the field "Context job" I give the path and the name of the job to run (using the context.
The job's tree is :
Jobs -> TRT_01_...
-> TRT_02_INS_FB -> INS_FB_...
-> INS_FB_SIG ->...
->ART-> ...
-> J_FB_SIG_ART_DBL


The paths is : TRT_02_INS_FB\INS_FB_SIG\ART\
and the job name is : J_FB_SIG_ART_DBL

When executed :
 
Démarrage du job J_FB_main a 16:15 30/03/2012.
connecting to socket on port 3515
connected
Exception in component tRunJob_6
java.lang.RuntimeException: The child job named TRT_02_INS_FB\INS_FB_SIG\ART\J_FB_SIG_ART_DBL is not in the job list.
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.tRunJob_6Process(J_FB_main.java:1890)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.runJobInTOS(J_FB_main.java:2445)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.main(J_FB_main.java:2127)
140 milliseconds
disconnected
Job J_FB_main terminé à 16:15 30/03/2012.

What is wrong ?
Best regards
Labels (3)
12 Replies
Anonymous
Not applicable

Hi
The usage of "Dynamic job" is as follow.
Regards,
Pedro
toos
Contributor
Contributor
Author

Thanks a lot : it works fine.
toos
Contributor
Contributor
Author

Hi
I don't know why but sometimes I've a problem with my dynamics tRunJob :
In the screenshot, tRunJob_6 and tRunJob_11 are dynamics, I declared them as suggested by Pedro

After J_FB_SYN (not dynamic : runs well) ,the first dynamic job is called but doesn't run :
   TRT_FEUILLE_DEBUT | null
TRT_NBR_FEUILLE_FIN | null
*** 12/04/2012 14:09:15 J_FB_SYN FIN
Exception in component tRunJob_6
java.lang.RuntimeException: Child job return 1. It doesn't terminate normally.
java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/persistent/PersistentRowSorterIterator
Caused by: java.lang.ClassNotFoundException: org.talend.designer.components.lookup.persistent.PersistentRowSorterIterator
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: mf2_mcrpdcs.j_fb_mag_art_dbl_0_1.J_FB_MAG_ART_DBL. Program will exit.
Exception in thread "main"
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.tRunJob_6Process(J_FB_main.java:2495)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.tRunJob_8Process(J_FB_main.java:2173)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.tFileInputExcel_1Process(J_FB_main.java:1954)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.tChronometerStart_1Process(J_FB_main.java:1125)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.tPrejob_1Process(J_FB_main.java:1025)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.runJobInTOS(J_FB_main.java:3514)
at mf2_mcrpdcs.j_fb_main_0_1.J_FB_main.main(J_FB_main.java:3157)
60084 milliseconds
disconnected
Job J_FB_main terminé à 14:09 12/04/2012.

I tried to install TOS in a path without the blancs, but it's the same ...

Edit : an other error :
In this job, there is a loop for run 10 child_jobs.
It runs well from 1 to 9 but in 10 loop an error occurs

Démarrage du job Run_FS_SIG_ART a 16:56 12/04/2012.
connecting to socket on port 3494
connected
Lancement de : FS_SIG_ART_01
Lancement de : FS_SIG_ART_02
Lancement de : FS_SIG_ART_03
Lancement de : FS_SIG_ART_04
Lancement de : FS_SIG_ART_05
Lancement de : FS_SIG_ART_06
Lancement de : FS_SIG_ART_07
Lancement de : FS_SIG_ART_08
Lancement de : FS_SIG_ART_09
Lancement de : FS_SIG_ART_10
Exception in component tRunJob_2
java.lang.RuntimeException: Child job return 1. It doesn't terminate normally.
Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/apache/oro/text/GlobCompiler
at extract_art.fs_sig_art_10_0_1.FS_SIG_ART_10.tPostjob_1Process(FS_SIG_ART_10.java:5761)
at extract_art.fs_sig_art_10_0_1.FS_SIG_ART_10.runJobInTOS(FS_SIG_ART_10.java:6419)
at extract_art.fs_sig_art_10_0_1.FS_SIG_ART_10.main(FS_SIG_ART_10.java:6141)
Caused by: java.lang.Error: java.lang.NoClassDefFoundError: org/apache/oro/text/GlobCompiler
at extract_art.fs_sig_art_10_0_1.FS_SIG_ART_10.tFileList_1Process(FS_SIG_ART_10.java:6095)
at extract_art.fs_sig_art_10_0_1.FS_SIG_ART_10.tPostjob_1Process(FS_SIG_ART_10.java:5746)
... 2 more
Caused by: java.lang.NoClassDefFoundError: org/apache/oro/text/GlobCompiler
at extract_art.fs_sig_art_10_0_1.FS_SIG_ART_10.tFileList_1Process(FS_SIG_ART_10.java:5809)
... 3 more
Caused by: java.lang.ClassNotFoundException: org.apache.oro.text.GlobCompiler
disconnected
disconnected
disconnected
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
at extract_art.run_fs_sig_art_0_1.Run_FS_SIG_ART.tLoop_1Process(Run_FS_SIG_ART.java:1033)
at extract_art.run_fs_sig_art_0_1.Run_FS_SIG_ART.runJobInTOS(Run_FS_SIG_ART.java:1285)
at extract_art.run_fs_sig_art_0_1.Run_FS_SIG_ART.main(Run_FS_SIG_ART.java:1132)
Job Run_FS_SIG_ART terminé à 17:03 12/04/2012.

Any idea ?
Best regards
toos
Contributor
Contributor
Author

Hi Pedro
When I check "Use dynamic job" the case "Use an independant process to run subjob." is not available.
So, I've unchecked "Use dynamic job" and I 've verified that "Use an independant process to run subjob." wasn't checked before.
What do you suggest ?
Best regards
Anonymous
Not applicable

Hi
Please report it on BugTracker.
Regards,
Pedro
_AnonymousUser
Specialist III
Specialist III

Hi,
I have 20 jobs created. I create a 21st job with a Trunjob component to run all the 20 jobs created with Dynamic Job option selected. In the Context job field, I am providing the name of the First job in the list of 20. But it executes only that job and not the subsequent 19 jobs.
Please help me on this as soon as possible.
Anonymous
Not applicable

Hi,
I have 20 jobs created. I create a 21st job with a Trunjob component to run all the 20 jobs created with Dynamic Job option selected. In the Context job field, I am providing the name of the First job in the list of 20. But it executes only that job and not the subsequent 19 jobs.
Please help me on this as soon as possible.

I think you have a wrong understand with Dynamic Job option, this option is designed to run the child job dynamically, you have to define a context variable and set a default value with job name, the job name can be changed at run time. If you want all the jobs to run sequentially, write all the job names in a file or store them in DB, read the job names from a file or DB, and then iterate each job name and pass it to the context variable. The job deisgn looks like:
tFileInputDelimited--row1(main)--tFlowToIterate--tJava--oncomponentok--tRunJob
on tJava: initial the context vaiable with current job name,
context.jobName=row1.jobName;
Shong
_AnonymousUser
Specialist III
Specialist III

Hi Shong,
Thanx a lot for the prompt reply. Can u design a sample job and share its snapshot ? It would be of immense help.
Anonymous
Not applicable

Hi
This is a simple job, you should understand what I have described if you know how to use tFlowToIterate component, I would suggest you to learn tFlowToIteratecomponent.
Shong