SAP Knowledge Base Article - Preview

2674723 - IllegalArgumentException caused by empty "contentSlots" collection of a "ContentPage" item

Symptom

 While opening the CMSLinkComponent and CMSParagraphComponent in the CMSCOCKPIT at homepage ->Footer-> FooterNavigationComponent we are getting the below error:

java.lang.IllegalArgumentException: Value is instanceof Collection but cannot be empty collection for key: contentSlots
        at de.hybris.platform.servicelayer.search.FlexibleSearchQuery.addQueryParameters(FlexibleSearchQuery.java:140) ~[coreserver.jar:?]
        at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.search(DefaultFlexibleSearchService.java:252) ~[coreserver.jar:?]
        at de.hybris.platform.servicelayer.internal.dao.AbstractItemDao.search(AbstractItemDao.java:68) ~[coreserver.jar:?]
        at de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSPageDao.findPagesByContentSlotsAndPageStatuses(DefaultCMSPageDao.java:601) ~[cms2server.jar:?]
        at de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSPageDao.findPagesByContentSlots(DefaultCMSPageDao.java:573) ~[cms2server.jar:?]
        at de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService.getPagesForComponent(DefaultCMSPageService.java:685) ~[cms2server.jar:?]
        at de.hybris.platform.cmscockpit.services.security.impl.CMSCockpitUIAccessRightService.isObjectWritable(CMSCockpitUIAccessRightService.java:89) ~[cmscockpitserver.jar:?]
        at de.hybris.platform.cmscockpit.services.security.impl.CMSCockpitUIAccessRightService.isWritable(CMSCockpitUIAccessRightService.java:49) ~[cmscockpitserver.jar:?]
        at de.hybris.platform.cockpit.services.security.impl.DefaultUIAccessRightService.isWritable(DefaultUIAccessRightService.java:292) ~[cockpitserver.jar:?]
        at de.hybris.platform.cmscockpit.services.security.impl.CMSCockpitUIAccessRightService.isWritable(CMSCockpitUIAccessRightService.java:56) ~[cmscockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.AbstractEditorAreaController.isEditable(AbstractEditorAreaController.java:404) ~[cockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.DefaultEditorAreaController.resetSectionPanelModel(DefaultEditorAreaController.java:113) ~[cockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.DefaultEditorAreaListener.currentObjectUpdated(DefaultEditorAreaListener.java:48) ~[cockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.EditorArea.fireCurrentObjectUpdated(EditorArea.java:288) ~[cockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.EditorArea.update(EditorArea.java:1056) ~[cockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.EditorArea.setCurrentObject(EditorArea.java:567) ~[cockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.BaseUICockpitPerspective.activateItemInEditorArea(BaseUICockpitPerspective.java:333) [cockpitserver.jar:?]
        at de.hybris.platform.cmscockpit.session.impl.CmsCockpitPerspective.activateItemInEditorArea(CmsCockpitPerspective.java:189) [cmscockpitserver.jar:?]
        at de.hybris.platform.cockpit.session.impl.BaseUICockpitPerspective.activateItemInEditor(BaseUICockpitPerspective.java:389) [cockpitserver.jar:?]
        at de.hybris.platform.cmscockpit.navigationnode.browserarea.list.RelatedItemListRenderer$2.onEvent(RelatedItemListRenderer.java:109) [cmscockpitserver.jar:?]
        at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197) [zk-3.6.4-hybris-patched.jar:3.6.4]
        at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) [zk-3.6.4-hybris-patched.jar:3.6.4]
        at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519) [zk-3.6.4-hybris-patched.jar:3.6.4]
        at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446) [zk-3.6.4-hybris-patched.jar:3.6.4]

So FooterNavigationComponent has a navigation node attribute which contain links in it as a type of CMSLinkComponent which is not editable in cmscockpit.


Read more...

Environment

SAP Commerce Platform 6.6

Product

SAP Hybris Commerce 6.6

Keywords

 IllegalArgumentException, contentSlots,  cmscomponent , KBA , CEC-COM-CPS , SAP Commerce , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.