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.
Mohit_KBansal
Mohit_KBansalAccepted solution
Employee
Jan 10, 2023 8:43 AM UTC

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.

8 replies

Mohit_KBansal
Employee
Jan 10, 2023 8:37 AM UTC

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

Translate
vinuu123Author
Level 3
Jan 10, 2023 8:41 AM UTC

How can I debug that ?

Translate
Mohit_KBansal
Mohit_KBansalAccepted solution
Employee
Jan 10, 2023 8:43 AM UTC

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.

Translate
Ritesh_Mittal
New Participant
Jan 9, 2023 7:21 AM UTC

Hi @vinuu123 ,

 

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

 

Thanks,

Ritesh Mittal

Translate
vinuu123Author
Level 3
Jan 9, 2023 7:27 AM UTC

*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

Translate