创建名称为" backofficeWarmUpTypeFacadeCaches"的bean时出错

2020-08-24 09:10发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


专家您好,

服务器启动时出现以下错误,一旦服务器启动并运行,我将无法访问Backoffice。 使用的版本是Hybris 6.3。 连接到我的本地计算机时会发生这种情况。

下面是堆栈跟踪:

  2018-04-20 09:11:52,401 loglevel = WARN,remoteaddr =,classname = TenantIgnoreXmlWebApplicationContext,msg ="在上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanCreationException: 创建在ServletContext资源[/WEB-INF/backoffice-web-spring.xml]中定义的名称为'backofficeWarmUpTypeFacadeCaches'的bean时出错:调用init方法失败;嵌套异常为java.lang.NullPointerException"
  2018-04-20 09:11:52,401 loglevel = WARN,remoteaddr =,classname = TenantIgnoreXmlWebApplicationContext,msg ="在上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建名称为'的bean时出错 在ServletContext资源[/WEB-INF/backoffice-web-spring.xml]中定义的backofficeWarmUpTypeFacadeCaches:调用init方法失败;嵌套的异常是java.lang.NullPointerException"
  2018-04-20 09:11:52,413 loglevel = ERROR,remoteaddr =,classname = ContextLoader,msg ="上下文初始化失败"
  org.springframework.beans.factory.BeanCreationException:在ServletContext资源[/WEB-INF/backoffice-web-spring.xml]中定义的名称为'backofficeWarmUpTypeFacadeCaches'的bean创建时出错:调用init方法失败; 嵌套的异常是java.lang.NullPointerException
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)〜[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)〜[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)〜[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)上[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:167)[coreserver.jar :?]
      在de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:143)[coreserver.jar :?]
      在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)上[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:79)[coreserver.jar :?]
      在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)[catalina.jar:7.0.59]
      在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)[catalina.jar:7.0.59]
      在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.59]
      在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1575)[catalina.jar:7.0.59]
      在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1565)[catalina.jar:7.0.59]
      在java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_162]
      在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[?:1.8.0_162]
      在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)[?:1.8.0_162]
      在java.lang.Thread.run(Thread.java:748)[?:1.8.0_162]
  造成原因:java.lang.NullPointerException
      在de.hybris.platform.servicelayer.internal.i18n.impl.DefaultLocalizationService.getSupportedLocales(DefaultLocalizationService.java:268)〜[coreserver.jar :?]
      在de.hybris.platform.servicelayer.internal.i18n.impl.DefaultLocalizationService.getSupportedDataLocales(DefaultLocalizationService.java:251)〜[coreserver.jar :?]
      在de.hybris.platform.servicelayer.i18n.impl.DefaultI18NService.getSupportedLocales(DefaultI18NService.java:205)〜[coreserver.jar :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertType(DefaultPlatformTypeFacadeStrategy.java:361)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.loadAndCache(DefaultPlatformTypeFacadeStrategy.java:220)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertAttribute(DefaultPlatformTypeFacadeStrategy.java:410)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertType(DefaultPlatformTypeFacadeStrategy.java:347)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.loadAndCache(DefaultPlatformTypeFacadeStrategy.java:220)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.load(DefaultPlatformTypeFacadeStrategy.java:161)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.cockpitng.dataaccess.facades.type.impl.DefaultTypeFacade.load(DefaultTypeFacade.java:45)〜[cockpit-data-integration-6.3.0.8-RC1.jar :?]
      在com.hybris.cockpitng.dataaccess.facades.type.impl.DefaultTypeFacade.load(DefaultTypeFacade.java:52)〜[cockpit-data-integration-6.3.0.8-RC1.jar :?]
      在com.hybris.backoffice.config.WarmUpTypeFacadeCaches.cacheTypesAndLoadStrategies(WarmUpTypeFacadeCaches.java:77)〜[WarmUpTypeFacadeCaches.class :?]
      在com.hybris.backoffice.config.WarmUpTypeFacadeCaches.warmUpCaches(WarmUpTypeFacadeCaches.java:56)〜[WarmUpTypeFacadeCaches.class :?]
      在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜[?:1.8.0_162]
      在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[?:1.8.0_162]
      在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[?:1.8.0_162]
      在java.lang.reflect.Method.invoke(Method.java:498)〜[?:1.8.0_162]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1711)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1650)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      ...另外24个


  

提前谢谢!

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


专家您好,

服务器启动时出现以下错误,一旦服务器启动并运行,我将无法访问Backoffice。 使用的版本是Hybris 6.3。 连接到我的本地计算机时会发生这种情况。

