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!
Hi,
Can you execute your job successfully in studio? Does this issue only repro on server? On which talend build version you got this issue?
Best regards
Sabrina
Hi Sabrina
I got this error only in the server and the job is running locally in my machine!
I am using Talend v6.3.1. Do you think I should upgrade? Could that be an issue?
Hi,
Are your shared external libraries stored in talend Nexus repository? We suppose that there is no sync up. Have you tried to restart your server to see if it works?
Best regards
Sabrina
Hi, thanks for the reply
I upgraded to Talend 6.4.0 and the issue was resolved Still not sure why it didn't work before, but since it's working at the moment everything is good!!
Hello,
Feel free to let us know if this issue repro on your end.
Best regards
Sabrina
Hello,
i get the same pb when i generate .bat, the job can be exucute normaly in studio ( version 6.3 TOS for ESB), i tried all recommandation, the pb always here.
Thank you in advance for your help.
Dan
Here is the Error Message :
"Exception in thread "Thread-0" java.lang.NoClassDefFoundError"
What is your job like? And what .jar files are in the lib folder? For me, there were some different versions of the same .jar file and when I upgraded Talend it was fixed.
@Nabilophone11 wrote:
Hello,
i get the same pb when i generate .bat, the job can be exucute normaly in studio ( version 6.3 TOS for ESB), i tried all recommandation, the pb always here.
Thank you in advance for your help.
Dan
Its a job caling other jobs, int the lib folder i have ;
dom4j-1.6.1.jar
ini4j-0.5.1.jar
jxl.jar
log4j-1.2.16.jar
ojdbc6.jar
ojdbc7.jar
ojdbc14.jar
routines.jar
talend_file_enhanced_20070724.jar
talendcsv.jar
talend-oracle-timestamptz.jar