on 08-27-2014 3:18 AM
HI
I'm Trying to explore Admin and Validation concepts in Admin Cockpit. When i logged in to the admin cockpit and navigated to any of the type in validation mode, It showing me an error message and not showing the constraints related to selected type.
Hybris Console shows the below error
SEVERE:
java.lang.IllegalArgumentException: Initial value '[
ComposedTypeModel (8796127789138)]' not a typed object.
at de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor.createViewComponent(DefaultSimpleReferenceUIEditor.java:140)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.createSimpleRowComponent(AdvancedSearchView.java:672)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.createSearchFieldRowComponent(AdvancedSearchView.java:844)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.createGroupsRecursively(AdvancedSearchView.java:228)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.renderMainSearchFieldArea(AdvancedSearchView.java:249)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.updateSearchFields(AdvancedSearchView.java:902)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.updateSearchGroups(AdvancedSearchView.java:911)
at de.hybris.platform.cockpit.model.advancedsearch.impl.AdvancedSearchView.update(AdvancedSearchView.java:1039)
at de.hybris.platform.cockpit.components.contentbrowser.QueryCaptionBrowserComponent.update(QueryCaptionBrowserComponent.java:156)
at de.hybris.platform.cockpit.components.contentbrowser.DefaultAdvancedContentBrowser.update(DefaultAdvancedContentBrowser.java:364)
at de.hybris.platform.cockpit.session.impl.DefaultSearchBrowserModelListener.itemsChanged(DefaultSearchBrowserModelListener.java:272)
at de.hybris.platform.cockpit.session.impl.AbstractBrowserModel.fireItemsChanged(AbstractBrowserModel.java:374)
at de.hybris.platform.cockpit.session.impl.DefaultSearchBrowserModel.updateItems(DefaultSearchBrowserModel.java:108)
at de.hybris.platform.admincockpit.components.navigationarea.renderer.ConstraintsSectionRenderer.updateBrowserItems(ConstraintsSectionRenderer.java:205)
at de.hybris.platform.admincockpit.components.navigationarea.renderer.ConstraintsSectionRenderer.access$1(ConstraintsSectionRenderer.java:179)
at de.hybris.platform.admincockpit.components.navigationarea.renderer.ConstraintsSectionRenderer$1.onEvent(ConstraintsSectionRenderer.java:229)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197)
Please help me on this.
Refer to my answer: http://answers.sap.com/answers/12787048/view.html
...in this question: https://answers.sap.com/questions/12752623/in-validaion-trail-when-i-click-on-menu-validation.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I'm getting a similar exception in cmsCockpit. I want to display a collectiontype "CMSNavigationNodeList"
<collectiontype code="CMSNavigationNodeList" elementtype="CMSNavigationNode" autocreate="true" generate="true" type="list" />
(the type is defined in the cms2-items.xml).
The exception I get is bellow. You can notice that as in Uday's case, it complains about initial value of a list (collection) of a certain type:
java.lang.IllegalArgumentException: Initial value '[<CMSNavigationNode> CMSNavigationNodeModel (8796584772672)]' not a typed object.
at de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor.createViewComponent(DefaultSimpleReferenceUIEditor.java:138)
at de.hybris.platform.cockpit.model.editor.EditorHelper.renderSingleEditor(EditorHelper.java:1345)
at de.hybris.platform.cockpit.model.editor.EditorHelper.createEditor(EditorHelper.java:468)
at de.hybris.platform.cockpit.model.editor.EditorHelper.createEditor(EditorHelper.java:401)
at de.hybris.platform.cmscockpit.injectors.impl.DefaultPropertyInjector.injectProperty(DefaultPropertyInjector.java:172)
at de.hybris.platform.cmscockpit.components.contentbrowser.CMSContentEditorInjector.injectProperty(CMSContentEditorInjector.java:417)
at de.hybris.platform.cmscockpit.components.contentbrowser.CMSContentEditorInjector.injectComponent(CMSContentEditorInjector.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at bsh.Reflect.invokeMethod(Reflect.java:134)
at bsh.Reflect.invokeObjectMethod(Reflect.java:80)
at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176)
at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.Interpreter.eval(Interpreter.java:645)
at bsh.Interpreter.eval(Interpreter.java:739)
at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:119)
at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:310)
at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:797)
at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:176)
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)
I've tried to create a different collectiontype and it does the same - whenever the component containing the collectiontype is loaded in the cockpit I got the exception. The contentEditor for the my component is broken and doesn't display the data correctly although the right editor panel in cmsCockpit can handle the data without a problem.
The interesting part is that for example accelerator's footer component can display the collectiontype "CMSNavigationNodeList" without any problems. Anyone has an idea what may be wrong - why cockpits do not like collectiontype?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
were you able to solve the problem with the ComposedType in the admin cockpit? I'm facing the same issue. Any help will be appreciated. Thanks!Omar
PS: Initializing the system is NOT an option.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please, go to your hmc and in system-types search for the type with that pk. Another way os using he pk analyzer shipped within the hac. We need to know what type is causing this problem.
Is this happening OOB? What version are you using? What type did you open?
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have you initialized/updated the system after adding admincockpit and/or any extensions? I was able to reproduce the same error when added admincockpit to an initiazlied platform.
After re-initialization everything works and is 100% stable.
Cheers, Wojtek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
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.