SAP Knowledge Base Article - Preview

3836900 - Deployment with JDK21 build fails due to Spring4Shell override - SAP Commerce Cloud

Symptom

  • Deployment fails during startup of tomcat services (api, accstorefront, backoffice, backgroundprocessing) when executed without data migration or during platform-update pod startup when proceeding with data migration
  • Various spring context initialization failures may get logged:

e.g.

"WARN","loggerName":"de.hybris.platform.core.AbstractTenant","message":"error notifying tenant listener : Cannot invoke \"org.springframework.context.ApplicationContext.getBean(String)\" because the return value of \"de.hybris.platform.core.Registry.getCoreApplicationContext()\" is null","thrown":{"commonElementCount":0,"localizedMessage":"Cannot invoke \"org.springframework.context.ApplicationContext.getBean(String)\" because the return value of \"de.hybris.platform.core.Registry.getCoreApplicationContext()\" is null","message":"Cannot invoke \"org.springframework.context.ApplicationContext.getBean(String)\" because the return value of \"de.hybris.platform.core.Registry.getCoreApplicationContext()\" is null","name":"java.lang.NullPointerException" 

/OR/

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '.....' defined in class path resource [...-spring.xml]: Invalid property '...' of bean class [com.fasterxml.jackson.databind.ObjectMapper]: Bean property '....' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 

/OR/

"ERROR","loggerName":"de.hybris.platform.core.AbstractTenant","message":"Shutting down hybris platform since the system cannot be used without working Spring context...","thrown":{"commonElementCount":...,"localizedMessage":"Error creating Spring application context.","message":"Error creating Spring application context.","name":"de.hybris.platform.core.UninstantiableCoreApplicationContextException","cause":{"commonElementCount":...,"localizedMessage":"Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'defaultInterceptorRegistry' defined in class path resource [...-spring.xml]: Unsatisfied dependency expressed through bean property '...': Error creating bean with name '...' defined in class path resource [...-spring.xml]: Cannot resolve reference to bean '...' while setting bean property '...'","message":"Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name '...' defined in class path resource [...-spring.xml]: Unsatisfied dependency expressed through bean property '...': Error creating bean with name '...' defined in class path resource [...-spring.xml]: Cannot resolve reference to bean '...' while setting bean property '...'","name":"org.springframework.beans.FatalBeanException" 

  • Following errors, Commerce services shut down and the deployment is marked as failed.


Read more...

Environment

  • SAP Commerce Cloud
  • Deployments

Product

SAP Commerce Cloud all versions

Keywords

ccv2 deployment failure, offline type-system update, NotWritablePropertyException, maxLocksPerMap, sapProductConfigDefaultConfigurationService, ApplicationContext.getBean is null, Registry.getCoreApplicationContext null, Spring context failure, build failed, update failed, jdk21, 2211, spring4shell override, ccv2.file.override.spring4shell-patch, hybrislicence.jar , 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.