AEM DAM Metadata Editor NullPointerException due to deprecated Rating component
This article explains how to resolve a NullPointerException in the Adobe Experience Manager (AEM) DAM Metadata Editor when a metadata schema references the deprecated Rating component. The Metadata Editor fails to render asset properties because the deprecated component is no longer supported in recent AEM Long-Term Support (LTS) versions. To resolve the issue, remove deprecated Rating component references from schemas.
Description description
Environment
- Adobe Experience Manager (AEM) Long-Term Support (LTS) versions
- DAM Metadata Editor
Issue/Symptoms
-
The DAM Properties or Metadata Editor fails to render for assets.
-
A NullPointerException appears when opening asset properties.
-
Logs contain errors such as:
- javax.servlet.ServletException: java.lang.NullPointerException
- References to /libs/dam/gui/coral/components/admin/rating
- libs.granite.ui.components.shell.propertiespage Unable to render properties page correctly
-
The issue occurs when a metadata schema field references the Rating component.
Root Cause
The DAM Rating component is deprecated and unsupported in recent AEM LTS versions. References to this component in metadata schemas trigger a NullPointerException during asset property rendering.
Resolution resolution
Follow the steps below to resolve the issue:
- Review the DAM metadata schema configuration for fields that reference the Rating component (
/libs/dam/gui/coral/components/admin/rating). - Edit the affected metadata schema and remove any field that uses the Rating component.
- Save the metadata schema and republish it.
- Open the DAM Properties or Metadata Editor for an asset and verify that the editor renders correctly without a NullPointerException.