org.apache.geode.pdx.PdxSerializationException: Could not deserialize pdx because the pdx serializer's fromData returned false
search cancel

org.apache.geode.pdx.PdxSerializationException: Could not deserialize pdx because the pdx serializer's fromData returned false

book

Article ID: 380191

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

The PDX deserialization is failing during function execution, with the following error message:

Reference Error message:

org.apache.geode.pdx.PdxSerializationException: Could not deserialize pdx because the pdx serializer's fromData returned false 

Environment

This applies to all versions of GemFire

Cause

There are multiple reasons for this issue:

Scenario 1: The most likely cause of the exception message “Could not deserialize pdx because the pdx serializer's fromData returned false for a pdx of class“ is that the ReflectionBasedAutoSerializer does not have a pattern that will match.

Scenario 2: Currently, ReflectionBasedAutoSerializer only allows a comma and a space to separate class patterns

Resolution

For scenario 1 above Please make sure that your ReflectionBasedAutoSerializer does have a pattern that will match.

For scenario 2 above: Please check, if you are using anything other than a comma or a space to separate class patterns. This is a known issue and will be fixed in future versions of GemFire. Please subscribe to this article to get future updates.

 

Additional Information

Workaround:

Please make sure to use either a comma or a space to separate class patterns, in the configuration files.