Symptom
The build fails with logs similar to:
INFO d.h.c.e.Executor [Thread-14] stdout: [yjavac] /opt/workspace/build/customer-project/core-customize/hybris/bin/custom/path/to/custom/class/CustomClass.java:8: error: unmappable character (0x93) for encoding UTF8
INFO d.h.c.e.Executor [Thread-14] stdout: [yjavac] * �
INFO d.h.c.e.Executor [Thread-14] stdout: [yjavac] ^
INFO d.h.c.e.Executor [Thread-14] stdout: [yjavac] 2 errors
INFO d.h.c.e.Executor [Thread-15] stderr:
INFO d.h.c.e.Executor [Thread-15] stderr: BUILD FAILED
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/build.xml:13: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/compiling.xml:95: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/compiling.xml:153: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/util.xml:13: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/compiling.xml:160: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/compiling.xml:333: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/compiling.xml:538: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/compiling.xml:589: The following error occurred while executing this line:
INFO d.h.c.e.Executor [Thread-15] stderr: /opt/workspace/build/commerce-suite/hybris/bin/platform/resources/ant/util.xml:94: Compile failed; see the compiler error output for details.
INFO d.h.c.e.Executor [Thread-15] stderr:
INFO d.h.c.e.Executor [Thread-15] stderr: Total time: 5 minutes 47 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.BuildCoreCommerceTask.process(BuildCoreCommerceTask.java:124)
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
- SAP Commerce Cloud
Product
Keywords
commerce, ISO-8859-1, file.encoding,unmappable character,Compile failed, build.encoding=UTF8 , KBA , CEC-SCC-CLA-BUI , Build Process , Problem
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.
SAP Knowledge Base Article - Preview