cancel
Showing results for 
Search instead for 
Did you mean: 

groovyc errors on ant clean all with SAP Commerce 2205

phoude
Participant
0 Kudos

Hi,

I am trying to build a SAP Commerce 2205 P7 and getting the following error. Any idea? Getting this after "ant clean all". I am on Windows with JDK 17.

  [groovyc] C:\hybris\core-customize\bin\modules\integration-apis\integrationservices\testsrc\de\hybris\platform\integrationservices\validator\SingleRootItemConstraintViolationExceptionUnitTest.groovy
  [groovyc] C:\hybris\core-customize\bin\modules\integration-apis\integrationservices\testsrc\de\hybris\platform\integrationservices\validator\SingleRootItemValidatorUnitTest.groovy
  [groovyc] C:\hybris\core-customize\bin\modules\integration-apis\integrationservices\testsrc\de\hybris\platform\integrationservices\virtualattributes\LogicExecutorContextUnitTest.groovy
  [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 @4513d0c; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @52454457)
  [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 @4513d0c; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @52454457)
  [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:\hybris\core-customize\bin\platform\build.xml:13: The following error occurred while executing this line:
C:\hybris\core-customize\bin\platform\resources\ant\compiling.xml:95: The following error occurred while executing this line:
C:\hybris\core-customize\bin\platform\resources\ant\compiling.xml:153: The following error occurred while executing this line:
c:\hybris\core-customize\bin\platform\resources\ant\util.xml:13: The following error occurred while executing this line:
C:\hybris\core-customize\bin\platform\resources\ant\compiling.xml:160: The following error occurred while executing this line:
C:\hybris\core-customize\bin\platform\resources\ant\compiling.xml:360: The following error occurred while executing this line:
C:\hybris\core-customize\bin\modules\platform\groovynature\buildcallbacks.xml:33: Compilation Failed
imransheikh
Explorer
0 Kudos

Use build.parallel = false in local properties file. and to build again.

This should resolve your issue.

phoude
Participant
0 Kudos

sheikh.imran Setting the build.parallel to false did not make any difference. I think it is already set to false in a project.properties somewhere

stephan_beutel
Discoverer
0 Kudos

Java 17 security settings required to allow access to all classes/types/... of a dependency.

If you get an error like this:

java.lang.IllegalAccessError: class com.root.whatever.Class (in unnamed module @0xdec3d79) cannot access class com.root.another.path.OtherClass (in module <module.name>) because module <module.name> does not export com.root.another.path to unnamed module @0xdec3d79

This error means that acces to the mentioned com.sun.org.apache.xpath.internal package is not allowed.

If you look into:

hybris/bin/platform/resources/advanced.properties

you can see this property:

standalone.jdkmodulesexports=--add-opens=java.base/java.util=ALL-UNNAMED --add-opens="java.base/java.lang=ALL-UNNAMED" --add-opens="java.base/java.lang.reflect=ALL-UNNAMED" --add-exports="java.base/jdk.internal.ref=ALL-UNNAMED" --add-exports="java.naming/com.sun.jndi.ldap=ALL-UNNAMED" --add-exports="jdk.management.agent/jdk.internal.agent=ALL-UNNAMED" --add-exports="java.base/sun.security.util=ALL-UNNAMED" --add-exports="java.base/sun.security.pkcs=ALL-UNNAMED"

If you add some dependencies in your custom code which needs to be granted access you need to add your dependency in the same way to the runtime.

Keep in mind to keep the original values to ensure platform can be build.

This is the dependency tree of the properties:

tomcat.generaloptions
|- tomcat.jdkmodules.config
|- tomcat.jdkmodules.add
|- tomcat.jdkmodules.opens
|- tomcat.jdkmodules.exports

|- standalone.jdkmodulesexports

mcgs
Discoverer
0 Kudos

Hi stephan.beutel

thank you for your support. We might have a different issue here though. From the error shown above I cannot see Java complaining about missing access permissions. It sounds like a class loader issue.

So is there something else that could help us here?

Accepted Solutions (1)

Accepted Solutions (1)

ma_langguth
Member

Hi Pascal,

"The groovyc ant task now compiles all builds in a forked mode for all extensions in all operating systems. If you encounter any issues with forked groovyc when installing SAP Commerce on Windows in long installation directories using installer recipes, disable forking for selected extensions. For example, for the cx recipe, add the following properties to your local.properties file:"

b2bocctests.groovyc.fork=false
b2bpunchoutocctests.groovyc.fork=false
configurablebundleocctests.groovyc.fork=false
customerticketingocctests.groovyc.fork=false
textfieldconfiguratortemplateocctests.groovyc.fork=false
odata2webservices.groovyc.fork=false
integrationbackoffice.groovyc.fork=false
integrationbackofficetest.groovyc.fork=false
webhookbackoffice.groovyc.fork=false
odata2webservicesfeaturetests.groovyc.fork=false
sapproductconfigfacades.groovyc.fork=false
sapproductconfigocctests.groovyc.fork=false


https://help.sap.com/docs/SAP_COMMERCE/a74589c3a81a4a95bf51d87258c0ab15/71ce7fccfb3242c09690e8000e6e...

Best regards

Matthias

0 Kudos

That's a really bad decision to put such info into Upgrade steps. Not all are upgrading from earlier versions - some projects are directly starting on 2211, so this info should be flagged in more appropriate place

former_member506
Participant
0 Kudos

This helps to solve officially.
But, after these tests extensions, its starts giving error for some other extensions too.

phoude
Participant
0 Kudos

ma.langguth That did the trick for another compilation error I had specific to forking. Setting groovy.fork=false can be done if you do not want to chase which extensions you need to specify individually. When doing "ant clean all" it will stop at the first failure so i can take a fair amount of time before you uncover all the culprits.

0 Kudos

I added those above properties in local.properties file, but it did not work, can you please let me know the solution. Currently im facing this issue on 2211 version.

0 Kudos

I added these properties in local.properties file, but it did not work, can you please share the solution if we need to add anything. Currently iam getting this issue on 2211 version.

pshukla09
Explorer
0 Kudos

@yeshwant_mulli Are you able to resolve this issue in 2211. I am facing same issue in this version.

Answers (3)

Answers (3)

sap_ayan
Explorer
0 Kudos

Hi All,

We are getting the same error in windows machine with SAP comm v2205.12

groovyc fork configuration is set to false in local.properties file "groovyc.fork=false"

Do we have any valid fix for the same.

Thanks,

Ayan

geffchang
Active Contributor
0 Kudos

This builds on top of ma.langguth 's answer.

Add "commercewebservicestests" to the list of groovyc.fork items.

i.e. custom.properties in "installer\customconfig" folder would have these properties:

initialpassword.admin=ultima!8
build.parallel=false
b2bocctests.groovyc.fork=false
b2bpunchoutocctests.groovyc.fork=false
configurablebundleocctests.groovyc.fork=false
customerticketingocctests.groovyc.fork=false
textfieldconfiguratortemplateocctests.groovyc.fork=false
odata2webservices.groovyc.fork=false
integrationbackoffice.groovyc.fork=false
integrationbackofficetest.groovyc.fork=false
webhookbackoffice.groovyc.fork=false
odata2webservicesfeaturetests.groovyc.fork=false
sapproductconfigfacades.groovyc.fork=false
sapproductconfigocctests.groovyc.fork=false
commercewebservicestests.groovyc.fork=false

As of 2023-04-09, this configuration successfully initializes SAP Commerce 2205.10 cx recipe on Windows 11 Home 22H2, SapMachine 17.0.6+0-LTS.

0 Kudos

Hi Geff, after adding these properties, still issue with the 2211 version, can you please help, if any other extensions need to be added or any configuration need to be modified.

0 Kudos

Hey, Pascal!

Were you able to build he platform? i'm getting pretty same issues now. First it was just failing without any meaningful info with "Error running forked groovyc". Then I changed to not use forked groovyc with "groovyc.fork=false" property and now I'm getting this exact error

phoude
Participant

still unresolved. I practically removed all groovy scripts files from the solution even those from SAP in order to build.

0 Kudos

Ok, that was basically the same for me - was just removing failing groovy tests from platform until it was built successfully.

BTW, I got this with 2211. Will try to flag it to SAP through launchpad.

Thanks for confirmation that I'm not the only one having this 😄

phoude
Participant
0 Kudos

Did you raise support ticket for this? I had to delete all groovyc as well.