Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Conflict with the OOTB ThumbnailServlet config. AEM6.5.5

Avatar

Level 6

Hi Team,
I have created a page rendering component name data (/apps/project/dm/components/pages/data) [here dm is a folder.]

tushaar_srivastava_0-1615459904522.png

and the related template  (/apps/project/dm/templates/data) 

tushaar_srivastava_1-1615460223768.png

 

Any node/folder created using the data template (project/dm/components/pages/data) throws the below error while rendering the thumbnail. It is conflicting with the OOTB ThumbnailServlet config.

 

Author Error:

/mnt/crx/author/crx-quickstart/logs/error.log:19.08.2020 15:16:04.051 *ERROR* [10.113.90.115 [1597850164034] GET /content/www/data.thumb.48.48.png HTTP/1.1] org.apache.jsp.libs.cq.Page.thumb_png_jsp resource has no content. path=/content/www/data.thumb.48.48.png referrer=null

 

ThumbnailServlet:

component.name = com.day.cq.wcm.core.impl.servlets.ThumbnailServlet

service.pid = com.day.cq.wcm.core.impl.servlets.ThumbnailServlet

service.vendor = Adobe Systems Incorporated

sling.servlet.extensions = [gif, png, jpg]

sling.servlet.resourceTypes = sling/servlet/default

sling.servlet.selectors = thumb workspace = crx.default

 

http://localhost:4502/system/console/configMgr/com.day.cq.wcm.core.impl.servlets.ThumbnailServlet

http://localhost:4502/system/console/components/2914

 

  1. Not sure the reason behind the exception (Author error).
  2. Happens for the one template not with the custom inherited template.
  3. want to know more insight about ThumbnailServlet 

 

@Vijayalakshmi_S  @arunpatidar  @vanegi  @kautuk_sahni  @Theo_Pendle 

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @tushaar_srivastava,

Can you confirm if the thumbnail has jcr:content node. Shared error statement occurs when there is no jcr:content node on the requested resource. 

Also, suggest to check the resource resolving flow via "Recent Requests" in OSGI console - http://localhost:4502/system/console/requests

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @tushaar_srivastava,

Can you confirm if the thumbnail has jcr:content node. Shared error statement occurs when there is no jcr:content node on the requested resource. 

Also, suggest to check the resource resolving flow via "Recent Requests" in OSGI console - http://localhost:4502/system/console/requests

 

Avatar

Community Advisor

@tushaar_srivastava 

Seems your page(/content/www/data) does not have jcr:content node. Sites(sites.html) will load 48x48 size thumbnail icon by default(can override from page properties thumbnail tab) from /libs/cq/ui/widgets/themes/default/icons/240x180/page.png by adapting current resource(Page) to Template.class. You will get this ERROR if page does not have jcr:content node.