While fatching Object Type data in couchBase I am getting an exception
my bean like.
Data
public class Bean{
id
private String id;
field
private Object objectData;
}
I am able to save this type of data. but when i try to fetch this data i am getting below exception.
org.springframework.data.mapping.MappingException: Couldn't find PersistentEntity for type java.lang.Object!
Iām not super-familiar with Spring. But in general, de-serialization requires having a concrete type - not Object.
ā private void writeObject(ObjectOutputStream out) throws IOException {
out.defaultWriteObject();
out.writeObject(this.objectData);
}
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
this.objectData= in.readObject();
}ā
But i have done Serialization by using above method.