Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
RMotta2408
Creator II

java.lang.ClassNotFoundException

Hello everyone,

I'm getting the error below when I run a Job in Talend Cloud Big Data Platform:

Error: the main class talend_cloud_adr.jh_rep has not been found

Caused by: java.lang.ClassNotFoundException: talend_cloud_adr.jh_rep

What must I do to overcome this error?

Thank you so much,

Rui

Labels (3)
6 Replies
Anonymous
Not applicable

Hello,

This might be caused by a corrupt jar File of a module. We need a little bit more information to address your issue.

Are you using Talend Cloud Big Data Platform V 8.0 and java 11? Which talend component are you using in your job?

Best regards

Sabrina

RMotta2408
Creator II
Author

Hello @Xiaodi Shi​ ,

 

Thank you for answering.

I am using Talend Cloud Big Data Platform (R2023-10) and Java 11.

I am using tDBInput - tMap - tFileOutputDelimited.

The tDBInput file gets its connection information from a Matadata Saleforce connection.

 

Thank you

Rui

 

 

Anonymous
Not applicable

Hello,

I haven't met this talend_cloud_adr.jh_rep class missing/corrupt issue before and have already reported your issue to our big data team and then come back to you as soon as possible.

Thanks for your time.

Best regards

Sabrina

RMotta2408
Creator II
Author

I appreciate your help, @Xiaodi Shi​ 

 

I will make a change, setting up the connection right on the component, instead of using a predefined connection.

Maybe this way I can isolate and pinpoint the problem.

I'll keep you posted.

 

Rui

jan_terje
Contributor

Hi all,

 

I am also encountering this issue.

 

It happened after a fresh install of Talend Studio R2023-10.

In our case, we are using Java 17.

 

The error is caused by this (log can be found in workspace\.metadata\.log):

!MESSAGE 2023-11-13 13:52:23,782 ERROR org.talend.commons.exception.CommonExceptionHandler - [ERROR] Failed to execute goal on project routines: Could not resolve dependencies for project org.example.employees_hr_cloud.code:routines:jar:8.0.1: The following artifacts could not be resolved: com.fasterxml.jackson.core:jackson-core:jar:2.13.3, com.fasterxml.jackson.core:jackson-annotations:jar:2.13.3, com.fasterxml.jackson.core:jackson-databind:jar:2.13.4.2: Cannot access central (https://repo1.maven.org/maven2/) in offline mode and the artifact com.fasterxml.jackson.core:jackson-core:jar:2.13.3 has not been downloaded from it before.

 

Simply put, on a fresh install of Talend R2023-10, the included version of these components are 2.14.3.

However, it seems several components in Talend still expect older versions, like 2.13.3.

 

As a work around, I have loaded these older jars with the tLibraryLoad components.

Doing this solves the issue and the job runs successfully.

 

BR,

Jan Terje

 

 

RMotta2408
Creator II
Author

Hello there,

 

I've found out that the problem only occurs when I'm using a project that is connected to GIT.

 

If I run the same Job in the same Studio, on the same workspace, but in another project that is not connected to GIT, the Job runs successfully.

 

Can it be that it has something to do with permissions? Has anybody ever come across such a problem?

 

Thank you,

Rui