SAP Knowledge Base Article - Preview

3688140 - Error: "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?" during the deployment in the migration of JDK 21/Spring6.2 - SAP Commerce Cloud

Symptom

An error occurs during deployment with a successful build release that is upgraded to JDK 21/Spring 6.2 in the Commerce Cloud environment.

The full error message can be found in "platform-update-****" pod:

"Context Hybris Global Context Factory couldn't be created correctly due to, 
Error creating bean with name '*****' defined in class path resource [***-spring.xml]: Invalid property '*****' of bean class [**.*****]:
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?"

It fails the whole deployment.

This error only happens in some environments, and cannot be reproducible in OOTB 2211-jdk21.* patches.


Read more...

Environment

Commerce Cloud With JDK21/Spring6.2

Product

SAP Commerce Cloud all versions

Keywords

stage deployment error, bean property issue, spring4shell vulnerability, CachedIntrospectionResults, invalid setter method , KBA , CEC-SCC-PLA-PL , Platform , 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.