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

Highlighted
Five Stars

[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

Accepted Solutions
Community Manager

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

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
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

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

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
Five Stars

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

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

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

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

Good news, thanks for your feedback!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business