SAP Knowledge Base Article - Preview

3244932 - SAP Commerce Cloud: build failing with JsonSchemaValidationException: JSON is not valid!

Symptom

New builds in Cloud Portal are failing, and the last lines in the build logs show the following:

INFO d.h.c.Builder [main] Task finished: readCoreCommerceManifest
INFO d.h.c.Builder [main] Started task: readJsAppsManifest
Exception in thread "main" de.hybris.ccv2.json.JsonSchemaValidationException: JSON is not valid! com.github.fge.jsonschema.core.report.ListProcessingReport: failure
--- BEGIN MESSAGES ---
error: instance value ("12") not found in enum (possible values: ["14","16"])
    level: "error"
    schema: {"loadingURI":"#","pointer":"/properties/nodeVersion"}
    instance: {"pointer":"/nodeVersion"}
    domain: "validation"
    keyword: "enum"
    value: "12"
    enum: ["14","16"]
---  END MESSAGES  ---

 at de.hybris.ccv2.json.JsonSchemaValidator.validate(JsonSchemaValidator.java:53)
 at de.hybris.ccv2.json.JsonReader.read(JsonReader.java:50)
 at de.hybris.ccv2.task.AbstractReadManifestTask.process(AbstractReadManifestTask.java:49)
 at de.hybris.ccv2.Builder.runTask(Builder.java:255)
 at de.hybris.ccv2.Builder.lambda$runTasks$5(Builder.java:222)
 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:217)
 at de.hybris.ccv2.Builder.run(Builder.java:99)
 at de.hybris.ccv2.Builder.main(Builder.java:55)


Read more...

Environment

SAP Commerce Cloud in the Public Cloud

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 , CEC-SPA , SAP Commerce Cloud Spartacus , 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.