1 Reply Latest reply on Apr 4, 2008 5:47 PM by Jason Greene

    POJO Cache unable to serialize class inside my POJO

    L. Kirven Newbie

      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:

      public class Nonce implements Serializable {
       protected String value = null;
       protected long expires = 0;
       protected long expireTime = 0;

      I am using POJO Cache 2.1.0 with JBoss 5.0 Beta4