Symptom
Local build failed due to groovy tests compiling issues.
Error occurred while compiling groovy tests, e.g. integration-apis modules.
[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 @20ad0cba; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @6caf7803) [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 @20ad0cba; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @6caf7803) [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) |
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Read more...
Environment
- SAP Commerce Cloud
- SAP Commerce
Product
SAP Commerce Cloud all versions ; SAP Commerce all versions
Keywords
SAP Commerce Cloud, SAP Commerce, Hybris, Groovy, Compilation Error, Local Build, Directory Path, Java, Ant Clean All, Localextensions File. , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.