SAP Knowledge Base Article - Preview

3242972 - SAP Commerce Cloud: build failing with antmacros.xml:680: Java returned: 1

Symptom

You try to create a build, but it fails and the last lines of the build logs are similar to:

INFO d.h.c.e.Executor [Thread-30] stdout:      [java] shutting down hybris registry..
INFO d.h.c.e.Executor [Thread-31] stderr: 
INFO d.h.c.e.Executor [Thread-31] stderr: BUILD FAILED
INFO d.h.c.e.Executor [Thread-31] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/build.xml:208: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-31] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/testing.xml:244: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-31] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/testing.xml:295: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-31] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/antmacros.xml:680: Java returned: 1
INFO d.h.c.e.Executor [Thread-31] stderr: 
INFO d.h.c.e.Executor [Thread-31] stderr: Total time: 48 seconds
Exception in thread "main" de.hybris.ccv2.BuilderException: Executing of external command failed with exit code: 1
    at de.hybris.ccv2.executor.Executor.executeOperation(Executor.java:86)
    at de.hybris.ccv2.executor.Executor.executeWithRetry(Executor.java:113)
    at de.hybris.ccv2.executor.Executor.execute(Executor.java:59)
    at de.hybris.ccv2.executor.JavaDependentExecutor.execute(JavaDependentExecutor.java:62)
    at de.hybris.ccv2.corecommerce.BuilderPlatformAntExecutor.execute(BuilderPlatformAntExecutor.java:103)
    at de.hybris.ccv2.corecommerce.task.TestCoreCommerceTask.process(TestCoreCommerceTask.java:99)
    at de.hybris.ccv2.Builder.runTask(Builder.java:256)
    at de.hybris.ccv2.Builder.lambda$runTasks$5(Builder.java:223)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
    at de.hybris.ccv2.Builder.runTasks(Builder.java:218)
    at de.hybris.ccv2.Builder.run(Builder.java:100)
    at de.hybris.ccv2.Builder.main(Builder.java:56)


Read more...

Environment

SAP Commerce Cloud in the Public Cloud
Affected patches:

  • 1905.43
  • 2005.27
  • 2011.22
  • 2105.12
  • 2205.1

Product

SAP Commerce Cloud 1905 ; SAP Commerce Cloud 2005 ; SAP Commerce Cloud 2011 ; SAP Commerce Cloud 2105 ; SAP Commerce Cloud 2205

Keywords

KBA , CEC-HCS-CCAZ-BUILD , Environment builds , Known Error

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.