Five Stars

Error occurred while build a specific job

Hello,
When I build the specific job I got the error that
org.talend.designer.core.model.components.EmfComponent - <Component:tInitLog4J> Connector \"THEN_RUN\" defined in the xml, but doesn't exist.

I already added the custom components in the project.

I am also attaching the log file and screenshot of the error.

LOG FILE

!ENTRY org.talend.platform.logging 2 0 2017-11-03 11:16:19.051
!MESSAGE 2017-11-03 11:16:19,051 WARN org.talend.designer.core.model.components.EmfComponent - <Component:tInitLog4J> Connector \"THEN_RUN\" defined in the xml, but doesn't exist.

!ENTRY org.talend.designer.runprocess 2 0 2017-11-03 11:16:20.383
!MESSAGE ESB configuration folder does not exists - file:/home/hiten/TalendToolsStudio-6.4.1/studio/esb

!ENTRY org.talend.platform.logging 2 0 2017-11-03 11:16:23.212
!MESSAGE 2017-11-03 11:16:23,212 WARN org.talend.designer.core.model.components.EmfComponent - <Component:tInitLog4J> Connector \"REFERENCE\" defined in the xml, but doesn't exist.

!ENTRY org.talend.platform.logging 1 0 2017-11-03 11:16:25.002
!MESSAGE 2017-11-03 11:16:25,002 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.osm_zap:code.Master:6.4.1 @ /home/hiten/TalendWorkspace/.Java/pom.xml.

!ENTRY org.talend.platform.logging 1 0 2017-11-03 11:16:25.452
!MESSAGE 2017-11-03 11:16:25,452 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.osm_zap:code.Master:6.4.1 @ /home/hiten/TalendWorkspace/.Java/pom.xml.

!ENTRY org.talend.platform.logging 2 0 2017-11-03 11:16:25.790
!MESSAGE 2017-11-03 11:16:25,790 WARN org.talend.commons.exception.CommonExceptionHandler - org.talend.designer.runprocess.ProcessorException: Routines "Compare" has compile errors
Error Line: 125
Detail Message: org.apache.commons.validator cannot be resolved
!STACK 0
org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Routines "Compare" has compile errors
Error Line: 125
Detail Message: org.apache.commons.validator cannot be resolved
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:234)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:164)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJobs(BuildJobManager.java:108)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.buildJobWithMaven(JobScriptsExportWizardPage.java:1487)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage$8.run(JobScriptsExportWizardPage.java:1389)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.finish(JobScriptsExportWizardPage.java:1394)
at org.talend.repository.ui.wizards.exportjob.JavaJobScriptsExportWSWizardPage.finish(JavaJobScriptsExportWSWizardPage.java:1244)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizard.performFinish(JobScriptsExportWizard.java:126)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
at org.eclipse.jface.window.Window.open(Window.java:808)
at org.talend.repository.ui.actions.ExportJobScriptAction.doRun(ExportJobScriptAction.java:117)
at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)
at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)
at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3369)
at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2119)
at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.talend.rcp.intro.Application.start(Application.java:255)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: org.talend.designer.runprocess.ProcessorException: Routines "Compare" has compile errors
Error Line: 125
Detail Message: org.apache.commons.validator cannot be resolved
at org.talend.designer.runprocess.JobErrorsChecker.checkRoutinesCompilationError(JobErrorsChecker.java:393)
at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:341)
at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:380)
at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:292)
at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:634)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:904)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:719)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1270)
at org.talend.repository.ui.wizards.exportjob.handler.BuildJobHandler.generateJobFiles(BuildJobHandler.java:159)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager$1.run(BuildJobManager.java:208)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:228)
... 59 more
!ENTRY org.talend.platform.logging 1 0 2017-11-03 11:16:26.798
!MESSAGE 2017-11-03 11:16:26,797 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.osm_zap:code.Master:6.4.1 @ /home/hiten/TalendWorkspace/.Java/pom.xml.

!ENTRY org.talend.platform.logging 2 0 2017-11-03 11:18:39.730
!MESSAGE 2017-11-03 11:18:39,730 WARN org.talend.designer.core.model.components.EmfComponent - <Component:tInitLog4J> Connector \"THEN_RUN\" defined in the xml, but doesn't exist.

!ENTRY org.talend.platform.logging 2 0 2017-11-03 11:18:39.730
!MESSAGE 2017-11-03 11:18:39,730 WARN org.talend.designer.core.model.components.EmfComponent - <Component:tInitLog4J> Connector \"REFERENCE\" defined in the xml, but doesn't exist.

!ENTRY org.talend.platform.logging 1 0 2017-11-03 11:18:45.117
!MESSAGE 2017-11-03 11:18:45,117 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.osm_zap:code.Master:6.4.1 @ /home/hiten/TalendWorkspace/.Java/pom.xml.

