I am trying to put an object as a key inside the Gemfire region.
TestClass keyObject = new TestClass();
region.put(keyObject, "value");
It fails with below error -
com.gemstone.gemfire.cache.client.ServerOperationException: com.gemstone.gemfire.pdx.PdxSerializationException: Could not create an instance of a class 'TestClass'
Please suggest what needs to be implemented in the object that needs to be used as a key while storing in gemfire cache region.
P.S. I have set the autoserialization property of gemfire to be true and i am overriding equals and hashcode in my TestClass and it is having a default empty constructor.