SAP Knowledge Base Article - Preview

2036209 - BeanCreationException: Error creating bean with name ‘beanName’ defined in class path resource []: Cannot resolve reference to bean ‘beanName’ while setting bean property "beanName’

Symptom

When we attempt to inject two beans into one another simultaneously, i.e. inject BeanA into BeanB and BeanB into BeanA, this will usually result in a circular dependency error like

org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘beanName’ defined in class path resource []:
Cannot resolve reference to bean ‘beanName’ while setting bean property ‘beanName’;
...


Read more...

Environment

  • cms2
  • basecommerce

Product

SAP hybris Commerce Suite 5.2 ; SAP hybris Commerce Suite 5.3 ; hybris Commerce Suite 4.4 ; hybris Commerce Suite 4.5 ; hybris Commerce Suite 4.6 ; hybris Commerce Suite 4.7 ; hybris Commerce Suite 4.8 ; hybris Commerce Suite 5.0 ; hybris Commerce Suite 5.1

Keywords

KBA , CEC-SCC-COM-BC-BCOM , Base Commerce , Bug Filed

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.