Legacy Knowledge Base
Published Jul. 2, 2025

Adaptive Media does not show errors in logs

Written By

Cristina Rodriguez

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Adaptive Media cannot process some images, but the only info about these errors is found in the UI alone, as shown in the image below. No related errors can be found in the logs.

    Adaptive_media_error_-_Screenshot_2021-04-19_142238.jpg

Environment

  • Liferay DXP 7.0+.

Resolution

  • Some logs must be enabled to get more specific information about the images that failed during the process. Make sure the following classes' logs are configured to WARN level:
    com.liferay.adaptive.media.document.library.web.internal.optimizer.DLAMImageOptimizer
    And this one to DEBUG level:
    com.liferay.adaptive.media.image.internal.util.RenderedImageUtil
  • So now you will be able to see errors like:
    2021-04-20 10:05:27.161 WARN [liferay/background_task-8][DLAMImageOptimizer:161] Unable to process file entry 9560484
    And more specific exceptions like:
    2021-04-26 14:55:05.114 DEBUG [liferay/background_task-10][RenderedImageUtil:100] java.lang.ArrayIndexOutOfBoundsException: 4096
    at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:984)
    at javax.imageio.ImageReader.read(ImageReader.java:939)
    along with their corresponding exception stack trace.
  • Remember that after restarting the server you must enable the mentioned logs again.
  • After 2024.Q1.1, the relevant log class instead of DLAMImageOptimizer should be com.liferay.adaptive.media.image.optimizer.BaseAMImageOptimizer.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base