SAP Knowledge Base Article - Preview

3380903 - BeanCreationException after SAP Commerce upgrade

Symptom

After upgrading your SAP Commerce version to 2205.15, 2205.16, 2211.10, 2211.11(preview release), and 2211.12, the deployment could fail and your application cannot start due to the following error (depending on your bean structure, the error message might be slightly different):

   "level":"ERROR",
   "loggerName":"org.springframework.web.context.ContextLoader",
   "message":"Context initialization failed",
   "thrown":{
      "commonElementCount":0,
      "localizedMessage":"Error creating bean with name 'BeanList': Cannot resolve reference to bean 'problematicBean1' while setting bean property 'sourceList' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'problematicBean1' defined in ServletContext resource [ResourcePath1]: Cannot resolve reference to bean 'problematicBean2' while setting bean property 'problematicBean2'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'problematicBean1' defined in class path resource [ResourcePath2]: Cannot resolve reference to bean 'problematicStrategiesList' while setting bean property 'strategies'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultProblematicStrategiesList': Cannot create inner bean 'bean' of type [StrategyLoader] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean' defined in class path resource [ResourcePath2]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'jdk.proxy8.$Proxy336 implementing java.util.List' to required type 'java.util.List' for property 'strategies'; nested exception is java.lang.IllegalStateException: Singleton instance not initialized yet",
      "message":"Error creating bean with name 'BeanList': Cannot resolve reference to bean 'problematicBean1' while setting bean property 'sourceList' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'problematicBean1' defined in ServletContext resource [ResourcePath1]: Cannot resolve reference to bean 'problematicBean2' while setting bean property 'problematicBean2'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'problematicBean1' defined in class path resource [ResourcePath2]: Cannot resolve reference to bean 'problematicStrategiesList' while setting bean property 'strategies'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultProblematicStrategiesList': Cannot create inner bean 'bean' of type [StrategyLoader] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean' defined in class path resource [ResourcePath2]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'jdk.proxy8.$Proxy336 implementing java.util.List' to required type 'java.util.List' for property 'strategies'; nested exception is java.lang.IllegalStateException: Singleton instance not initialized yet",
      "name":"org.springframework.beans.factory.BeanCreationException",

...

                        "extendedStackTrace":[
                           {
                              "class":"org.springframework.util.Assert",
                              "method":"state",
                              "file":"Assert.java",
                              "line":76,
                              "exact":false,
                              "location":"spring-core-5.3.29.jar",
                              "version":"5.3.29"
                           },
                           {
                              "class":"org.springframework.beans.factory.config.AbstractFactoryBean",
                              "method":"getSingletonInstance",
                              "file":"AbstractFactoryBean.java",
                              "line":188,
                              "exact":false,
                              "location":"spring-beans-5.3.29.jar",
                              "version":"5.3.29"
                           },
...

                           {
                              "class":"org.springframework.util.ObjectUtils",
                              "method":"nullSafeConciseToString",
                              "file":"ObjectUtils.java",
                              "line":981,
                              "exact":false,
                              "location":"spring-core-5.3.29.jar",
                              "version":"5.3.29"
                           },

...


Read more...

Environment

  • SAP Commerce
  • SAP Commerce Cloud

Product

SAP Commerce 2205 ; SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211

Keywords

KBA , CEC-SCC-PLA-PL , Platform , Known Error

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.