cancel
Showing results for 
Search instead for 
Did you mean: 

build.parallel settings failure in local.properties file

0 Kudos

There is build.parallel setting in local.properties file which when set to true enables multithreading for project build process. I would like to use this setting to shorten my project build time but when I set it to true it fails my build as it seen below.

I've got 4-core computer processor. I've lowered Gradle version to make it match minimum compatible version of JDK (now it's Gradle 5.0 and JDK 11.0.15). Also I've tried to temporarily remove groovy test file which causes the error but then BUG appears in another groovy test file in hybris\bin\modules\integration-apis\outboundservices\testsrc\de\hybris\platform\outboundservices map. I've tried to run ant clean all several times just to remove these problematic test files one by one but seems that this process can be endless.

How to solve this and use build.parallel setting?

BUILD FAILED
C:\Users\vladi\SAP2011\hybris\bin\platform\build.xml:13: The following error occurre
d while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\platform\resources\ant\compiling.xml:75: The follo
wing error occurred while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\platform\resources\ant\compiling.xml:116: The foll
owing error occurred while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\platform\resources\ant\util.xml:42: The following
error occurred while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\platform\resources\ant\util.xml:44: The following
error occurred while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\platform\resources\ant\compiling.xml:123: The foll
owing error occurred while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\platform\resources\ant\compiling.xml:340: The foll
owing error occurred while executing this line:
C:\Users\vladi\SAP2011\hybris\bin\modules\platform\groovynature\buildcallbacks.xml:3
3: BUG! exception in phase 'semantic analysis' in source unit 'C:\Users\vladi\SAP201
1\hybris\bin\modules\integration-apis\outboundservices\testsrc\de\hybris\platform\ou
tboundservices\cache\impl\DestinationOauthRestTemplateIdUnitTest.groovy' null
        at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(Compilatio
nUnit.java:980)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationU
nit.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.j
ava:75)
        at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemComp
iler.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(Delega
tingMethodAccessorImpl.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:1388)
        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(Delega
tingMethodAccessorImpl.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:39
1)
        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(Delega
tingMethodAccessorImpl.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:1388)
        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(Delega
tingMethodAccessorImpl.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(Delega
tingMethodAccessorImpl.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:1388)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
        at jdk.internal.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Delega
tingMethodAccessorImpl.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(Delega
tingMethodAccessorImpl.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:1388)
        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(Delega
tingMethodAccessorImpl.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:39
1)
        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(Delega
tingMethodAccessorImpl.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:1388)
        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(Delega
tingMethodAccessorImpl.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(Delega
tingMethodAccessorImpl.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:1388)
        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(Delega
tingMethodAccessorImpl.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:39
1)
        at jdk.internal.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Delega
tingMethodAccessorImpl.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:829)
Caused by: java.util.ConcurrentModificationException
        at java.base/java.util.Vector$Itr.checkForComodification(Vector.java:1321)
        at java.base/java.util.Vector$Itr.next(Vector.java:1277)
        at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.
java:1368)
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1338)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1093)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:576)
        at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:762)
        at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:637)
        at org.codehaus.groovy.control.ClassNodeResolver.findByClassLoading(ClassNod
eResolver.java:212)
        at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(Cl
assNodeResolver.java:201)
        at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeReso
lver.java:172)
        at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolv
er.java:128)
        at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.
java:784)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:39
5)
        at org.codehaus.groovy.control.ResolveVisitor.setRedirect(ResolveVisitor.jav
a:457)
        at org.codehaus.groovy.control.ResolveVisitor.resolveNestedClass(ResolveVisi
tor.java:413)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:39
0)
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:35
6)
        at org.codehaus.groovy.control.ResolveVisitor.transformVariableExpression(Re
solveVisitor.java:1051)
        at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:
802)
        at org.codehaus.groovy.control.ResolveVisitor.transformBinaryExpression(Reso
lveVisitor.java:1151)
        at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:
808)
        at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionSta
tement(ClassCodeExpressionTransformer.java:144)
        at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatemen
t.java:42)
        at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisito
rSupport.java:88)
        at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(Class
CodeVisitorSupport.java:106)
        at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVis
itor.java:1450)
        at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:71)

        at org.codehaus.groovy.control.ResolveVisitor.transformClosureExpression(Res
olveVisitor.java:1174)
        at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:
812)
        at org.codehaus.groovy.ast.expr.Expression.transformExpressions(Expression.j
ava:51)
        at org.codehaus.groovy.ast.expr.ArgumentListExpression.transformExpression(A
rgumentListExpression.java:69)
        at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:
819)
        at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(
ResolveVisitor.java:1194)
        at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:
810)
        at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionSta
tement(ClassCodeExpressionTransformer.java:144)
        at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatemen
t.java:42)
        at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisito
rSupport.java:88)
        at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(Class
CodeVisitorSupport.java:106)
        at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVis
itor.java:1450)
        at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:71)

        at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(C
lassCodeVisitorSupport.java:110)
        at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(
ClassCodeVisitorSupport.java:121)
        at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOr
Method(ClassCodeExpressionTransformer.java:55)
        at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(Resol
veVisitor.java:254)
        at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisi
torSupport.java:132)
        at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1103)
        at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisit
orSupport.java:54)
        at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java
:1395)
        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(Compilatio
nUnit.java:976)
        ... 102 more

Total time: 8 minutes 36 seconds
Former Member
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

For example, you can:

- outline what steps you took to find answers (and why they weren't helpful)

- share screenshots of what you've seen/done

- make sure you've applied the appropriate tags

- use a more descriptive subject line

The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html

Questions on how to draw responses from members? Check out this discussion on how to improve questions. https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-a...

Accepted Solutions (0)

Answers (0)