Five Stars

Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

 Hi I am developing a job where I am getting data from Redshift, uploading to S3 and then importing to a Redshift table:

 

Screen Shot 2017-05-22 at 4.16.52 PM.png

 

The configuration is like this.

Screen Shot 2017-05-22 at 4.18.00 PM.pngScreen Shot 2017-05-22 at 4.18.30 PM.png

 

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!

Tags (1)
15 REPLIES
Moderator

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

Hi Sabrina Smiley Happy

 

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?

Moderator

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

Hi, thanks for the reply Smiley Happy

 

I upgraded to Talend 6.4.0 and the issue was resolved Smiley Happy Still not sure why it didn't work before, but since it's working at the moment everything is good!! 

Moderator

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

Hello,

Feel free to let us know if this issue repro on your end.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

Four Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

Here is the Error Message :

 

"Exception in thread "Thread-0" java.lang.NoClassDefFoundError"

Five Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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


 

Four Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

Five Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

Maybe try out of these 3

ojdbc6.jar

ojdbc7.jar

ojdbc14.jar

 

to keep the latest?

Moderator

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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"

Moderator

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

Moderator

Re: Error: Exception in thread "Thread-0" java.lang.NoSuchMethodError: org.apache.http.params.HttpConnectionParams.setSoKeepalive(Lorg/apache/http/params/HttpParams;Z)

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

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.