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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

tRunJob with dynamic jobs problem in TOS 6.0.0

Hi all,
I'm encountering a problem with running tRunJob component with dynamic job option. It worked perfectly in TOS 5.5.1, but in version 6.0.0 it seems broken.
I create a very simple job using a tRunJob component with Use Dynamic Job checked (I select two jobs containing nothing but a default tJava component, and I set the Context job name). When I run the job from TOS, everything works fine, but when I build a standalone job and I try to run it from a linux server, it fails:

Exception in component tRunJob_1
java.lang.RuntimeException: Child job returns 1. It doesn't terminate normally.
Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/api/TalendJob
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Caused by: java.lang.ClassNotFoundException: routines.system.api.TalendJob
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 13 more



I also print the job parameters, and I can see that the linux server is trying to use a path which existed only on the windows server where I have my TOS installed, which is probably pro:

java, -Xms256M, -Xmx1024M, -cp, .:D:/LocalData/p054433/data/Nikola/bin/TOS_DI-20150702_1326-V6.0.0/workspace/.Java:../lib/dom4j-1.6.1.jar:../lib/log4j-1.2.16.jar:tt_0_1.jar, sfdc.tt_0_1.tt, --father_pid=ypk25W, --root_pid=ypk25W, --father_node=tRunJob_1, --context:Default, %*, --stat_port=null, --parent_part_launcher=JOB:test2/NODE:tRunJob_1



Everything used to work OK with TOS 5.5.1 with the exactly same configuration, so I don't know what should I be doing differently.
Any ideas?
Thanks in advance !
Nikola

Labels (2)
6 Replies
Anonymous
Not applicable

Hi alokinac,

We have made a testing on your issue and it does repro on our side. (both .bat and .sh fail )
Would you mind creating a jira issue of DI project on Talend Bug Tracker, our developers will check it to see if it is a bug on TOS 6.0.0 as soon as we can.
https://jira.talendforge.org/secure/Dashboard.jspa.

Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III
Author

Hello Shong,

Thanks for the answer, the JIRA is created:



Nikola
_AnonymousUser
Specialist III
Specialist III
Author

OK, the link is not working, here's the number: TDI-33715
Anonymous
Not applicable

I have a similar Error:

Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/ap
alendJob
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java
2)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
       at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:4

Caused by: java.lang.ClassNotFoundException: routines.system.api.TalendJob
       at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
       ... 13 more





But i use a windows 7 system with:

java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Here is my bat.file:


%~d0
cd %~dp0
java -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/commons-logging-1.1.1.jar;../lib/geronimo-stax-api_1.0_spec-1.0.1.jar;../lib/log4j-1.2.16.jar;../lib/mail-1.4.jar;../lib/ojdbc14.jar;../lib/stax2-api-3.1.4.jar;../lib/woodstox-core-asl-4.4.1.jar;../lib/wsdl4j-1.6.3.jar;../lib/axis2-transport-local-1.6.2.jar;../lib/axiom-api-1.2.13.jar;../lib/xmlschema-core-2.0.1.jar;../lib/axis2-adb-1.6.2.jar;../lib/httpcore-4.2.1.jar;../lib/neethi-3.0.1.jar;../lib/commons-httpclient-3.1.jar;../lib/axis2-kernel-1.6.2.jar;../lib/dom4j-1.6.1.jar;../lib/salesforceCRMManagement.jar;../lib/axis2-transport-http-1.6.2.jar;../lib/jakarta-oro-2.0.8.jar;../lib/talend-oracle-timestamptz.jar;../lib/commons-codec-1.6.jar;../lib/axiom-impl-1.2.13.jar;../lib/activation-1.1.jar;prod_infor_oracle_output_convert_string_to_double_salesforce_input_0_1.jar; sf_csv.prod_infor_oracle_output_convert_string_to_double_salesforce_input_0_1.prod_infor_Oracle_output_convert_string_to_double_Salesforce_Input --context=Default %* 





Is there any solution yet ?

Edit: Changed cause the error is not exacty the same 


regards fireskyer
Anonymous
Not applicable

Solved my classpath was missing 
Sorry for the the thrill from myside
regards fireskyer 
Anonymous
Not applicable

Hi fireskyer,

Thanks for your feedback and sharing your solution with us.

Best regards
Sabrina