下面是堆栈跟踪:

  2018-04-20 09:11:52,401 loglevel = WARN,remoteaddr =,classname = TenantIgnoreXmlWebApplicationContext,msg ="在上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanCreationException: 创建在ServletContext资源[/WEB-INF/backoffice-web-spring.xml]中定义的名称为'backofficeWarmUpTypeFacadeCaches'的bean时出错:调用init方法失败;嵌套异常为java.lang.NullPointerException"
  2018-04-20 09:11:52,401 loglevel = WARN,remoteaddr =,classname = TenantIgnoreXmlWebApplicationContext,msg ="在上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建名称为'的bean时出错 在ServletContext资源[/WEB-INF/backoffice-web-spring.xml]中定义的backofficeWarmUpTypeFacadeCaches:调用init方法失败;嵌套的异常是java.lang.NullPointerException"
  2018-04-20 09:11:52,413 loglevel = ERROR,remoteaddr =,classname = ContextLoader,msg ="上下文初始化失败"
  org.springframework.beans.factory.BeanCreationException:在ServletContext资源[/WEB-INF/backoffice-web-spring.xml]中定义的名称为'backofficeWarmUpTypeFacadeCaches'的bean创建时出错:调用init方法失败; 嵌套的异常是java.lang.NullPointerException
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)〜[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)〜[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)〜[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)上[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:167)[coreserver.jar :?]
      在de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:143)[coreserver.jar :?]
      在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)上[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:79)[coreserver.jar :?]
      在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)[catalina.jar:7.0.59]
      在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)[catalina.jar:7.0.59]
      在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.59]
      在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1575)[catalina.jar:7.0.59]
      在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1565)[catalina.jar:7.0.59]
      在java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_162]
      在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[?:1.8.0_162]
      在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)[?:1.8.0_162]
      在java.lang.Thread.run(Thread.java:748)[?:1.8.0_162]
  造成原因:java.lang.NullPointerException
      在de.hybris.platform.servicelayer.internal.i18n.impl.DefaultLocalizationService.getSupportedLocales(DefaultLocalizationService.java:268)〜[coreserver.jar :?]
      在de.hybris.platform.servicelayer.internal.i18n.impl.DefaultLocalizationService.getSupportedDataLocales(DefaultLocalizationService.java:251)〜[coreserver.jar :?]
      在de.hybris.platform.servicelayer.i18n.impl.DefaultI18NService.getSupportedLocales(DefaultI18NService.java:205)〜[coreserver.jar :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertType(DefaultPlatformTypeFacadeStrategy.java:361)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.loadAndCache(DefaultPlatformTypeFacadeStrategy.java:220)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertAttribute(DefaultPlatformTypeFacadeStrategy.java:410)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.convertType(DefaultPlatformTypeFacadeStrategy.java:347)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.loadAndCache(DefaultPlatformTypeFacadeStrategy.java:220)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy.load(DefaultPlatformTypeFacadeStrategy.java:161)〜[DefaultPlatformTypeFacadeStrategy.class :?]
      在com.hybris.cockpitng.dataaccess.facades.type.impl.DefaultTypeFacade.load(DefaultTypeFacade.java:45)〜[cockpit-data-integration-6.3.0.8-RC1.jar :?]
      在com.hybris.cockpitng.dataaccess.facades.type.impl.DefaultTypeFacade.load(DefaultTypeFacade.java:52)〜[cockpit-data-integration-6.3.0.8-RC1.jar :?]
      在com.hybris.backoffice.config.WarmUpTypeFacadeCaches.cacheTypesAndLoadStrategies(WarmUpTypeFacadeCaches.java:77)〜[WarmUpTypeFacadeCaches.class :?]
      在com.hybris.backoffice.config.WarmUpTypeFacadeCaches.warmUpCaches(WarmUpTypeFacadeCaches.java:56)〜[WarmUpTypeFacadeCaches.class :?]
      在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜[?:1.8.0_162]
      在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[?:1.8.0_162]
      在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[?:1.8.0_162]
      在java.lang.reflect.Method.invoke(Method.java:498)〜[?:1.8.0_162]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1711)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1650)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579)〜[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
      ...另外24个


  

提前谢谢!

付费偷看设置
发送
4条回答
shere_lin
1楼-- · 2020-08-24 10:07

你好,

bean" backofficeWarmUpTypeFacadeCaches"负责为后台加载和缓存类型系统,因此,如果类型系统中存在任何类型的不一致,也可能会导致问题。

您可以检查是否有任何孤立类型,在HAC中转到维护->清理-> TypeSystem,然后单击"清除所有孤立类型"。

关于帕维尔

ZJXianG
2楼-- · 2020-08-24 10:02

你好帕维尔

感谢您的回复。 我确实尝试清理了孤立的类型,但没有帮助。 您能想到可能导致这种情况的任何其他情况吗? 作为一种解决方法,我通过设置backoffice.fill.typefacade.cache.on.startup = false来关闭该标志。

SKY徐
3楼-- · 2020-08-24 10:10

嗨! 您如何解决此问题? 我在Hybris 6.7版本上有相同的问题

悠然的二货
4楼-- · 2020-08-24 10:09

有人可以解决此问题吗? 我们已从6.5.0版本迁移到6.5.24补丁版本。

一周热门 更多>