SAP Knowledge Base Article - Preview

2733524 - Storefront not accessible - java.util.NoSuchElementException: No value present

Symptom

When accessing the storefront, the user is met with a Server error, while the below error is observed in the console.log:

Dec 15, 2018 12:13:49 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [/yacceleratorstorefront] threw exception [Request processing failed; nested exception is java.util.NoSuchElementException: No value present] with root cause
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService.getItemByCriteria(DefaultCMSPageService.java:976)
at de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService.getHomepage(DefaultCMSPageService.java:473)
at de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController.getContentPageForLabelOrId(AbstractPageController.java:341)
at de.hybris.platform.yacceleratorstorefront.controllers.pages.HomePageController.home(HomePageController.java:54)
...


Read more...

Environment

The error is observed on hybris Commerce Suite version 1808.

Product

SAP Hybris Commerce 1808

Keywords

  • hybris
  • 18.08
  • home page
  • getItemByCriteria
  • getHomepage
, KBA , CEC-COM-CPS , SAP Commerce , CEC-HCS-CCAZ-CZO , Customer Zone on Azure , Problem

About this page

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

Search for additional results

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