Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@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

Avatar

Administrator

@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