cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BUG! exception in phase 'semantic analysis'

crescenzorega
Active Participant
6,917
BUILD FAILED
C:\hybris\bin\platform\build.xml:20: The following error occurred while executing this line:
C:\hybris\bin\platform\resources\ant\compiling.xml:90: The following error occurred while executing this line:
C:\hybris\bin\platform\resources\ant\compiling.xml:131: The following error occurred while executing this line:
C:\hybris\bin\platform\resources\ant\util.xml:49: The following error occurred while executing this line:
C:\hybris\bin\platform\resources\ant\util.xml:51: The following error occurred while executing this line:
C:\hybris\bin\platform\resources\ant\compiling.xml:138: The following error occurred while executing this line:
C:\hybris\bin\platform\resources\ant\compiling.xml:355: The following error occurred while executing this line:
C:\hybris\bin\modules\platform\groovynature\buildcallbacks.xml:25: BUG! exception in phase 'semantic analysis' in source unit 'C:\hybris\bin\modules\integration-apis\outboundservices\testsrc\de\hybris\platform\outboundservices\BasicCredentialBuilder.groovy' null
        at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:980)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:651)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:600)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:583)
        at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:75)
        at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:243)
        at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1206)
        at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:1258)
        at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:853)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:1387)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:1387)
        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.GeneratedMethodAccessor23.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:1387)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
        at jdk.internal.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
        at org.apache.tools.ant.Task.perform(Task.java:350)
        at net.sf.antcontrib.logic.OutOfDate.execute(OutOfDate.java:457)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:1387)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:1387)
        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.GeneratedMethodAccessor23.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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:1387)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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)
        at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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.Parallel$TaskRunnable.run(Parallel.java:454)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.ConcurrentModificationException
        at java.base/java.util.Vector$Itr.checkForComodification(Vector.java:1320)
        at java.base/java.util.Vector$Itr.next(Vector.java:1276)
        at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:869)
        at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1395)
        at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)
        at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:192)
        at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:172)
        at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:128)
        at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:784)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:395)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:560)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:540)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:514)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:393)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromStaticInnerClasses(ResolveVisitor.java:498)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:394)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromStaticInnerClasses(ResolveVisitor.java:498)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:394)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromStaticInnerClasses(ResolveVisitor.java:498)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:394)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromStaticInnerClasses(ResolveVisitor.java:498)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:394)
        at org.codehaus.groovy.control.ResolveVisitor.resolveFromStaticInnerClasses(ResolveVisitor.java:498)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:394)
        at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1352)
        at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:227)
        at org.codehaus.groovy.control.CompilationUnit$13.call(CompilationUnit.java:709)
        at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:976)
        ... 102 more


Total time: 2 minutes 39 seconds


how can i solve this problem?

Accepted Solutions (1)

Accepted Solutions (1)

crescenzorega
Active Participant

the problem seems to be due to

build.parallel=true

as soon as I removed it from

local.properties

the problem has been solved

Former Member

Thanks crescenzorega! I ran into the same issue, and your solution worked for me.

It worked for me too. Thanks.

sumit1234
Explorer

Thanks for sharing!

ylavoie
Explorer

Thanks for sharing. I was losing my mind trying to figure out what was causing the build to fail.

akshay_ae_sharma
Explorer

Thanks a lot for sharing this. It helped me too.

Answers (1)

Answers (1)

jose1914luis
Discoverer
0 Kudos

just to complement the answer is possible to add a custom configuration by creating a custom.properties into the folder installer\customconfig with this line

build.parallel=false
kkotula
Discoverer
0 Kudos

Hi, is it possible to fix build issue without setting the property build.parallel to false? I am running 2211.42 and this seems to be an issue again:

touch] Creating C:\sap-commerce1\core-customize\hybris\temp\hybris\touch\morisintegrations_testsrctouch

BUILD FAILED
C:\sap-commerce1\core-customize\hybris\bin\platform\build.xml:13: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:95: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:136: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\util.xml:42: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\util.xml:44:
The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:143: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:333: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:559: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:964: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\modules\p atform\groovynature\buildcallbacks.xml:33: BUG! exception in phase 'semantic analysis' in source unit 'C:\sap-commerce1\core-customize\hybris\bin\modules\integration-apis\integrationbackofficetest\backoffice\testsrc\de\hybris\platform\integrationbackoffice\widgets\editor\utility\DefaultEditorAttributesFilteringServiceUnitTest.groovy' null
The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:143: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:333: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:559: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\platform\resources\ant\compiling.xml:964: The following error occurred while executing this line:
C:\sap-commerce1\core-customize\hybris\bin\modules\platform\groovynature\buildcallbacks.xml:33: BUG! exception in phase 'semantic analysis' in source unit 'C:\sap-commerce1\core-customize\hybris\bin\modules\integration-apis\webhookbackoffice\backoffice\testsrc\de\hybris\platform\webhookbackoffice\handlers\WebhookProcessConsumedDestinationWizardHandlerUnitTest.groovy' null