Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

surenk
Level 4
Level 4

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).

sling-error.png

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?

1 Accepted Solution
Nikhil-Kumar
Correct answer by
Community Advisor
Community Advisor

@surenk 

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

View solution in original post

2 Replies
Nikhil-Kumar
Correct answer by
Community Advisor
Community Advisor

@surenk 

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

View solution in original post

madhug41425801
Employee
Employee

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