Error on AEM 6.5 Author when "View as published" for a SPA project | Community
Skip to main content
surenk
Level 4
September 18, 2020
Solved

Error on AEM 6.5 Author when "View as published" for a SPA project

  • September 18, 2020
  • 2 replies
  • 2723 views

On AEM 6.5 Author, a SPA based project.

Core components 2.8.0, SPA Project Core 1.0.6 

 

We can Edit the page but when choosing "View as Published" (either the page or experience fragment), the below error shows up (only for spa project, non-spa projects load fine).

In logs.. 

18.09.2020 07:41:53.462 *ERROR* [192.168.19.27 [1600440113446] GET /content/experience-fragments/myproject/en/footer/master.html HTTP/1.1] com.adobe.aem.spa.project.core.internal.impl.utils.HierarchyUtils SPA root page not found, returning null 18.09.2020 07:41:53.480 *ERROR* [192.168.19.27 [1600440113446] GET /content/experience-fragments/myproject/en/footer/master.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Compilation errors in org/apache/sling/scripting/sightly/libs/cq/cloudconfig/components/scripttags/header/header_html.java: Line 40, column 1810 : com.adobe.cq.cloudconfig.components.scripttags.ScriptTagComponents cannot be resolved to a type

 

If we go this path /libs/cq/cloudconfig/components/scripttags/header/header.html and remove the below lines, the above error does not come.

<sly data-sly-use.tagcomponents="com.adobe.cq.cloudconfig.components.scripttags.ScriptTagComponents" data-sly-list="${tagcomponents.scriptTagComponentsHeader}"> <sly data-sly-test="${item.componentReference}" data-sly-resource="${'cloudconfig-footer' @ resourceType=item.componentReference}" /> </sly>

 

The site was working properly, but seeing this recently. What can be going wrong?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nikhil-Kumar

@surenk 

Can you verify the bundle in felix console and check weather this dependency is resolved ?

2 replies

Nikhil-Kumar
Community Advisor
Nikhil-KumarCommunity AdvisorAccepted solution
Community Advisor
September 19, 2020

@surenk 

Can you verify the bundle in felix console and check weather this dependency is resolved ?

Adobe Employee
June 29, 2021

How did you resolve this issue? I'm getting the same error on 6.5.8 Publish SPA

29.06.2021 05:25:42.212 *ERROR* [103.43.114.129 [1624944342198] GET /content/aida/de/route-campaign.html HTTP/1.1] com.adobe.aem.spa.project.core.internal.impl.utils.HierarchyUtils SPA root page not found, returning null