Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
JMaldonado1617873047
Contributor
Contributor

tRunJob RuntimeException ClassNotFoundException childJob

Hi,

I have a job built with childjob in it.The child job will be called iteratively and "Use an independent process to run subjob" option is disabled. When this job is exported as a shell and run the job works fine. But when all these jars are pulled in to eclipse and deployed as a war inside the JVM I am getting below error:

java.lang.RuntimeException: Child job return 1. It doesn't terminate normally.

Exception in thread "main" java.lang.NoClassDefFoundError: loadbalancer/loadbalancer_0_1/loadBalancer

Caused by: java.lang.ClassNotFoundException: loadbalancer.loadbalancer_0_1.loadBalancer

   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

   at java.security.AccessController.doPrivileged(Native Method)

   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

The library contained all the jars including the chld_job jar.

Thanks,

Jose.

Labels (2)
3 Replies
Anonymous
Not applicable

Hello,

Could you please clarify in which Talend version/edition you are? Is your tRunJob component with Use Dynamic Job checked?

Best regards

Sabrina

JMaldonado1617873047
Contributor
Contributor
Author

Hi!!

 

Thanks for answer, I use Talend Open Studio Big Data 7.3.1.

 

Use Dynamic Job is checked. If I use .bat file generated from terminal its works, but if I use from Eclipse or IntelliJ, it does not work.

 

Best Regards,

 

Jose

Anonymous
Not applicable

Hello,

Did you create a Java app in Eclipse to call the job?

Here is a documentation about: TalendHelpCenter: Calling a Talend Job from an external Java application

Best regards

Sabrina