tfFileCopy having issues while running through tRunJob

Five Stars

tfFileCopy having issues while running through tRunJob

Hi 

I am facing issue while triggering a job using tRunJob. 

When the option “Run as Independent Process” is selected in tRunJob component i am getting this error while running from background from Linux using .sh file, runs fine from studio. 

 

Tried with loading the filecopy library in the child job but still giving the same error. 

infopool_swift_mt9xx_mqueue_unload_line4.0.dat.20190507134724 at 20190520172406..

[ERROR]: stmt_infopool.wj_stmt_infopool_swift_mt9xx_intra_validate_0_1.WJ_stmt_infopool_swift_mt9xx_intra_validate - tRunJob_1 - Child job returns 1. It doesn't terminate normally.

Exception in thread "main" java.lang.NoClassDefFoundError: org/talend/FileCopy

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.tFileCopy_1Process(J_stmt_infopool_swift_mt9xx_validate.java:11201)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.tFileInputDelimited_3Process(J_stmt_infopool_swift_mt9xx_validate.java:10144)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.tJava_1Process(J_stmt_infopool_swift_mt9xx_validate.java:5321)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.tFileProperties_1Process(J_stmt_infopool_swift_mt9xx_validate.java:5118)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.tFileInputDelimited_2Process(J_stmt_infopool_swift_mt9xx_validate.java:4514)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.tFileInputDelimited_1Process(J_stmt_infopool_swift_mt9xx_validate.java:3708)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.JBLT_Sys_Cntxt_Decrypt_1_tFileInputDelimited_2Process(J_stmt_infopool_swift_mt9xx_validate.java:2902)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.JBLT_Sys_Cntxt_Decrypt_1_tFileInputDelimited_1Process(J_stmt_infopool_swift_mt9xx_validate.java:2072)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.runJobInTOS(J_stmt_infopool_swift_mt9xx_validate.java:15179)

        at stmt_infopool.j_stmt_infopool_swift_mt9xx_validate_0_1.J_stmt_infopool_swift_mt9xx_validate.main(J_stmt_infopool_swift_mt9xx_validate.java:14960)

Caused by: java.lang.ClassNotFoundException: org.talend.FileCopy

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

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

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

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

 

 

 

Employee

Re: tfFileCopy having issues while running through tRunJob

Hi,

 

   Could you please share some screen shots of the parent and child job so that we will get more idea about the issue?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Five Stars

Re: tfFileCopy having issues while running through tRunJob

Attached the screen shots

Employee

Re: tfFileCopy having issues while running through tRunJob

Hi,

 

    Could you please check the below details provided by xdshi for another post?

 

"Before building your Job, go to Window > Preferences, select Talend > Import/Export, and then select the Add classpath jar in exported jobs check box to wrap the Jars in a classpath.jar file added to the built Job to see if it is OK with you when do job execution(.bat or .sh)"

 

     There are lot of other verification steps provided in below posts. Could you please check them too?

 

https://community.talend.com/t5/Deployment/java-lang-NoClassDefFoundError/td-p/4706

https://community.talend.com/t5/Design-and-Development/resolved-Another-java-lang-NoClassDefFoundErr...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Employee

Re: tfFileCopy having issues while running through tRunJob

@vgonnuru1095 

 

Were you able to resolve your issue with the help of above post? If yes, could you please mark the topic as resolved? 

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Five Stars

Re: tfFileCopy having issues while running through tRunJob

Hi Nikhil

This didn't resolve my issue, but this issue got resolved when I have selected "Include Libraries" while building the job. This check box is available only when the Sources (Maven) option is selected.

 

From the command line this is the command to use,

buildJob <job_name> -dd <destination Dir> -il -maven

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog