on 2023 May 16 12:44 PM
Hi All,
We are currently facing the blow error while creating build for Sap comm 2205 with "ant clean all" command.
Kindly let me know if anyone else has faced the same error and what will be the resolution for this
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] General error during conversion: class groovy.transform.AnnotationCollectorMode cannot be cast to class groovy.transform.AnnotationCollectorMode (groovy.transform.AnnotationCollectorMode is in unnamed module of loader groovy.lang.GroovyClassLoader @40233fe3; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @28157173)
[groovyc]
[groovyc] java.lang.ClassCastException: class groovy.transform.AnnotationCollectorMode cannot be cast to class groovy.transform.AnnotationCollectorMode (groovy.transform.AnnotationCollectorMode is in unnamed module of loader groovy.lang.GroovyClassLoader @40233fe3; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @28157173)
[groovyc] at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.lambda$findCollectedAnnotations$1(ASTTransformationCollectorCodeVisitor.java:187)
[groovyc] at java.base/java.util.Optional.map(Optional.java:260)
[groovyc] at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.findCollectedAnnotations(ASTTransformationCollectorCodeVisitor.java:187)
[groovyc] at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitAnnotations(ASTTransformationCollectorCodeVisitor.java:93)
[groovyc] at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:49)
[groovyc] at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitClass(ASTTransformationCollectorCodeVisitor.java:77)
[groovyc] at org.codehaus.groovy.transform.ASTTransformationVisitor.lambda$addPhaseOperations$1(ASTTransformationVisitor.java:206)
[groovyc] at org.codehaus.groovy.control.CompilationUnit$IPrimaryClassNodeOperation.doPhaseOperation(CompilationUnit.java:942)
[groovyc] at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:671)
[groovyc] at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:635)
[groovyc] at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:610)
[groovyc] at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:311)
[groovyc] at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:240)
[groovyc] at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1312)
[groovyc] at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:1362)
[groovyc] at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:886)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at net.sf.antcontrib.logic.OutOfDate.execute(OutOfDate.java:457)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
[groovyc] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
[groovyc] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
[groovyc] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
[groovyc] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at java.base/java.util.Vector.forEach(Vector.java:1365)
[groovyc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
[groovyc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
[groovyc] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[groovyc] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[groovyc] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[groovyc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
[groovyc] at org.apache.tools.ant.Task.perform(Task.java:350)
[groovyc] at org.apache.tools.ant.Target.execute(Target.java:449)
[groovyc] at org.apache.tools.ant.Target.performTasks(Target.java:470)
[groovyc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
[groovyc] at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
[groovyc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[groovyc] at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
[groovyc] at org.apache.tools.ant.Main.runBuild(Main.java:818)
[groovyc] at org.apache.tools.ant.Main.startAnt(Main.java:223)
[groovyc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
[groovyc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
[groovyc]
[groovyc] 1 error
BUILD FAILED
C:\work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\platform\build.xml:13: The following error occurred while executing this line:
C:\Work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\platform\resources\ant\compiling.xml:95: The following error occurred while executing this line:
C:\Work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\platform\resources\ant\compiling.xml:153: The following error occurred while executing this line:
C:\work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\platform\resources\ant\util.xml:13: The following error occurred while executing this line:
C:\Work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\platform\resources\ant\compiling.xml:160: The following error occurred while executing this line:
C:\Work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\platform\resources\ant\compiling.xml:360: The following error occurred while executing this line:
C:\Work\AusWebsite\LycamobileCode2205\lyca-digital-platform\core-customize\hybris\bin\modules\platform\groovynature\buildcallbacks.xml:33: Compilation Failed
Request clarification before answering.
Hi Ayan,
Please re-check you your system environment is set with correct JAVA version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayan,
Add the below property in local.properties file and try to build again.
build.parallel=true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
22 | |
13 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.