[resolved] Compilation issue in Job Conductor (TIS 3.2.2)

One Star

[resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Hi,
I'm working with TOS 3.2.3.
I created a job that runs perfectly.
I've exported that job and import it in TIS 3.2.2.
The job also works in TIS (application not web part).
Finally, I've tried to runs it in the Job Conductor thanks to the web interface.
But the followinf issue appears :
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
Syntax error, insert ";" to complete Statement
The left-hand side of an assignment must be a variable
Syntax error on token "null", invalid ClassType
at hrms.hr_gl_ci005_validation_0_1.HR_GL_CI005_VALIDATION.tRunJob_1Process(HR_GL_CI005_VALIDATION.java:822)
at hrms.hr_gl_ci005_validation_0_1.HR_GL_CI005_VALIDATION.tJava_1Process(HR_GL_CI005_VALIDATION.java:742)
at hrms.hr_gl_ci005_validation_0_1.HR_GL_CI005_VALIDATION.runJobInTOS(HR_GL_CI005_VALIDATION.java:14415)
at hrms.hr_gl_ci005_validation_0_1.HR_GL_CI005_VALIDATION.main(HR_GL_CI005_VALIDATION.java:14253)

Since I've created the job in TOS, it didn't changed.
Do you have any idea about this problem ?
Regards,
shamza.

Accepted Solutions
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Presumably it generated and deployed ok in Job Conductor.

All Replies
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Any suggestions ??
Community Manager

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Hi
It is a compilation error, make sure the job works fine in studio first, correct it if not. Second, re-generate the task before executing it!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Hi shong and sorry for the delay,
I've already tried to re-generate my task and it doesn't work, I even deleted and re-created it.
I did it many times and it still ended with errors.
I'm absolutely sure my job is correct and it runs perfectly in TOS.
However, I found something strange.
Following my first attached image, my job start with a tJava, a tRunJob, etc....
When I desactivate all the components of my job, and only let the tJava one, the job runs without errors.
When I activate the tRunJob, it crashed -> I deduce my subjob is wrong.
So I tried to desactivate all the componenets of my subjob (second attached image) except the first one (tFileInputXML).
The compilation error appeared.
It seems when my subjob make a task, even just displaying a message, it crash.
So, have you ever meet this kind of issue ?
Do you have a solution to resolve it ?

Regards,
shamza.
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

What version of job conductor? You say you went from TOS 3.2.3 to TIS 3.2.2. There could be compatibility isseus.
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Hi Janhess and thank you for your answer,
I don't think so otherwise all jobs I deployed should have this compliation error.
I have about 70 jobs deployed on the JobConductor and they already run well :-)
shamza.
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

any other idea ?
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Presumably it generated and deployed ok in Job Conductor.
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Exactly Janhess :-)
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Have you checked the code against the failing line?
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

The failing lines seems not correspond to my java class.
I have re-generate, re-deploye and re-run my job and the following issue appears :
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
The left-hand side of an assignment must be a variable
Syntax error, insert ";" to complete Statement
Syntax error on token "null", invalid ClassType
at hrms.hr_gl_ci005_validation_fr_0_1.HR_GL_CI005_VALIDATION_FR.tRunJob_1Process(HR_GL_CI005_VALIDATION_FR.java:1247)
at hrms.hr_gl_ci005_validation_fr_0_1.HR_GL_CI005_VALIDATION_FR.tJava_1Process(HR_GL_CI005_VALIDATION_FR.java:1167)
at hrms.hr_gl_ci005_validation_fr_0_1.HR_GL_CI005_VALIDATION_FR.runJobInTOS(HR_GL_CI005_VALIDATION_FR.java:32050)
at hrms.hr_gl_ci005_validation_fr_0_1.HR_GL_CI005_VALIDATION_FR.main(HR_GL_CI005_VALIDATION_FR.java:31874)

When I check the lines on my java class, lines 31874 & 32050 does not exist, and the lines 1247 & 1167 seems correct (look at the attached images).
Strange, don't you think ?!
One Star

Re: [resolved] Compilation issue in Job Conductor (TIS 3.2.2)

Hi all,
I found the solution.
It seems that the commit on the SVN workspace didn't run correctly.
So when I run my job, TIS was looking for an unknown job.
I've re-imported the missing jobs, and I checked on the workspace ("process" folder) if these jobs were uploaded.
After that, I've re-run my job and now, it runs perfectly.
Just take a look on this issue for the future.
Thank you all for your help,
shamza.