I am simply trying to attach a POJO to the cache, but the cache throws the following exception:
Caused by: java.io.InvalidClassException: com.za.mw.sec.Registration; local class incompatible: stream classdesc serialVersionUID = 8690236190740883740, local class serialVersionUID = 3992137148965998963
If I change the internal member inside my class to a String and the attach() works fine. The internal class implements Serializable. I've tried using the POJO annotation to mark it as serializable as well. Here is the definition of object that the cache is not liking:
@Replicable public class Nonce implements Serializable { protected String value = null; protected long expires = 0; protected long expireTime = 0; }
Could you paste a full stack trace for this?
This error means that com.za.mw.sec.Registration was somehow being deserialized. The trace would tell us what was trying to deserialize it and why.