Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Error when trying to run a Talend job from Eclipse - bug???

Hi,
I am encountering an error when trying to run a Talend based job from Eclipse.
The Eclipse project that holds the calling java class references the Talend job's jar files that reside in a directory other than the default 'opt.talend...' directory. The calling java
class makes the call and the first couple of sub-jobs within the Talend job run without any issues. The error gets thrown when executing a sub-job that reads from a couple of
tables, uses a tMap component to map the data, and then writes out the data to a table - nothing complex here. (The database used in this job is a MySQL database)
Below is a stack trace from the above mentioned error. A couple of notes on this...
-> I added the jar files that are prefaced with 'commons-' to the build path for the Eclipse project and that did not make a difference.
-> When the classpath.jar file from the 'opt.talend...' directory was used on the Eclipse project's build path instead of the copy if it that resided elsewhere, the
process ran without any errors.
- - - - - - - - - - - -
Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tJava_2Process(SettlementMasterService_Analysis.java:1834)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.runJobInTOS(SettlementMasterService_Analysis.java:2390)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.main(SettlementMasterService_Analysis.java:2157)
at Settlement.SettlementETLFrontEnd.main(SettlementETLFrontEnd.java:23)
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tJavaFlex_1Process(SettlementMasterService_Analysis.java:1937)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tJava_2Process(SettlementMasterService_Analysis.java:1826)
... 3 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tRunJob_33Process(SettlementMasterService_Analysis.java:2112)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tJavaFlex_1Process(SettlementMasterService_Analysis.java:1929)
... 4 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tMysqlConnection_1Process(SettlementMasterService_Analysis.java:1172)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tRunJob_33Process(SettlementMasterService_Analysis.java:2104)
... 5 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tMysqlConnection_3Process(SettlementMasterService_Analysis.java:1289)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tMysqlConnection_1Process(SettlementMasterService_Analysis.java:1164)
... 6 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tRunJob_2Process(SettlementMasterService_Analysis.java:1463)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tMysqlConnection_3Process(SettlementMasterService_Analysis.java:1281)
... 7 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlConnection_1Process(AssetLoad_Analysis.java:1084)
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.runJobInTOS(AssetLoad_Analysis.java:5421)
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.runJob(AssetLoad_Analysis.java:5224)
at settlementfact.settlementmasterservice_analysis_0_1.SettlementMasterService_Analysis.tRunJob_2Process(SettlementMasterService_Analysis.java:1407)
... 8 more
Caused by: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlConnection_2Process(AssetLoad_Analysis.java:1194)
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlConnection_1Process(AssetLoad_Analysis.java:1070)
... 11 more
Caused by: java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlInput_1Process(AssetLoad_Analysis.java:2301)
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlConnection_2Process(AssetLoad_Analysis.java:1180)
... 12 more
Caused by: java.lang.Error: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlInput_2Process(AssetLoad_Analysis.java:4794)
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlInput_1Process(AssetLoad_Analysis.java:1760)
... 13 more
Caused by: java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/common/ICommonLookup$MATCHING_MODE
at settlementfact.assetload_analysis_0_1.AssetLoad_Analysis.tMysqlInput_2Process(AssetLoad_Analysis.java:4451)
... 14 more
Caused by: java.lang.ClassNotFoundException: org.talend.designer.components.lookup.common.ICommonLookup$MATCHING_MODE
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 15 more
- - - - - - - - - - - - - - - -

Any information that can be provided to shed light on this error is greatly appreciated.
Thank you.
Tom
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Tom
From the error message, we can confirm the problem is that it can't find the class files, the path of the required jars in a wrong place, don't know you have looked at this topic in which I showed how to call a Talend job in Eclipse.
http://www.talendforge.org/forum/viewtopic.php?pid=11713#p11713
Best regards
Shong

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi Tom
From the error message, we can confirm the problem is that it can't find the class files, the path of the required jars in a wrong place, don't know you have looked at this topic in which I showed how to call a Talend job in Eclipse.
http://www.talendforge.org/forum/viewtopic.php?pid=11713#p11713
Best regards
Shong
Anonymous
Not applicable
Author

Hi Shong,
That worked. Thank you for your prompt response.
Regards,
Tom
Anonymous
Not applicable
Author

Hi Shong,
That worked. Thank you for your prompt response.
Regards,
Tom

Good news, thanks for your feedback!
Best regards
Shong
Anjalivnr
Contributor
Contributor

Hi ,

 

Im facing the same issue. can someone tell me how it is resolved. Above suggested link is not working for me.

 

@Shicong Hong​ 

 

Thanks.

jhammer98
Contributor II
Contributor II

This may or may not be your problem, but I found that the 'advancedPersistentLookupLib-1.2' jar file was missing from my lib folder after building the job.

 

Double check your lib folder to make sure everything you need is in it.