AEM Forms LTS 6.6: SerializationException InvalidClassException in Form Data Model GET service

Resolve the SerializationException InvalidClassException error that occurs when using the GET service in an AEM Forms Data Model by validating the firewall and database permissions.

Description description

Environment

  • Adobe Experience Manager (AEM) Forms LTS 6.6
  • OpenJDK version 21.0.10

Symptoms

When attempting to fetch data using the GET service in a Form Data Model (FDM), the following error is logged and the operation fails:

org.apache.commons.lang3.SerializationException: InvalidClassException while reading cloned object data

The error occurs during execution of the GET service in the data model editor’s Services tab. Logs might also show references to deserialization firewall filter status (for example REJECTED) and database permission errors (such as missing SELECT permission). The issue is reproducible every time on the affected FDM.

Cause

This error is typically caused by either a misconfigured deserialization firewall (blocking required Java classes) or insufficient database permissions for the AEM Forms database account. Both must be correctly configured for the GET service to function.

Resolution resolution

Follow these steps to resolve the issue.

  1. Validate the AEM deserialization firewall configuration:

    1. On the affected AEM instance, open /system/console/configMgr.
    2. Locate com.adobe.cq.deserfw.impl.DeserializationFirewallImpl.
    3. Ensure the deserialization firewall is active and that standard Java and Adobe packages (such as java., sun.util.calendar) are present in the allowlist.
    4. Confirm that the configuration is saved and persists after reopening the configuration page.
    5. Run the deserialization firewall health check at: https://<host>/system/console/healthcheck?tags=deserialization.
    6. Ensure all checks (Attach API Readiness, Functional, Loaded) return OK with zero failures.
    7. If any configuration changes are made, restart the AEM instance before retesting.
  2. Confirm with your database administrator that the database account configured in AEM Forms has SELECT permission on the required table. Use the same credentials as configured in the FDM to test the permission.

  3. After completing the above steps, open the affected FDM.

  4. Execute the GET service again.

  5. Confirm that the SerializationException and any database permission errors no longer occur, and that data is returned as expected.

recommendation-more-help
experience-cloud-kcs-help-kbarticles