One Star

Could not initialize class com.amazonaws.ClientConfiguration - tS3Put

Hi, I'm able to run my Talend job through Talend itself, but when I try to run it via the script after I build the job, I run into the following issue:

java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.ClientConfiguration
        at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:397)
        at data_lake.adperformancelastmonth_0_1.AdPerformanceLastMonth.tS3Put_1Process(AdPerformanceLastMonth.java:1217)
        at data_lake.adperformancelastmonth_0_1.AdPerformanceLastMonth.tLoop_1Process(AdPerformanceLastMonth.java:820)
        at data_lake.adperformancelastmonth_0_1.AdPerformanceLastMonth.runJobInTOS(AdPerformanceLastMonth.java:2233)
        at data_lake.adperformancelastmonth_0_1.AdPerformanceLastMonth.runJob(AdPerformanceLastMonth.java:2040)
        at data_lake.downloaduploadadwords_0_1.DownloadUploadAdwords.tRunJob_1Process(DownloadUploadAdwords.java:671)
        at data_lake.downloaduploadadwords_0_1.DownloadUploadAdwords$2.run(DownloadUploadAdwords.java:1446)

Anybody have any idea what the issue could be? Thanks.
4 REPLIES
Employee

Re: Could not initialize class com.amazonaws.ClientConfiguration - tS3Put

which Java version in Studio vs. with the script?
Also which Talend version?
Thomas Steinborn
VP Product Management
One Star

Re: Could not initialize class com.amazonaws.ClientConfiguration - tS3Put

I'm running Talend Open Studio for Data Integration Version: 6.1.1.20151214_1327
In Talend, I'm using JDK 1.8.0_60.
Using the script, I've run it on both
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

openjdk version "1.8.0_65"
OpenJDK Runtime Environment (build 1.8.0_65-b17)
OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)
Employee

Re: Could not initialize class com.amazonaws.ClientConfiguration - tS3Put

then it is most likely the known issue with the AWS SDK and Java 8. We have a patch available for S3Put (basically an upgrade to SDK 10.x). Can you contact our support?
Thomas Steinborn
VP Product Management
Five Stars

Re: Could not initialize class com.amazonaws.ClientConfiguration - tS3Put

Hi,

 

I am getting the issue regarding the same when i invoke the S3 connecion through an API.

Job running on runtime server.

 

I use Talend Data fabric ; 6.4.1

Java 8

 

Here is the Log:

 

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.ClientConfiguration
at rit_cdw_talend.s3_context_read_0_1.S3_Context_Read.tS3Connection_1Process(S3_Context_Read.java:690)
at rit_cdw_talend.s3_context_read_0_1.S3_Context_Read.tJava_1Process(S3_Context_Read.java:564)
at rit_cdw_talend.s3_context_read_0_1.S3_Context_Read.runJobInTOS(S3_Context_Read.java:1294)
at rit_cdw_talend.s3_context_read_0_1.S3_Context_Read.runJob(S3_Context_Read.java:1081)
at rit_cdw_talend.copy_of_rest_parser_0_1.Copy_of_Rest_Parser.tRunJob_1Process(Copy_of_Rest_Parser.java:7123)
at rit_cdw_talend.copy_of_rest_parser_0_1.Copy_of_Rest_Parser.tRESTRequest_1_LoopProcess(Copy_of_Rest_Parser.java:12334)
at rit_cdw_talend.copy_of_rest_parser_0_1.Copy_of_Rest_Parser$RestServiceProviderImpl4TalendJob.processRequest(Copy_of_Rest_Parser.java:1483)

 

Thanks,

Venkata