cannot render resource SyntheticResource, | Community
Skip to main content
sreedobe
Level 4
Jul 31, 2020 2:13 AM UTC
Solved

cannot render resource SyntheticResource,

I have jsp based components on AEM 6.5, which have <cq:include> to resourceType that exists in code.

 

I am not sure why I am seeing in error logs. any suggestions, why this could happen, I know , it is a content node that does not exist, as path="fakepath" , resourceType="path to component" .

org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource SyntheticResource,

 Could not find much help on "synthertic resource" Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
Jul 31, 2020 6:10 AM UTC

3 replies

ChitraMadan
New Participant
Jul 31, 2020 1:44 PM UTC

Hi @sreedobe ,

 

I encountered the same logs and the reason found was there was a resource which was getting included from the templatepage and which did not exist.

Something like below:

templatepage/body.jsp

<body
<cq:include script="version.jsp" />
</body>
version.jsp
<cq:include path="version" resourceType="/apps/sampleapp/components/version" />  -  Non existent resource
So all the pages using this template was throwing this error - org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource SyntheticResource
I would suggest to find the references of problematic resource, it must be getting included from somwhere with <cq:include>
 
Translate
vanegi
Employee
Jul 31, 2020 6:28 AM UTC

Hi @sreedobe,

This error occurs when the node in the /content tree does not have a resourceType property. Or the resourceType does not exist. 

 

Quick checkpoint:-

Translate
Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
Jul 31, 2020 6:10 AM UTC