on ‎2018 Apr 25 2:12 AM
Everytime I start up my local system the Backoffice gets messed up. First I can't see any of the default graphs on the dashboard, Here are the corresponding errors in the console:
WARN [hybrisHTTP20] [GenericChartController] Could not find chart handler with bean id: linearCollectorChartHandler
Then as I jump into the promotion rules panel I get the following errors:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.hybris.cockpitng.editor.defaultenum.DefaultEnumEditor': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.hybris.cockpitng.editor.defaultenum.EnumValueResolver' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:321) ~[spring-context-4.3.14.RELEASE.jar:4.3.14.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBean(AbstractAutowireCapableBeanFactory.java:303) ~[spring-beans-4.3.14.RELEASE.jar:4.3.14.RELEASE]
and then finally when I try and edit a rule I get :
ERROR [hybrisHTTP38] [UiEngineImpl]
java.lang.NullPointerException: null
at de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorViewModel.convertRuleParametersToParameters(AbstractEditorViewModel.java:187) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel.createTreeNodeFromCondition(ConditionsEditorViewModel.java:377) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel.convertConditionToTreeNode(ConditionsEditorViewModel.java:358) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel.convertConditionsToTree(ConditionsEditorViewModel.java:342) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel.loadConditions(ConditionsEditorViewModel.java:320) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.conditionseditor.ConditionsEditorViewModel.loadData(ConditionsEditorViewModel.java:130) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorViewModel.init(AbstractEditorViewModel.java:151) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:149) ~[zkbind-8.0.2.1.jar:8.0.2.1]
at org.zkoss.bind.impl.AbstractAnnotatedMethodInvoker.invokeMethod(AbstractAnnotatedMethodInvoker.java:87) ~[zkbind-8.0.2.1.jar:8.0.2.1]
at org.zkoss.bind.impl.BinderImpl.init(BinderImpl.java:322) ~[zkbind-8.0.2.1.jar:8.0.2.1]
at org.zkoss.bind.AnnotateBinder.init(AnnotateBinder.java:58) ~[zkbind-8.0.2.1.jar:8.0.2.1]
at org.zkoss.bind.BindComposer.doBeforeComposeChildren(BindComposer.java:164) ~[zkbind-8.0.2.1.jar:8.0.2.1]
at org.zkoss.zk.ui.impl.UiEngineImpl.doBeforeComposeChildren(UiEngineImpl.java:997) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:937) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:895) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:777) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:841) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:797) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:740) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1150) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:346) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:307) ~[zk-8.0.2.1.jar:3.6.4]
at de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorSectionRenderer.render(AbstractEditorSectionRenderer.java:94) ~[?:?]
at de.hybris.platform.rulebuilderbackoffice.editors.AbstractEditorSectionRenderer.render(AbstractEditorSectionRenderer.java:1) ~[?:?]
at com.hybris.cockpitng.widgets.common.ProxyRenderer.render(ProxyRenderer.java:75) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer.render(DefaultEditorAreaSectionRenderer.java:116) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer.render(DefaultEditorAreaSectionRenderer.java:69) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.common.ProxyRenderer.render(ProxyRenderer.java:75) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaTabRenderer.render(DefaultEditorAreaTabRenderer.java:83) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaTabRenderer.render(DefaultEditorAreaTabRenderer.java:30) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.common.ProxyRenderer.render(ProxyRenderer.java:75) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaRenderer.lambda$render$0(DefaultEditorAreaRenderer.java:130) ~[backoffice-widgets-6.3.0.13-RC2.jar:?]
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3161) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3131) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3073) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1853) ~[zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1625) [zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1328) [zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:606) [zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482) [zk-8.0.2.1.jar:3.6.4]
at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:490) [zk-8.0.2.1.jar:3.6.4]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) [servlet-api.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [catalina.jar:7.0.79]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.79]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat7-websocket.jar:7.0.79]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.79]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.79]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:208) [spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) [spring-security-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
This renders the edit screen unusable. But all of this goes away once I do a URS all of this goes away. Any Idea why these beans are missing?
Thanks Ryan
Request clarification before answering.
In case of updated system all should be fine. I suggest contacting our support since this is not the desired behaviour and I don't remember it to happen in situation other than usage of non-initialised system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Could you elaborate a little bit more because I don't really get it. So when you have a non-initialized system you redirect to which maintenance page? When you are in the situation where you upgraded the system from an earlier Hybris version, it isn't possible to initialize it, because you would lose all your data. So how could you solve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this used to happen when it was possible to enter backoffice before initialization. After initialization the second attempt to log in resulted in broken Spring context.
Currently we do redirect the user to the maintenance page on non-initialized system and the issue should not occur anymore. In the past a restart was needed to allow the application to build the spring context appropriately.
Cheers, Wojtek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
, you should try to remove the temp folder {INSTALLATION_FOLDER}/hybris/temp.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.