How to create Thumbnail Servlet in AEM | Community
Skip to main content
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 Mohit_KBansal

Check the component which is rendering/calling this image. Also, check JS if needed. It's your code, so you should be able to better drill it down.

2 replies

Mohit_KBansal
Employee
January 10, 2023

You should debug, from where this image request is generated and fix the code, instead of writing custom servlet to handle this error.

vinuu123Author
New Participant
January 10, 2023

How can I debug that ?

Mohit_KBansal
Mohit_KBansalAccepted solution
Employee
January 10, 2023

Check the component which is rendering/calling this image. Also, check JS if needed. It's your code, so you should be able to better drill it down.

Ritesh_Mittal
New Participant
January 9, 2023

Hi @vinuu123 ,

 

Do you want to add more details on what you want to achieve in that servlet?

 

Thanks,

Ritesh Mittal

vinuu123Author
New Participant
January 9, 2023

*WARN* -  GET /content/project/us/en/about-us/events/shows/ampp-1010.thumb.600.600.png HTTP/1.1] com.day.cq.wcm.core.impl.servlets.ThumbnailServlet Cannot create thumbnail 2java.lang.NullPointerException: null

 

this is the error/warning I am getting

I want to create custom servlet to avoid this warn, by adding default thumbnail