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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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)

 

 

 

Labels (3)
5 Replies
Anonymous
Not applicable
Author

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 🙂

Anonymous
Not applicable
Author

Attached the screen shots


parent_job.png
child_job.png
Anonymous
Not applicable
Author

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 🙂

Anonymous
Not applicable
Author

@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 🙂

Anonymous
Not applicable
Author

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