!ENTRY org.talend.platform.logging 2 0 2017-11-03 11:18:45.742
!MESSAGE 2017-11-03 11:18:45,742 WARN org.talend.commons.exception.CommonExceptionHandler - org.talend.designer.runprocess.ProcessorException: Routines "Compare" has compile errors
Error Line: 125
Detail Message: org.apache.commons.validator cannot be resolved
!STACK 0
org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Routines "Compare" has compile errors
Error Line: 125
Detail Message: org.apache.commons.validator cannot be resolved
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:234)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:164)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJobs(BuildJobManager.java:108)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.buildJobWithMaven(JobScriptsExportWizardPage.java:1487)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage$8.run(JobScriptsExportWizardPage.java:1389)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.finish(JobScriptsExportWizardPage.java:1394)
at org.talend.repository.ui.wizards.exportjob.JavaJobScriptsExportWSWizardPage.finish(JavaJobScriptsExportWSWizardPage.java:1244)
at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizard.performFinish(JobScriptsExportWizard.java:126)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
at org.eclipse.jface.window.Window.open(Window.java:808)
at org.talend.repository.ui.actions.ExportJobScriptAction.doRun(ExportJobScriptAction.java:117)
at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)
at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)
at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3369)
at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2119)
at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.talend.rcp.intro.Application.start(Application.java:255)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: org.talend.designer.runprocess.ProcessorException: Routines "Compare" has compile errors
Error Line: 125
Detail Message: org.apache.commons.validator cannot be resolved
at org.talend.designer.runprocess.JobErrorsChecker.checkRoutinesCompilationError(JobErrorsChecker.java:393)
at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:341)
at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:380)
at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:292)
at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:634)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:904)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:719)
at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1270)
at org.talend.repository.ui.wizards.exportjob.handler.BuildJobHandler.generateJobFiles(BuildJobHandler.java:159)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager$1.run(BuildJobManager.java:208)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:228)
... 59 more
!ENTRY org.talend.platform.logging 1 0 2017-11-03 11:18:46.786
!MESSAGE 2017-11-03 11:18:46,786 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.osm_zap:code.Master:6.4.1 @ /home/hiten/TalendWorkspace/.Java/pom.xml.

1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: Error occurred while build a specific job

Hello,

I downgrade the Talend open studio from 6.4.1 to 6.2 and setup the project again and added the required jars and download and installed the dependency which are required for my project and build the jobs again. And its working.

Its build the job without any error.

 

Thanks for your help.

15 REPLIES
Moderator

Re: Error occurred while build a specific job

Hi,

When you get some compile errors, please check your "Code" tab in your job. There will be your compile error highlighted in red line. Screenshots of your specific job setting will be preferred.

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 occurred while build a specific job

 

Screenshot from 2017-11-06 00_52_23.pngOkay.
I build my job again but I didn't get it that in which file it will be highlighted. 
I attached the screenshot of my code tab.
Can you please help me out.

Moderator

Re: Error occurred while build a specific job

Hi,

 Next to the Designer tab there is a Code tab that lets you view the source code for the entire Job.

1.png

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 occurred while build a specific job

ohhh yes, got it.
But I didn't get any error in my code.
The error is occurred when I build my job.
Its like compile time error.
Moderator

Re: Error occurred while build a specific job

Hello,

Could you please post your specific job setting screenshots on forum? Which will be helpful for us to address your issue.

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 occurred while build a specific job

Screenshot from 2017-11-06 04_26_02.png

 

I attached the screen shot of build job.

Five Stars

Re: Error occurred while build a specific job

did you get anything which is useful to me ?
This error is occurred in my all files when I build the jobs.
Moderator

Re: Error occurred while build a specific job

Hello,

What's JDK version you are using? Oracle java 8? Can you build your other jobs successfully on current studio V 6.4?

We see that you unchecked "Context scripts", "Shell launcher", "items" and "java source" option from your screenshot. Do you want to build your job as a standalone one?

Have you already referred to this online document about:TalendHelpCenter:How to build Jobs ?

 

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 occurred while build a specific job

Yes, I am using the Oracle Java 8 version.
nope, whenever I build any of the job, I got the same error which I mentioned in this topic.
Yes, I want standalone job that's why I unchecked that options.
Moderator

Re: Error occurred while build a specific job

Hello,

We cannot repro your issue on V 6.4.

Can you execute your job (F6)successfully on your studio V 6.4?

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 occurred while build a specific job

Hello,

I ran other Jobs as per your post but I am getting the same error while build the job. I attached the screenshot of it to get more idea about the error.Screenshot from 2017-11-17 14_24_22.png

Five Stars

Re: Error occurred while build a specific job

did you get anything to get me out of this issue ?
Five Stars

Re: Error occurred while build a specific job

Hello,

I downgrade the Talend open studio from 6.4.1 to 6.2 and setup the project again and added the required jars and download and installed the dependency which are required for my project and build the jobs again. And its working.

Its build the job without any error.

 

Thanks for your help.

Moderator

Re: Error occurred while build a specific job

Hello,


hiten_zaptech wrote:

Hello,

I downgrade the Talend open studio from 6.4.1 to 6.2 and setup the project again and added the required jars and download and installed the dependency which are required for my project and build the jobs again. And its working.

Its build the job without any error.

 

Thanks for your help.


Have you tried your solution on V 6.4.1 to see if it works?

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 occurred while build a specific job

nope. I didn't try it on 6.4.1.