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: 
gt0731
Contributor III
Contributor III

Maven compilation error while executing Job- talend 7.2

Hi Everyone,

I am trying to execute talend job from studio. getting below maven compilation error

Any help on it would be much appreciated

 

Error detail

org.talend.designer.runprocess.ProcessorException: java.lang.Exception: [ERROR] COMPILATION ERROR : 

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1951] 

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\PATH TO _Joblet.java:[1952] 

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project nAME_Joblet: Compilation failure: Compilation failure: 

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1951] 

 

[ERROR] context.min_cust_prof_actn_drvr_id = row1.min_cust_prof_actn_drvr_id ;

 

[ERROR]  ^^^^^^^^^^^^^^^^^^^^^^^^^^

 

[ERROR] min_cust_prof_actn_drvr_id cannot be resolved or is not a field

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1952] 

 

[ERROR] System.out.println(context.min_cust_prof_actn_drvr_id);

 

[ERROR]       ^^^^^^^^^^^^^^^^^^^^^^^^^^

 

[ERROR] min_cust_prof_actn_drvr_id cannot be resolved or is not a field

 

[ERROR] 2 problems (2 errors)

 

[ERROR] -> [Help 1]

 

[ERROR] 

 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

 

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

 

[ERROR] 

 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

 

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

 

[ERROR] 

 

[ERROR] After correcting the problems, you can resume the build with the command

 

[ERROR] mvn <goals> -rf :X__Joblet

 

at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:990)

 

at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:620)

 

at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:2145)

 

at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:605)

 

at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:440)

 

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:356)

 

at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:474)

 

at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:240)

 

at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:966)

 

at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:548)

 

at org.talend.designer.runprocess.remote.RunRemoteProcessContext.exec(RunRemoteProcessContext.java:85)

 

at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1445)

 

at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:700)

 

at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:58)

 

at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1.run(JobLaunchConfigurationDelegate.java:85)

 

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)

 

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)

 

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919)

 

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550)

 

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)

 

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)

 

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)

 

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)

 

at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)

 

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)

 

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)

 

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)

 

at org.talend.rcp.intro.Application.XYZt(Application.java:277)

 

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)

 

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)

 

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.XYZt(EclipseAppLauncher.java:107)

 

at org.eclipse.core.runtime.adaptor.EclipseXYZter.run(EclipseXYZter.java:400)

 

at org.eclipse.core.runtime.adaptor.EclipseXYZter.run(EclipseXYZter.java:255)

 

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

 

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

 

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)

 

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)

 

at org.eclipse.equinox.launcher.Main.run(Main.java:1501)

 

Caused by: java.lang.Exception: [ERROR] COMPILATION ERROR : 

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1951] 

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1952] 

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project Name_Joblet: Compilation failure: Compilation failure: 

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1951] 

 

[ERROR] context.min_cust_prof_actn_drvr_id = row1.min_cust_prof_actn_drvr_id ;

 

[ERROR]  ^^^^^^^^^^^^^^^^^^^^^^^^^^

 

[ERROR] min_cust_prof_actn_drvr_id cannot be resolved or is not a field

 

[ERROR] C:\VIJ_XYZ\.repositories\542538899\branches\Name_jan2021\XYZ\poms\jobs\process\Jobs\Name\Name_joblet_0.1\src\main\java\XYZ\Name_joblet_0_1\Name_Joblet.java:[1952] 

 

[ERROR] System.out.println(context.COLUMN);

 

[ERROR]       ^^^^^^^^^^^^^^^^^^^^^^^^^^

 

[ERROR]column cannot be resolved or is not a field

 

[ERROR] 2 problems (2 errors)

 

[ERROR] -> [Help 1]

 

[ERROR] 

 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

 

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

 

[ERROR] 

 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

 

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

 

[ERROR] 

 

[ERROR] After correcting the problems, you can resume the build with the command

 

[ERROR] mvn <goals> -rf :X_Joblet

 

at org.talend.designer.maven.launch.MavenCommandLauncher.execute(MavenCommandLauncher.java:353)

 

at org.talend.designer.maven.launch.MavenPomCommandLauncher.execute(MavenPomCommandLauncher.java:57)

 

at org.talend.designer.maven.tools.BuildCacheManager.build(BuildCacheManager.java:233)

 

at org.talend.designer.runprocess.maven.MavenJavaProcessor.build(MavenJavaProcessor.java:417)

 

at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:987)

 

... 39 more

Labels (2)
6 Replies
prg
Employee
Employee

Hello @govind t​ ,

 

Do full force re-synchronize poms from path File > edit project properties >Build > Maven?

 

If this does not work, please try following the below steps;

 

1. Go to problem view > right click on the error > select quick fix

2. Select configure build path > select your resource > click finish

3. Checkbox the Maven Dependencies and JRE system Library > Click Apply and Close.

 

Please revert back to the community, if needed.

 

Regards,

Vaishnavi

gt0731
Contributor III
Contributor III
Author

Yes , I did the same from above mentioned navigation. issue is same

gt0731
Contributor III
Contributor III
Author

@Vaishnavi Khandelwal​  If i try pointing to new workspace . shall i give try on this

gt0731
Contributor III
Contributor III
Author

@Vaishnavi Khandelwal​  Also i tried Problem view . No error is showing since it is is compilation error. Nothing showing there

prg
Employee
Employee

Could you please share the Studio logs by following the below steps,

 

- Go to Studio

- Go to the “Help” Menu

- Select “Support Logs”

- Save the archive to a known location so that it can be attached here.

gt0731
Contributor III
Contributor III
Author

issue resolves when i pointed to new local branch git. thanks @Vaishnavi Khandelwal​