Hi, I am seeing below error for many of the content pages in logs.
Enable JSON and Enable XML are selected for DefaultGetServlet and I am using AEM 6.5 version.
GET /content/test/***********.html HTTP/1.1]org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource JcrNodeResource, type=nt:unstructured, superType=null, path=/content/******/jcr:content/root/responsivegrid/*****_copy
Solved! Go to Solution.
Views
Replies
Total Likes
Hi, Check the "*****_copy" component rendering logic. What happens if you try to add only this component to a new page ? Is it rendering and are you getting any error for the new page ?
It may happen that the old component was added to a page and later the component rendering scripts has changed but the old references has not changed in the old content page.
Thanks,
Somen
Hello @vijitha
Can you please check, if the rendering script, pointed via sling:resourceType for these components is available? Has the component been renamed/moved, but components added in old pages might still be referring to old location?
Hi, Check the "*****_copy" component rendering logic. What happens if you try to add only this component to a new page ? Is it rendering and are you getting any error for the new page ?
It may happen that the old component was added to a page and later the component rendering scripts has changed but the old references has not changed in the old content page.
Thanks,
Somen
Hi , I have added in new page It's working fine I dont see any error there.
can you check the sling:resourceType for /content/******/jcr:content/root/responsivegrid/*****_copy node and if its there the resourceType should also need to be available in your repository or code base with its .html files. there are situations in which either you renamed/deleted the refereed resourceType or has been moved to different location. AEM requires the sling resource type to render its script and if its not there then it will complain.
Hi PrakashRaj,
Thanks for your reply.
Yah I don't see sling:resourceType /content/******/jcr:content/root/responsivegrid/*****_copy for this node. I have this issue nearly for 1000 pages. How can we solve this.
Since, you don’t have the sling:resourceType for this the content won’t be loading on the page so you need to decide if you want to keep this node or delete it. For any of the above change you need to write either custom script or servet to either update the node with sling:resourceType or delete the node that I can think of
Thnak you so much for your prompt help.
I feel It's better to delete the nodes since it is not loading in the pages. Do you have any sample code or link to write the scripr or servlet.