cancel
Showing results for 
Search instead for 
Did you mean: 

local setup commece cloud 2211 build failure groovyc

x1111111111
Explorer
0 Kudos
264

facing below error while setting up sap commerce cloud 2211 locally windows

 

[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 @3a2b459a; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @26c89563)
  [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 @3a2b459a; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @26c89563)
  [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)

 

tried with playing around with below configurations but did not help

groovyc.fork=false

<extname>.groovyc.fork=false

build.parallel=false

not sure if its log path issue. current hybris installation directory path 

 

C:\dl\core-customize\hybris\bin\custom

 

 

 

Sohail_Jahangir
Product and Topic Expert
Product and Topic Expert
0 Kudos
Please reinstall hybris and keep the installation directory path as short as possible eg C:\2211\workspace\hybris
View Entire Topic
phoude
Participant
0 Kudos

You can delete the offending script each time you get an error but that will be a very long process given how much time the build spends in executing those groovy scripts. When someone falls in the situation that you are then I tell them to delete all groovy scripts! A bit drastic but have no choice until SAP acknowledge the issue and provide a permanent solution. I wish there was a switch to skip the execution of those groovy scripts.

__PRESENT