Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
xrocq
Contributor III
Contributor III

Random issue for Publishing a Talend job into the Nexus 3

Hello,

I'm working with Talend subscription version 7.3.1

I am publishing my Jobs from the studio to the Artifact Repository on the nexus 3.

Then i deploy the release or snapshot created on the TAC from as an Artifact Repository task.

Sometimes (Randomly) i have to redo the publish because the release or snapshot deployed is impossible to run and always print the same error message which is :

"Error: Could not find or load main class "

So i think that the building process is making a "corrupted" binary ? am i right ?

How can i improve the reliability of the publish process ?

I have a machine with the studio, a machine for the TAC and a machine for the Nexus 3

Maybe i have to install Talend studio on the Nexus 3 machine to shortcut the network steps ?

If someone have ideas....

Labels (3)
5 Replies
Anonymous
Not applicable

Hello,

Does this problem only occur in the TAC?

Could you please share your TAC technical logs and Job server log so that we could review the full error and identify why it might be occurring.

https://community.talend.com/s/article/Repository-does-not-allow-updating-assets-releases-error-when...

Best regards

Sabrina

xrocq
Contributor III
Contributor III
Author

Yes this problem can sometimes occur in the studio (1% of the time) but i just restart the studio and its fixing the problem.

 

Description of my actions from fail to success

15h00 => Publishing from the Studio new Job version on the NEXUS 3 artefact rep

15h01 => Editing ExecutionTask of this Job with deploying the new Job version from the NEXUS 3 artifact Rep

15h03 => Manual TAC Running this Edited ExecutionTask (new version of the job) => giving me this execution log error from the taskExecution file:

### Job STARTED at 2022/12/07 15:03:08 (jobId=20221207_150145_k3B8F, jobExecutionId=20221207150308_wt64K) ###

 

### Job ENDED WITH ERROR at 2022/12/07 15:03:09 (jobId=20221207_150145_k3B8F, jobExecutionId=20221207150308_wt64K) ###

Error: Could not find or load main class referentielgroupe.rgr_fl002_0000_hh_rg_alimtablesref_geo_main_0_3.RGR_FL002_0000_HH_RG_AlimTablesRef_Geo_Main

 

15h08 => Publishing again from the studio to build another version into the NEXUS 3 then Redeploying it, then running it again, giving me a successful log execution 

### Job STARTED at 2022/12/07 15:08:40 (jobId=20221207_150829_9LpPT, jobExecutionId=20221207150840_UdHxJ) ###

[INFO ] 15:08:42 referentielgroupe.rgr_fl002_0000_hh_rg_alimtablesref_geo_main_0_3.RGR_FL002_0000_HH_RG_AlimTablesRef_Geo_Main- TalendJob: 'RGR_FL002_0000_HH_RG_AlimTablesRef_Geo_Main' - Start.

 

 

Here the business log extract to confirm my actions :

(Business Log from the "business.log" File between 15h and 15h30 )

 

2022-12-07 15:01:34 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'Modification of ExecutionTask [org.talend.model.conductor.ExecutionTask@85bbc773]';businessLog.exectask.update;[org.talend.model.conductor.ExecutionTask@85bbc773]

2022-12-07 15:01:39 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'Context for task with id = 17: update RGPARAM_LastExecutionDate = ,update JobName = ,update Context_File_Display = 0,update Context_File_Path = C:/Talend/workspace/configuration/context.csv'

2022-12-07 15:01:44 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'User ANONYMOUS request deployment of ExecutionTask [org.talend.model.conductor.ExecutionTask@f1c94806]';businessLog.exectask.deploy;[ANONYMOUS, org.talend.model.conductor.ExecutionTask@f1c94806]

2022-12-07 15:02:22 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'User ANONYMOUS logoff from: tac, reason: logoff';businessLog.login.logoff;[ANONYMOUS, tac, logoff]

2022-12-07 15:02:36 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'Authentication success of login ANONYMOUS';businessLog.login.authSuccess;[ANONYMOUS]

2022-12-07 15:03:07 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'User ANONYMOUS request run of ExecutionTask [org.talend.model.conductor.ExecutionTask@23f0370c]';businessLog.exectask.run;[ANONYMOUS, org.talend.model.conductor.ExecutionTask@23f0370c]

2022-12-07 15:08:24 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'Modification of ExecutionTask [org.talend.model.conductor.ExecutionTask@becfe905]';businessLog.exectask.update;[org.talend.model.conductor.ExecutionTask@becfe905]

2022-12-07 15:08:25 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'Context for task with id = 17: update RGPARAM_LastExecutionDate = ,update JobName = ,update Context_File_Display = 0,update Context_File_Path = C:/Talend/workspace/configuration/context.csv'

2022-12-07 15:08:29 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'User ANONYMOUS request deployment of ExecutionTask [org.talend.model.conductor.ExecutionTask@15d93b6a]';businessLog.exectask.deploy;[ANONYMOUS, org.talend.model.conductor.ExecutionTask@15d93b6a]

2022-12-07 15:08:39 INFO BusinessLogger - [login=ANONYMOUS, id=2, uniqueId=ec307572-ee9e-4346-ab28-14b63fca1958];'User ANONYMOUS request run of ExecutionTask [org.talend.model.conductor.ExecutionTask@4e9bb5ac]';businessLog.exectask.run;[ANONYMOUS, org.talend.model.conductor.ExecutionTask@4e9bb5ac]

 

 

Here the Technical Log from the "technical.log" File between 15h and 15h30 => Nothing particular to see about our Problem ... :

 

2022-12-07 14:43:52 WARN JobExecutionStatisticsMonitor - Timeout for waiting statistics data has been reached, statistics read is cancelled.

2022-12-07 15:00:06 WARN JobExecutionStatisticsMonitor - Timeout for waiting statistics data has been reached, statistics read is cancelled.

2022-12-07 15:00:06 WARN JobExecutionStatisticsMonitor - Timeout for waiting statistics data has been reached, statistics read is cancelled.

2022-12-07 15:00:06 WARN JobExecutionStatisticsMonitor - Timeout for waiting statistics data has been reached, statistics read is cancelled.

2022-12-07 15:03:13 WARN JobExecutionStatisticsMonitor - Timeout for waiting statistics data has been reached, statistics read is cancelled.

2022-12-07 15:30:05 WARN JobExecutionStatisticsMonitor - Timeout for waiting statistics data has been reached, statistics read is cancelled.

 

 

 

jlolling
Creator III
Creator III

I know that. After publishing a job the studio performs a refresh of the whole project (no idea why) and it does that, the jobs cannot be open (mostly you will get a strange error method.

The same applies to the build process. It will fail.

If you deploy a job, wait until all running actions in the studio are finished and than open and edit other jobs.

Also we are facing the problem, sometimes the studio does not recognise compile errors and create damaged artifacts.

jlolling
Creator III
Creator III

Could not find main class is always a symptom which is caused by a failed compilation process and this is unrecognised.

Anonymous
Not applicable

@jlolling @xrocq you can also do a regenerate all pom from studio. In CI it's now mandatory (exactly because of the above symptoms...) on 7.3 it's best practice.

But this class not found error I listed like 10+ reasons in this article: https://talendsupport.force.com/talend/s/article/Resolving-class-and-JAR-related-issues?language=en_US