Author local instance: 500 org.apache.sling.api.SlingException: Cannot get DefaultSlingScript | Community
Skip to main content
Level 2
February 13, 2024
Solved

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

  • February 13, 2024
  • 2 replies
  • 554 views

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.
Best answer by Shashi_Mulugu

@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
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
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

kautuk_sahni
Community Manager
Community Manager
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.

Kautuk Sahni