cancel
Showing results for 
Search instead for 
Did you mean: 

Hybris 2105 - BeanCreation Exception at backofficeWarmUpTypeFacadeCaches

pratap_pandey
Explorer
0 Kudos

Hello Experts,

I am getting BeanCreation Exception for backofficeWarmUpTypeFacadeCaches while server startup on Hybris 2105. Due to this error, backoffice is not opening up and it throws 404 error. One of the possible solutions mentioned in below post suggested for cleaning up of Orphaned types but it did not worked for me.

https://answers.sap.com/questions/12768126/error-creating-bean-with-name-%27backofficewarmuptyp.html

Any other suggestions or any possible solution will be of great help.

Below is the log snippet for reference:

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'backofficeWarmUpTypeFacadeCaches' defined in ServletContext resource [/WEB-INF/backoffice-web-spring.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) ~[spring-web-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) [spring-web-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:226) [coreserver.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:199) [coreserver.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) [spring-web-5.3.7.jar:5.3.7]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitializedInternal(HybrisContextLoaderListener.java:96) [coreserver.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:91) [coreserver.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.BackofficeApplicationContextInitializer.contextInitialized(BackofficeApplicationContextInitializer.java:105) [classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) [catalina.jar:8.5.69]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) [catalina.jar:8.5.69]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:8.5.69]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429) [catalina.jar:8.5.69]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [catalina.jar:8.5.69]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at java.lang.Thread.run(Thread.java:834) [?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | Caused by: java.lang.NullPointerException

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:878) ~[guava-30.1-jre.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.google.common.collect.StandardTable.put(StandardTable.java:146) ~[guava-30.1-jre.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.google.common.collect.HashBasedTable.put(HashBasedTable.java:51) ~[guava-30.1-jre.jar:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultTypeSystemLocalizationHelper.loadTypeLocalization(DefaultTypeSystemLocalizationHelper.java:183) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultTypeSystemLocalizationHelper.findTypeLocalization(DefaultTypeSystemLocalizationHelper.java:105) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultTypeSystemLocalizationHelper.localizeType(DefaultTypeSystemLocalizationHelper.java:73) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertType(DefaultPlatformTypeFacadeStrategy.java:362) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.loadAndCache(DefaultPlatformTypeFacadeStrategy.java:229) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertAttribute(DefaultPlatformTypeFacadeStrategy.java:523) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.lambda$7(DefaultPlatformTypeFacadeStrategy.java:465) ~[classes/:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.723 | at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.724 | at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.724 | at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]

INFO | jvm 1 | main | 2022/01/14 08:56:12.724 | at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:?]

Accepted Solutions (0)

Answers (2)

Answers (2)

pratap_pandey
Explorer
0 Kudos

I followed below steps to fix the issue:

1) Clear the Orphaned types either through HAC or by ant task.

2) Run update system

3) Add missing Composed Types to fix Null Pointer Exception. Run below query

SELECT {t.code}, {l.isocode}, {t.name[any]} FROM { ComposedType AS t JOIN Language as l ON lp_t0.langpk = {l.pk} } WHERE {t.name[any]} is null or {t.name[any]}=''

Add all missing language translation with impex likeUPDATE ComposedType; code[unique = true] ; name[lang = en_US] ; DuplicateCatalogItemCodesView ; Duplicate identifiers
0 Kudos

Any Solution for this bean exception, this is happening in hybris upgradation 2211. the below url answer is not working
Error creating bean with name 'backofficeWarmUpTypeFacadeCaches' | SAP Community