on ‎2018 Jun 21 1:38 AM
We are getting IllegalArgumentException while accessing any content pages with the below scenario,
The ContentPage has ContentSlotForPage defined but, there is no ContentSlotForPageTemplate defined.
In this case, the expectation was that we should get the sum of all the unique ContentSlots defined as the ContentSlotForPage and ContentSlotForPageTemplate. But, our investigation suggests we are getting ONLY the ContentSlots defined in the ContentSlotForPageTemplate and the ones defined in the ContentSlotForPage is completely ignored.
Is there any issue with the 6.5 DefaultCMSPageService.getContentSlotForPage(AbstractPageModel) ?
Thanks, Sandip
Request clarification before answering.
Hi Yashwant,
We are getting the error while accessing the content page. this is the error log,
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: Value is instanceof Collection but cannot be empty collection for key: slots org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) ........... java.lang.IllegalArgumentException: Value is instanceof Collection but cannot be empty collection for key: slots de.hybris.platform.servicelayer.search.FlexibleSearchQuery.addQueryParameters(FlexibleSearchQuery.java:140) de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSContenSlotDao.findAllMultiCountryContentSlotsByOriginalSlots(DefaultCMSContenSlotDao.java:689) de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService.getSortedMultiCountryContentSlots(DefaultCMSPageService.java:193) de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService.getContentSlotsForPage(DefaultCMSPageService.java:167)
Its happening because, for this content page no contentslotfortemplate was defined. It has valid content slots for page defined though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep
Can you share more details like Error log, impex and when you are getting the exception?
Regards,
Yashwanth
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.