cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ContentPage loading issue without ContentSlotForPageTemplate definition

Former Member
0 Likes
329

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

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.

Former Member
0 Likes

The contentslots passed at the DefaultCMSPageService.getSortedMultiCountryContentSlots are null

Former Member
0 Likes

Hi Sandeep

Can you share more details like Error log, impex and when you are getting the exception?

Regards,

Yashwanth