Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Encountered the following error even though all the attached jar files have been added in the Routine Libraries including commons-logging-1.1.3
Additional Details
1) Talend version 7.3.1 was downloaded from the following webpage:
2) The application is being executed using jdk-11.0.10 through the following command. (It was previously working on jdk-15.0.1; but after encountering Java error after re-installation, it is now working on the lower JDK version 11.)
D:\>TalendStudio\Talend-Studio-20200219_1130-V7.3.1\Talend-Studio-win-x86_64.exe -vm TalendStudio\jdk-11.0.10\bin
3) A ParameterStore_Cred was created in the Repository under Code > Routines (Code used is in attached file, ParameterStore_Cred.java)
4) The Routine Libraries of ParameterStore_Cred was edited to add the JAR files from attached jar_files.zip
5) The sample Talend job has the following components:
6) The tJava_1 component contains the following line of code:
String str=ParameterStore_Cred.getParameter(context.parameter_store);
System.out.println(str);
globalMap.put("key", str);
7) The Target Execution of the job is a Custom Job Server in Talend cloud through AWS.
Example:
😎 During execution, it encountered the Java error mentioned in this topic as shown in the first screenshot.
Hello,
Could you please clarify in which Talend version/edition you are? Have you tried to use a tLibraryLoad component to force packaging the lib to see if it works?
Best regards
Sabrina
Hi Sabrina,
Thanks for your reply. I have updated the details above with additional information; including Talend version/edition. We do not have any requirement to use a tLibraryLoad component; so I did not used that.
Best regards,
Sherwin
Hello,
In the module view, all jar relative to your components are installed successfully in studio?
Here is online documentation about: TalendHelpCenter: Installing external modules manually using the Modules view.
Best regards
Sabrina
Yes. The modules for my Talend job components were all successfully installed in Talend Studio. I added additional jar files in the libraries of the routine code; but Talend can't seem to find the class associated to it.
I have also tried the following; but still has similar NoClassDefFoundError: