SAP Knowledge Base Article - Preview

3840794 - Cannot invoke 'org.springframework.context.ApplicationContext.getBean(String, java.lang.Class)' WARN logs during Spring Application Context initialization - SAP Commerce Cloud

Symptom

  • During the deployment, multiple WARN logs appear during Spring Application Context initialization and tenant startup.
  • Custom or OOTB extensions executing configuration changes during bean initialization before the core Application Context is available.
  • WARN example:
    "error while processing auditable action property added ... by handler"
  • Exception example:
    "Cannot invoke 'org.springframework.context.ApplicationContext.getBean(String, java.lang.Class)' because the return value of 'de.hybris.platform.core.Registry.getCoreApplicationContext()' is null"


Read more...

Environment

  • SAP Commerce Cloud

Product

SAP Commerce Cloud 2211

Keywords

2211-jdk21.20, startup warnings, Spring Application Context, Registry.getCoreApplicationContext null, ApplicationContext.getBean, WARN log noise, tenant startup, platform upgrade, initialization timing , 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.