Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

In AEMaaCS - Aem Sites Launches url are not working on the preview

Avatar

Level 1

Expected Behaviour

AEMaaCloud Service - Launch urls need to be pushed to preview servers and we should be able to view that /content/launches.. url.

Actual Behaviour

AEMaaCloud Service - Launch urls pushed to preview servers are not loading showing null pointer exception. PFB the logs

Reproduce Scenario (including but not limited to)

Steps to Reproduce

  1. Create a AEM Launches url and push to preview through manage publication
  2. Try to access that aem launches direct url on the preview url with core-cif jar installed in that instance.

Platform and Version

AEM Release | 2023.2.11289.20230224T170559Z
core-cif-components-core:2.4.2

Sample Code that illustrates the problem

https://github.com/adobe/aem-core-cif-components/blob/core-cif-components-reactor-2.4.2/bundles/core...

Logs taken while reproducing problem

/content/launches/2021/09/27/thanks_giving/content/tsc/en/cms/grilling.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.NullPointerException: null
at com.adobe.cq.wcm.launches.utils.LaunchUtils.getTargetResourcePath(LaunchUtils.java:129) [com.adobe.cq.wcm.cq-wcm-launches-core:5.14.54]
at com.adobe.cq.wcm.launches.utils.LaunchUtils.getTargetResource(LaunchUtils.java:108) [com.adobe.cq.wcm.cq-wcm-launches-core:5.14.54]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.lambda$toLaunchProductionPage$2(SiteNavigation.java:190) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at java.base/java.util.Optional.map(Optional.java:265)
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.toLaunchProductionPage(SiteNavigation.java:190) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.getGenericPage(SiteNavigation.java:127) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.getProductPage(SiteNavigation.java:59) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.utils.SiteNavigation.isProductPage(SiteNavigation.java:204) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at com.adobe.cq.commerce.core.components.internal.servlets.CatalogPageNotFoundFilter.doFilter(CatalogPageNotFoundFilter.java:104) [com.adobe.commerce.cif.core-cif-components-core:2.4.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:84) [org.apache.sling.engine:2.12.2]
at com.adobe.granite.uriprovider.dba.DBAHeaderFilter.doFilter(DBAHeaderFilter.java:107) [com.adobe.granite.uriprovider.dba:0.2.8]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at com.adobe.cq.wcm.core.extensions.amp.internal.AmpModeForwardFilter.doFilter(AmpModeForwardFilter.java:84) [com.adobe.cq.core.wcm.components.extensions.amp:2.21.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at com.day.cq.dam.core.impl.servlet.DisableLegacyServletFilter.executeFilter(DisableLegacyServletFilter.java:197) [com.day.cq.dam.cq-dam-core:5.13.476]
at com.day.cq.dam.core.impl.servlet.DisableLegacyServletFilter.doFilter(DisableLegacyServletFilter.java:154) [com.day.cq.dam.cq-dam-core:5.13.476]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:109) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:84) [org.apache.sling.engine:2.12.2]
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:226) [com.day.cq.wcm.cq-wcm-foundation:5.14.26]
at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:138) [com.day.cq.wcm.cq-wcm-foundation:5.14.26]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:76) [com.adobe.granite.optout:1.0.0]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:226) [com.day.cq.wcm.cq-wcm-foundation:5.14.26]
at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter(CoreFormHandlingServlet.java:123) [com.adobe.cq.core.wcm.components.core:2.21.2]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90) [com.day.cq.wcm.cq-wcm-core:5.14.70]
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:78) [org.apache.sling.engine:2.12.2]
at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:87) [org.apache.sling.rewriter:1.3.4]

3 Replies

Avatar

Community Advisor

This looks more like an issue that needs to be addressed by Adobe. I would recommend logging a support ticket for this, or if you have identified the GitHub repo, you can create an issue there as well.



Esteban Bustamante

Avatar

Community Advisor

@RajTSC Are you able to reproduce this in vanilla aem instance ( without any of custom code ) , Moreover i assume all the related bundles are up and running ?

Avatar

Level 8

Hi 

if you are using cloud service then might be your preview service is disabled/ blocked

- check with adobe support 

or

- refer page below to address IP allow list for Preview Service for each enviorment

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-...