One Star

error when executing a job

Hi,
I'm using Talend open studio for Data integration 6.0.0.20150702_1326 on mac, any idea why I'm getting this error when executing a job?
Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
at com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.getKeepAliveDuration(SdkConnectionKeepAliveStrategy.java:48)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:532)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:728)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3604)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3557)
at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:647)
at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:632)
18 REPLIES
Moderator

Re: error when executing a job

Hi avigershon,
There is less information for us to diagnose your issue. What's your JDK version? Does this issue repro on this specific job or all your jobs?
What does your job design look like?
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.
One Star

Re: error when executing a job

Hello Sabrina, 
I have the same problem. 
In fact, I want to transfer my data of Oracle.11 to Amazon S3 by Talend. And I'm green hand to theses tools. 
I got ths msg error :
--------------------------------------
Démarrage du job Test_Bucket_exist a 14:17 07/10/2015.
connecting to socket on port 3716
connected
Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
at com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.getKeepAliveDuration(SdkConnectionKeepAliveStrategy.java:48)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:532)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:724)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:485)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:306)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3604)
at com.amazonaws.services.s3.AmazonS3Client.headBucket(AmazonS3Client.java:1050)
at com.amazonaws.services.s3.AmazonS3Client.doesBucketExist(AmazonS3Client.java:1013)
at aws.test_bucket_exist_0_1.Test_Bucket_exist.tS3BucketExist_1Process(Test_Bucket_exist.java:319)
disconnected
at aws.test_bucket_exist_0_1.Test_Bucket_exist.runJobInTOS(Test_Bucket_exist.java:575)
at aws.test_bucket_exist_0_1.Test_Bucket_exist.main(Test_Bucket_exist.java:432)
Job Test_Bucket_exist terminé à 14:17 07/10/2015.
-----------------------------------------------------------------------------------------------------------
Can you tell me what's the problem of this and if I put the right schema for upload files from Oracle to S3?
Thanks a lot for your help ! 
Sylvanas QUAN 

ps. 
I found that even though with this error, Talend has transfered successfully the fiche csv that I wanted to transfer. However, it has lost the type of the fiche.
When I download it from S3, my PC recognize non longer the type of the document and as a result, it doesn't know which tool should it use to open the document.
But the size of the doc is exactly the same so I think maybe I didn't loose data during this transation.
One Star

Re: error when executing a job

Hi avigershon,
There is less information for us to diagnose your issue. What's your JDK version? Does this issue repro on this specific job or all your jobs?
What does your job design look like?
Best regards
Sabrina

Hello Sabrina,
I have the same problem.
I described my problem abow your commentation. Can you take a look at it and help me ? 
Thanks a lot. 
Sylvanas 
Five Stars

Re: error when executing a job

Hello Talend team, 
We are also having this same issue on our end, it also seems that only "some" of us are having this issue. If we somehow run the same job by other people, the job seems to execute just fine and without the NoSuchField errors. Though I might have a feeling that this is a more of an environment issue im not sure. 
Thanks and Regards
Locke
Moderator

Re: error when executing a job

Hi Locke ,
On which build version you got the same issue? Did you use tS3Close in your work flow?
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.
One Star

Re: error when executing a job

I have same issue. 
I'm develop Eclipse RCP. 
1. I attached Apache HTTP Client library.(version : 4.3.6)

2. develop..
HttpClient client = new DefaultHpptClient();
HttpGet request = new HttpGet("");
..........

3. And execute


How to use Apache HTTP Client library.
Moderator

Re: error when executing a job

Hi ChoHyunJong,
Could you please indicate the build version you are using?
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 when executing a job

Hello Guys and Talend Team,
We have already resolved the issue on our end. It seems that this issue is caused by the import of certain User Routines not used by the job. Below is the solution that we found for our issue. 
1.) Right click on the job from the repository tree
2.) Select "setup routines dependencies"
3.) Delete all User Routine dependencies that are not being used by selecting and clicking the red 'X' (in our case, we deleted them all)
4.) Run the job again. 
For why only "some" of us are having this issue and others on our team are not, it was because most of us have installed an unused jar file into our library(it was always popping out everytime we try to run the job, prompting us to install or finish installing the libraries) while others on our team were not(they kept ignoring the library installation prompt and closing it).  
Anyways, Thanks and Regards 
Hope this helps
Locke
Moderator

Re: error when executing a job

Hi Locke,
Thanks for sharing your solution with us.
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.
One Star

Re: error when executing a job

I'm having the same error. In the log only the line numbers change (compared to previous posts):
 Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
at com.amazonaws.http.conn.SdkConnectionKeepAliveStrategy.getKeepAliveDuration(SdkConnectionKeepAliveStrategy.java:48)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:532)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:860)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:631)
at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:400)
at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:362)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:311)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3673)
at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1436)

novastorm's solution didn't work for me, as I don't have User Routine dependencies.
In using TOs 6.2.1
I also have JDK 1.7.0_75 and jre 1.8.0_101 (not sure which one Talend uses)
Any ideas?
Thanks,
Moderator

Re: error when executing a job

Hi MARIKARITALEND,
 It seems that there is a version conflict error on the jar file. Did you get this issue on all your jobs or a specific job?
The recommended Java Environment for V 6.2.1 is oralce java 8.
https://help.talend.com/search/all?query=Java&content-lang=en

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.
One Star

Re: error when executing a job

thanks, Sabrina
I only tried this in a job that copies files to S3.
I just uninstalled JDK 1.7 and it's working now!
Smiley Very Happy
One Star

Re: error when executing a job

mmm... Now the job works and doesn't through the error when I run it alone. But when I called it from a main job, I have the same exception again :/
Moderator

Re: error when executing a job

Hi MARIKARITALEND,
Would you mind posting your whole job design screenshot into forum?
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.
One Star

Re: error when executing a job

Hello Sabrina.
Here you have the screenshots, and the details:
1- root job: this job calls the main job 4 times
2- main job: this job does several tasks and finally calls the job "localToS3" that does the "copy task"
3- subjob localToS3 - this is the only job that deals with S3.
4 - error: is the error that I have when I run the root job.
Only the first of the 4 iterations runs, and the first group of files are indeed copied to S3.
The subjob (3) was first part of the main job, and the result was the same error.
I moved it to a separate subjob just to be able to skip its execution and avoid the error (I have a parameter for this)
Today I tested calling the subjob (3) directly from the root job, and it worked. It run 4 times, and copied all the files.
The error is only present whe I run the full job.
I hope this is clear. 
Thanks for your help,
One Star

Re: error when executing a job

for some reason the screenshots were not attached in the previous post
One Star

Re: error when executing a job

any clue? thank you!
Moderator

Re: error when executing a job

Hi,
Would you mind sending your job .zip file to us by email. It's a little hard for us to address your issue from attached files.
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.