Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi I am developing a job where I am getting data from Redshift, uploading to S3 and then importing to a Redshift table:
The configuration is like this.
In the server in the lib folder I have these modules:
RedshiftJDBC41-1.1.13.1013.jar apache-httpcomponents-httpcore.jar aws-java-sdk-1.10.52.jar aws-java-sdk-1.11.129.jar cimt.talendcomp.gaanalytics-2.1-jar-with-dependencies.jar commons-codec-1.6.jar commons-logging-1.1.3.jar dom4j-1.6.1.jar httpclient-4.3.6.jar httpcore-4.4.5.jar jackson-annotations-2.5.3.jar jackson-core-2.5.3.jar jackson-databind-2.5.3.jar joda-time-2.8.1.jar log4j-1.2.17.jar routines.jar
However when I run the job I get this error:
[statistics] disconnected
[statistics] disconnected
[statistics] disconnected
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:136)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:481)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:461)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:443)
at momox.ga2redshift_tvvisits_loop_0_1.GA2Redshift_TVvisits_Loop.tRedshiftInput_2Process(GA2Redshift_TVvisits_Loop.java:1832)
at momox.ga2redshift_tvvisits_loop_0_1.GA2Redshift_TVvisits_Loop.tRedshiftInput_1Process(GA2Redshift_TVvisits_Loop.java:1064)
at momox.ga2redshift_tvvisits_loop_0_1.GA2Redshift_TVvisits_Loop.tRedshiftRow_2Process(GA2Redshift_TVvisits_Loop.java:2337)
at momox.ga2redshift_tvvisits_loop_0_1.GA2Redshift_TVvisits_Loop$2.run(GA2Redshift_TVvisits_Loop.java:2613)
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.scheme.SchemeSocketFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more
I understand is something with the modules, but I checked and everything seems to be up to date.
Any ideas?
Thanks!
Maybe try out of these 3
ojdbc6.jar
ojdbc7.jar
ojdbc14.jar
to keep the latest?
Hello,
Have you tried talend latest released version 6.4.1 to see if this issue repro? Here is talend official download website:https://www.talend.com/download/thankyou/esb/?_ga=2.224817626.1758387339.1508725501-1718331454.15081...
Best regards
Sabrina
Hello,
Yes i tried the new version but the pb is still there, my message error is : "Exception in thread "Thread-0" java.lang.NoClassDefFoundError"
Hi,
Is there any more error message behind "Exception in thread "Thread-0" java.lang.NoClassDefFoundError"?
Please show us the full stack trace.
Best regards
Sabrina
Exception in thread "main" java.lang.NoClassDefFoundError: edsu/jb_00_rh_load_od
s_loc_chercheur_0_1/JB_00_RH_Load_ODS_LOC_CHERCHEUR
at edsu.ods_part2_0_1.ODS_Part2.tRunJob_5Process(ODS_Part2.java:36062)
at edsu.ods_part2_0_1.ODS_Part2.runJobInTOS(ODS_Part2.java:38491)
at edsu.ods_part2_0_1.ODS_Part2.runJob(ODS_Part2.java:37057)
at edsu.jb_00_mainprocess_generic_ods_0_1.JB_00_MainProcess_Generic_ODS.
tRunJob_2Process(JB_00_MainProcess_Generic_ODS.java:4107)
at edsu.jb_00_mainprocess_generic_ods_0_1.JB_00_MainProcess_Generic_ODS.
tRunJob_1Process(JB_00_MainProcess_Generic_ODS.java:3936)
at edsu.jb_00_mainprocess_generic_ods_0_1.JB_00_MainProcess_Generic_ODS.
runJobInTOS(JB_00_MainProcess_Generic_ODS.java:5386)
at edsu.jb_00_mainprocess_generic_ods_0_1.JB_00_MainProcess_Generic_ODS.
runJob(JB_00_MainProcess_Generic_ODS.java:5085)
at edsu.exe_10_ods_0_1.EXE_10_ODS.tRunJob_1Process(EXE_10_ODS.java:9465)
at edsu.exe_10_ods_0_1.EXE_10_ODS.tWarn_7Process(EXE_10_ODS.java:9206)
at edsu.exe_10_ods_0_1.EXE_10_ODS.tFileExist_3Process(EXE_10_ODS.java:90
32)
at edsu.exe_10_ods_0_1.EXE_10_ODS.runJobInTOS(EXE_10_ODS.java:14491)
at edsu.exe_10_ods_0_1.EXE_10_ODS.main(EXE_10_ODS.java:14188)
Caused by: java.lang.ClassNotFoundException: edsu.jb_00_rh_load_ods_loc_chercheu
r_0_1.JB_00_RH_Load_ODS_LOC_CHERCHEUR
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)
... 12 more
Hello,
Do you always get the same problem on all jobs or a specific one? Your job contains several tRunJob components and did you check "Use an independant process to run subjob"?
Best regards
Sabrina