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.
-
Validate the AEM deserialization firewall configuration:
- On the affected AEM instance, open
/system/console/configMgr. - Locate
com.adobe.cq.deserfw.impl.DeserializationFirewallImpl. - Ensure the deserialization firewall is active and that standard Java and Adobe packages (such as
java.,sun.util.calendar) are present in theallowlist. - Confirm that the configuration is saved and persists after reopening the configuration page.
- Run the deserialization firewall health check at:
https://<host>/system/console/healthcheck?tags=deserialization. - Ensure all checks (Attach API Readiness, Functional, Loaded) return OK with zero failures.
- If any configuration changes are made, restart the AEM instance before retesting.
- On the affected AEM instance, open
-
Confirm with your database administrator that the database account configured in AEM Forms has
SELECTpermission on the required table. Use the same credentials as configured in the FDM to test the permission. -
After completing the above steps, open the affected FDM.
-
Execute the
GETservice again. -
Confirm that the SerializationException and any database permission errors no longer occur, and that data is returned as expected.