Notifications
Clear all

[Solved] Assistance Needed with Compilation Failed Error During Project Bootstrapping

1 Posts
2 Users
1 Likes
137 Views
0
Topic starter

I am getting compilation failed error while bootstrapping project I am following one post from forum "How do I recover from fail bootstrap"

https://community.onenetwork.com/postid/3603/

To provide some context, I followed these steps:

  1. Took the latest revision of the project.
  2. Made changes in the properties file in the install staging.
  3. Ran the following commands in the Ant DOS: ant recreate-local-props, ant sync, and ant clean build.

However, despite following these steps, I encountered an error after 4-5 hours of execution. I have attached the log for reference. I would greatly appreciate assistance in resolving this issue.

[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\ExtraAttributesMappingSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\InventoryClassificationSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\InventoryHistorySpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\InventoryPinSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\KitContentLineSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\KitContentSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\LPInventoryHistorySpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\LocationSealSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\MetricComputationConfigSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\MetricProviderSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\MovePlanDetailSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\MovePlanLineSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\MovePlanSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\OperatorProfileSpy.java
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\build\private-gen-src\com\onenetwork\wms\model\spy\TestResultFactSpy.java
[groovyc] ********************WARNING - PRIVATE APIS********************
[groovyc] File LPNResource.java calls Module-Private method(s). These references may not be backward compatible in future versions and are generally unsafe:
[groovyc] com.onenetwork.platform.common.SingletonLine.getItemName()
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] Compile error during compilation with javac.
[groovyc] warning: [options] system modules path not set in conjunction with -source 11
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\domain\impl\PackingListDomainImpl.java:2490: warning: [removal] setFinalInventoryStatus(List<PackingList>) in PackingListDomain has been deprecated and marked for removal
[groovyc] public void setFinalInventoryStatus(List<PackingList> packingLists) {
[groovyc] ^
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\data\impl\PickListDataAccessImpl.java:60: warning: [removal] updateStatusToInProgress(List<PickList>,PlatformUserContext) in PickListDataAccess has been deprecated and marked for removal
[groovyc] public void updateStatusToInProgress(List<PickList> pickLists, PlatformUserContext context) {
[groovyc] ^
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\discon\DisconPickRequestKey.java:27: warning: [dep-ann] deprecated item is not annotated with @Deprecated
[groovyc] public DisconPickRequestKey(PickLine pickLine) {
[groovyc] ^
[groovyc] C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\domain\impl\ReceiptDomainImpl.java:4980: error: clone() in CancelableErrorDef cannot override clone() in MessageDef
[groovyc] public Object clone() {
[groovyc] ^
[groovyc] return type Object is not compatible with MessageDef
[groovyc] Note: Some input files use or override a deprecated API.
[groovyc] Note: Recompile with -Xlint:deprecation for details.
[groovyc] Note: Some input files use unchecked or unsafe operations.
[groovyc] Note: Recompile with -Xlint:unchecked for details.
[groovyc] 1 error
[groovyc] 4 warnings
[groovyc]
[groovyc]
[groovyc] 1 error

BUILD FAILED
C:\views\INSTAN~1\ib-branches\Neo3.5-rb\build.xml:1312: The following error occurred while executing this line:
C:\views\INSTAN~1\ib-branches\Neo3.5-rb\build.xml:2254: Traceback (most recent call last):
File "<script>", line 6, in <module>
File "<string>", line 681, in runAntForEachApp
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1390: The following error occurred while executing this line:
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1230: Compilation Failed
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:582)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
at jdk.internal.reflect.GeneratedMethodAccessor364.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at jdk.internal.reflect.GeneratedMethodAccessor363.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
org.apache.tools.ant.BuildException: The following error occurred while executing this line:
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1390: The following error occurred while executing this line:
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1230: Compilation Failed

at org.python.core.Py.JavaError(Py.java:552)
at org.python.core.Py.JavaError(Py.java:543)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
at org.python.core.PyObject.__call__(PyObject.java:480)
at org.python.core.PyObject.__call__(PyObject.java:484)
at org.python.core.PyMethod.__call__(PyMethod.java:126)
at org.python.pycode._pyx78.runAntForEachApp$66(<string>:639)
at org.python.pycode._pyx78.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyFunction.function___call__(PyFunction.java:471)
at org.python.core.PyFunction.__call__(PyFunction.java:466)
at org.python.pycode._pyx77.f$0(<script>:8)
at org.python.pycode._pyx77.call_function(<script>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.core.__builtin__.eval(__builtin__.java:497)
at org.python.core.__builtin__.eval(__builtin__.java:501)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:154)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:86)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.Main.runBuild(Main.java:818)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: The following error occurred while executing this line:
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1390: The following error occurred while executing this line:
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1230: Compilation Failed
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:582)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
at jdk.internal.reflect.GeneratedMethodAccessor364.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at jdk.internal.reflect.GeneratedMethodAccessor363.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
... 53 more
Caused by: C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1390: The following error occurred while executing this line:
C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1230: Compilation Failed
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:582)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at java.base/java.util.Vector.forEach(Vector.java:1359)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at jdk.internal.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at java.base/java.util.Vector.forEach(Vector.java:1359)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at jdk.internal.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
... 62 more
Caused by: C:\views\JnJ_3.8\studio\build\studio\eclipse\plugins\com.onenetwork.platform.sdk_1.0.0\proj-static\base-build.xml:1230: Compilation Failed
at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1332)
at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:1362)
at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:886)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at java.base/java.util.Vector.forEach(Vector.java:1359)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
... 102 more
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Compile error during compilation with javac.
warning: [options] system modules path not set in conjunction with -source 11
C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\domain\impl\PackingListDomainImpl.java:2490: warning: [removal] setFinalInventoryStatus(List<PackingList>) in PackingListDomain has been deprecated and marked for removal
public void setFinalInventoryStatus(List<PackingList> packingLists) {
^
C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\data\impl\PickListDataAccessImpl.java:60: warning: [removal] updateStatusToInProgress(List<PickList>,PlatformUserContext) in PickListDataAccess has been deprecated and marked for removal
public void updateStatusToInProgress(List<PickList> pickLists, PlatformUserContext context) {
^
C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\discon\DisconPickRequestKey.java:27: warning: [dep-ann] deprecated item is not annotated with @Deprecated
public DisconPickRequestKey(PickLine pickLine) {
^
C:\views\JnJ_3.8\apps\WarehouseManagement\private-src\com\onenetwork\wms\domain\impl\ReceiptDomainImpl.java:4980: error: clone() in CancelableErrorDef cannot override clone() in MessageDef
public Object clone() {
^
return type Object is not compatible with MessageDef
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
4 warnings

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:295)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:151)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.addJavacError(JavacJavaCompiler.java:140)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:83)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:122)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:646)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:610)
at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:311)
at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:240)
at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1312)
... 119 more

This topic was modified 3 weeks ago by javamk
Topic Tags
1 Answer
1

This is not related to missing local.properties but actual code compilation issue. Checked the revision history for ReceiptDomainImpl in WMS and I am seeing the fix committed in CL# 1072738

Please make sure you are on latest CL# otherwise sync to above CL# and try the build again. You don't need to do clean build again and you can simply invoke build-apps command, i.e. 

ant build-apps