org.apache.oro cannot be resolved

Six Stars

org.apache.oro cannot be resolved

Hi Team

 

Using Talend Job  we are  downloading files from s3 location once the files are processed we are trying  to delete the processed files

While doing so we are facing the following error

 

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
org.apache.oro cannot be resolved
org.apache.oro cannot be resolved to a variable

at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.tFileList_1Process(std_jb_s3_to_rds_load.java:5566)
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.tFileInputDelimited_1Process(std_jb_s3_to_rds_load.java:5372)
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.tRunJob_1Process(std_jb_s3_to_rds_load.java:3907)
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.tFixedFlowInput_1Process(std_jb_s3_to_rds_load.java:3081)
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.tS3Connection_1Process(std_jb_s3_to_rds_load.java:2333)
[statistics] disconnected
[statistics] disconnected
[statistics] disconnected
[statistics] disconnected
[statistics] disconnected
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.tLoop_1Process(std_jb_s3_to_rds_load.java:2122)
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.runJobInTOS(std_jb_s3_to_rds_load.java:11173)
at talendbatch.std_jb_s3_to_rds_load_0_1.std_jb_s3_to_rds_load.main(std_jb_s3_to_rds_load.java:10615)
Job std_jb_s3_to_rds_load ended at 13:38 06/02/2019. [exit code=0]


This is happening mostly in the first run  after restarting the studio

Again for the successive runs the job is Working fine.

Can you please help me how to resolve the  above issue 

I have already gone through the following link

https://community.talend.com/t5/Design-and-Development/tFileList-Error-quot-org-apache-oro-cannot-be...

But it is not  giving me clear knowledge of how to fix the issue.

Quick response is much appreciated.

 

Thanks

Saranya

 

 

Thirteen Stars

Re: org.apache.oro cannot be resolved

@SaranyaKatakam ,can you share the job design?

Manohar B
Highlighted
Employee

Re: org.apache.oro cannot be resolved

Hi Saranya,

 

    Its saying that one of the class is not loaded properly.

 

"org.apache.oro cannot be resolved"

 

    It seems this library is not loaded or linked properly to your components. You can check whether the library is added by checking the modules view (Windows -> Show view -> Modules). Could you please double check whether the library is correctly linked by going to the code section of the job? It will show error in red if its not linked properly.

 

   You can also check the components of each job and verify whether all the libraries are added. Normally it will show a warning in component view with yellow banner if the library has not been linked. You need to click and download all the associated libraries and it will work fine.

 

   One last way of doing is manually attaching the library using tLibraryload component. 

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)
Six Stars

Re: org.apache.oro cannot be resolved

Hi 

 

Thanks for ur replay

But i didnt notice any error in code level.

Moreover the job is executing fine in successive runs without any code modifications.

It Is failing for the first run after restarting the studio

 

Thanks

Saranya

Employee

Re: org.apache.oro cannot be resolved

Hi,

 

   IT seems the java  libraries are not linked properly when you are starting the Studio.

 

    You can verify the modules section of the job also to confirm whether the libraries are loaded properly for your job before first execution.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

 

 


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.