Skip to main content
Level 2
February 13, 2024
Solved

Author local instance: 500 org.apache.sling.api.SlingException: Cannot get DefaultSlingScript

In my local author instance, when I click "View as Published," I get the following error:

org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/xxxxx__002d__xxxxx/components/breadcrumb/breadcrumb__002e__html.java: Line 136, column 7788 : com.xxxxx.xxxxx.core.models.BreadCrumbModel cannot be resolved to a type

Cannot serve request to /content/xxxxx/us/en/home/test-for-no-html-extension.html in /apps/xxxxx/components/breadcrumb/breadcrumb.html

Exception:

javax.script.ScriptException: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/cisco__002d__dcloud/components/breadcrumb/breadcrumb__002e__html.java:
Line 136, column 7788 : com.xxxxxx.xxxxx.core.models.BreadCrumbModel cannot be resolved to a type

 Not sure how to fix. Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Shashi_Mulugu
Shashi_MuluguAccepted solution
Community Advisor and User Group Leader
February 15, 2024

@kbsniquer that means breadcrumb sling model either missing from bundle or not able to initiate.. 

 

Please check error.log for more information or post your model Java code here

2 replies

Shashi_Mulugu
Community Advisor and User Group Leader
Shashi_MuluguCommunity Advisor and User Group LeaderAccepted solution
Community Advisor and User Group Leader
February 15, 2024

@kbsniquer that means breadcrumb sling model either missing from bundle or not able to initiate.. 

 

Please check error.log for more information or post your model Java code here

Translate
kautuk_sahni
Adobe Employee
Adobe Employee
February 28, 2024

@kbsniquer Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni