Symptom
The build process fails when upgrading from version 2211.39 to 2211.41 in SAP Commerce Cloud.
Here is snippet of error logs:
|
"Error creating bean with name 'authenticationFailureEventListener' defined in class path resource [core-spring.xml]: Cannot resolve reference to bean 'userAuditLoginStrategy' while setting bean property 'userAuditLoginStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerDefaultUserAuditLoginStrategy' defined in class path resource [customecore-spring.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException: Cannot invoke 'org.springframework.context.ApplicationContext.getBean(String, java.lang.Class)' because 'this.context' is null". |
The error message indicates the issue arises when assembling custom class named customerDefaultUserAuditLoginStrategy which extends OOTB class de.hybris.platform.servicelayer.user.impl.AbstractUserAuditLoginStrategy, due to the OOTB bean 'userAuditLoginStrategy' is overridden in the custom Spring configuration file `customercore-spring.xml`.
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 2211
Product
Keywords
build failure, beancreationexception, userauditloginstrategy , 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.
SAP Knowledge Base Article - Preview