on 04-10-2015 4:51 PM
May 21, 2015 2:07:39 PM org.zkoss.zk.ui.impl.HybrisUiEngineImpl handleError:1618
SEVERE: >>java.lang.IllegalArgumentException: 'name' must not be null
>> at org.springframework.util.Assert.notNull(Assert.java:112)
>> at org.springframework.beans.factory.BeanFactoryUtils.transformedBeanName(BeanFactoryUtils.java:72)
>> at org.springframework.beans.factory.support.AbstractBeanFactory.transformedBeanName(AbstractBeanFactory.java:1024)
>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:234)
>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
>> at de.hybris.liveeditaddon.cockpit.service.editor.UiExperienceLevelEnumEditor.createViewComponent(UiExperienceLevelEnumEditor.java:41)
>> at de.hybris.platform.cmscockpit.session.impl.LiveEditContentBrowser$DefaultLiveEditCaptionComponent.createEditor(LiveEditContentBrowser.java:456)
>> at de.hybris.platform.cmscockpit.session.impl.LiveEditContentBrowser$DefaultLiveEditCaptionComponent.renderEditors(LiveEditContentBrowser.java:542)
>> at de.hybris.platform.cmscockpit.session.impl.LiveEditContentBrowser$DefaultLiveEditCaptionComponent.createAdvancedArea(LiveEditContentBrowser.java:558)
>> at de.hybris.platform.cockpit.components.contentbrowser.CaptionBrowserComponent.initialize(CaptionBrowserComponent.java:74)
>> at de.hybris.platform.cockpit.components.contentbrowser.DefaultAdvancedContentBrowser.initialize(DefaultAdvancedContentBrowser.java:231)
>> at de.hybris.platform.cockpit.components.contentbrowser.AbstractContentBrowser.setModel(AbstractContentBrowser.java:154)
>> at de.hybris.platform.cockpit.components.contentbrowser.DefaultAdvancedContentBrowser.setModel(DefaultAdvancedContentBrowser.java:81)
>> at de.hybris.platform.cmscockpit.session.impl.LiveEditContentBrowser.setModel(LiveEditContentBrowser.java:146)
>> at de.hybris.platform.cockpit.session.impl.AbstractBrowserArea.createBrowserView(AbstractBrowserArea.java:981)
>> at de.hybris.platform.cockpit.session.impl.AbstractBrowserArea.update(AbstractBrowserArea.java:559)
>> at de.hybris.platform.cockpit.session.impl.AbstractBrowserArea.initBrowsers(AbstractBrowserArea.java:421)
>> at de.hybris.platform.cockpit.components.contentbrowser.CenterAreaContainer$1.onEvent(CenterAreaContainer.java:44)
>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141)
>> at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519)
>> at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you run init ? when you enabled liveediaddon ? because it seams that some data were not populated from impex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additionally you will have to fix the previewJS.tag and previewCSS.tag files for b2b accelerator. Those files are missing logic for loading js and css files at liveedit context. Best would be to compare their version with b2c and add missing logic. In my team we made liveedit working with b2b so it is possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Dariusz. I just compared the previewCSS.tag and previewJS.tag files in both B2C and B2B accelerator templates for hybris v5.3. They are identical. Since I'm not seeing any differences and I do see LiveEdit working in the Powertools store, I'm wondering what a good area to look at is for a custom B2B accelerator based implementation where Live Edit does not function and there is no onUrlChangeEvent happening? Thanks.
Yes I agree for v5.3 they might look the same and liveeditaddon is enabled since version 5.5 so in 5.3 it will not work. If you will compare 5.5 version of this files you will notice that b2b version is missing: addOnLiveEditJavaScriptPaths logic and that b2b is using: parent.notifyIframeAboutUrlChanage(window.location.href, currentPagePk, currentUserId, currentJaloSessionId); but b2c is using: parent.postMessage({eventName:'notifyIframeAboutUrlChange', data: [window.location.href, currentPagePk, currentUserId, currentJaloSessionId]},'*');
Hello Dariusz,
I see your point for v5.5. The B2B versions of previewJS.tag and previewCSS.tag are missing logic for loading js and css files at liveedit context.
For v5.3, are you saying that Live Edit does not work? The OOTB Powertools store seems to have Live Edit functionality working; however a custom B2B site (generated through modulegen) does not. I'm wondering if v5.3 is correctable or not?
Thanks, Greg
I've made the changes to both PreviewCSS.tag and PreviewJS.tag as Dariusz advised. I've also backed-out Spring changes in a custom cockpit in favor of allowing Live Edit to function from the liveeditaddon extension exclusively. I'm seeing a severe error when I click on the Live Edit link in the CMS cockpit. I will show the error in another comment below. I would appreciate further ideas on getting Live Edit working.
It is a bug in hybris 5.5. Its not coming because CmsUrlChangeEvent is not get fired.
if (event instanceof CmsUrlChangeEvent) { //exit when comes from another perspective! if (!event.getSource().equals(getPerspective())) { return; } final AbstractContentBrowser abstractContentBrowser = getCorrespondingContentBrowser(getFocusedBrowser()); if (abstractContentBrowser != null) { final DefaultLiveEditContentBrowser liveEditContentBrowser = (DefaultLiveEditContentBrowser) abstractContentBrowser; liveEditContentBrowser.updateAfterChangedUrl((CmsUrlChangeEvent) event); } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
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.