1 Reply Latest reply on Jan 20, 2010 3:32 AM by Ulrich Staudinger

    Looks like data object is not refreshing; how do I refresh a POJO object

    Amitava Chatterjee Newbie
      I have a class which extends InstanceOfPojoCacheable and I'm using the object in JBoss cache. As part of modification, I was trying to add a new field to the object. But now it is giving me the exception

       

      ...

      Caused by: java.lang.RuntimeException: java.io.IOException: Current classpath has lesser fields on com.equitymethods.validation.UploadProgressInfo than its original version

      at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5782)

      at org.jboss.cache.TreeCache.put(TreeCache.java:3759)

      at org.jboss.cache.TreeCache.put(TreeCache.java:3490)at org.jboss.cache.aop.TreeCacheAopDelegate._regularPutObject(TreeCacheAopDelegate.java:458)

      at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:206)

      at org.jboss.cache.aop.PojoCache._putObject(PojoCache.java:734)

      at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:465)

      ... 66 more

       

      Caused by: java.io.IOException: Current classpath has lesser fields on com.equitymethods.validation.UploadProgressInfo than its original version

      at org.jboss.serial.classmetamodel.StreamingClass.readStream(StreamingClass.java:98)

      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:381)

      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)

      at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)

      at org.jboss.serial.io.JBossObjectInputStreamSharedTree.readObjectOverride(JBossObjectInputStreamSharedTree.java:61)

      at org.jboss.cache.marshall.JBossObjectStreamFactory$JBossObjectInputStreamOverride.readObjectOverride(JBossObjectStreamFactory.java:33)

      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:342)

       

      Any ideas; I tried dropping and re-creating the ear file but still no good.; please help...

       

      Thankfully yours

      Amitava.