Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
Hello,
Could you please clarify in which Talend version/edition you are? Is your tRunJob component with Use Dynamic Job checked?
Best regards
Sabrina
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
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