SAP Knowledge Base Article - Preview

3757754 - Error: 'java.lang.NullPointerException: date must not be null' during migrate data deployment

Symptom

Deployment failed with the following error:

java.lang.NullPointerException: date must not be null at java.base/java.util.Objects.requireNonNull(Objects.java:235) 
at java.base/java.util.Calendar.setTime(Calendar.java:1792) 
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:978) 
at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:971) 
at java.base/java.text.DateFormat.format(DateFormat.java:378) 
at de.hybris.ccv2.tools.upgrade.UpgradeTypesystemTool.createTypeSystem(UpgradeTypesystemTool.java:664) 
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) 
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) 
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) 
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) 
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) 
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) 
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) 
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) 
at de.hybris.ccv2.tools.upgrade.UpgradeTypesystemTool.initializeTypesystemRecords(UpgradeTypesystemTool.java:651) 
at de.hybris.ccv2.tools.upgrade.UpgradeTypesystemTool.loadRecords(UpgradeTypesystemTool.java:620) 
at de.hybris.ccv2.tools.upgrade.UpgradeTypesystemTool.runPrintTypesystems(UpgradeTypesystemTool.java:257) 
at de.hybris.ccv2.tools.upgrade.UpgradeTypesystemTool.run(UpgradeTypesystemTool.java:313) 
at de.hybris.ccv2.tools.upgrade.UpgradeTypesystemTool.main(UpgradeTypesystemTool.java:205)

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud all versions

Keywords

migrate data, date must not be null, ccv2_typesystem_migrations, attributedescriptors , KBA , CEC-SCC-CLA-DEP , Deployments , 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.