cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in SAP Commerce 2211.32 at startup during spring context initialization

Eddy_
Explorer
1,023

Hi SAP community,

currently we are upgrading to the version 2211.32 of SAP Commerce Cloud and during startup of the application we are facing following issue:

ERROR [Catalina-utility-12] [HybrisContextFactory] Error initializing global application context!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSAPOrderGenericPaymentInfoPopulator' defined in class path resource [commercefacades-spring.xml]:
Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Properties 'addressConverter', 'commerceEntryGroupUtils', 'commonI18NService', 'creditCardPaymentInfoConverter', 'deliveryModeConverter', 'entryGroupConverter', 'entryGroupService', 'modelService', 'orderCommentConverter', 'orderEntryConverter', 'priceDataFactory', 'principalConverter', 'promotionResultConverter', 'promotionsService', 'typeService', 'virtualEntryGroupStrategy' and 'zoneDeliveryModeConverter' are required for bean 'defaultSAPOrderGenericPaymentInfoPopulator'

Because of the error the server cannot start.

The message relates to following bean definition in commercefacades-spring.xml

<alias name="defaultSAPOrderGenericPaymentInfoPopulator" alias="sapOrderGenericPaymentInfoPopulator"/>
<bean id="defaultSAPOrderGenericPaymentInfoPopulator"
class="de.hybris.platform.commercefacades.order.converters.populator.OrderGenericPaymentInfoPopulator">
<constructor-arg name="genericPaymentInfoConverter" ref="sapGenericPaymentInfoConverter"/>
</bean>

Since there is no parent reference, the required properties are missing - which the error message also says.

I am wondering how this can run anywhere? 😀

Anyone else out there having the same problem?

 

Thanks and BR!
Eddy

Accepted Solutions (0)

Answers (2)

Answers (2)

andrejnjciandt
Explorer
0 Kudos

i was struggling with the same issue and opened a ticket for it, here is their answer:

andrejnjciandt_0-1741374144011.png

 

andrejnjciandt
Explorer
0 Kudos
UPDATE: Apparently this issue was generated on patch 32
andrejnjciandt
Explorer
0 Kudos

Also, you can do the following override in your facades-spring file

<alias name="defaultSAPOrderGenericPaymentInfoPopulator" alias="sapOrderGenericPaymentInfoPopulator"/>
  <bean id="defaultSAPOrderGenericPaymentInfoPopulator"
      class="de.hybris.platform.commercefacades.order.converters.populator.OrderGenericPaymentInfoPopulator" parent="baseOrderPopulator">
    <constructor-arg name="genericPaymentInfoConverter" ref="sapGenericPaymentInfoConverter"/>

  </bean>
cieslo
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yes, this is an issue. It should be fixed in the upcoming releases. Right now you can try to add the missing parent to the bean definition:

parent="baseOrderPopulator"