Details

      Description

      Code:

      _cache.start();

      SystemW coreSystem = new SystemW();
      coreSystem.setDo(new SystemS(100, 123, "core system", "CORE")); // <- @Serializable

      _cache.attach("/systems/100", coreSystem);
      _cache.attach("/systems/100", new SystemW()); // <- throws

      whereas SystemW is advised and has a @org.jboss.cache.pojo.annotation.Serializable field _do. Something like this:
      Code:

      public class SystemW {
      @org.jboss.cache.pojo.annotation.Serializable
      private SystemS _do;

      public void setDo(SystemS inDo)

      { _do = inDo; }

      }

      Stack trace:
      Code:

      java.lang.ClassCastException: ch.steria.jbcache.aopobjects.SystemS
      at org.jboss.cache.pojo.impl.InternalHelper.getPojoReference(InternalHelper.java:46)
      at org.jboss.cache.pojo.impl.InternalHelper.getPojo(InternalHelper.java:181)
      at org.jboss.cache.pojo.impl.PojoCacheDelegate.getObject(PojoCacheDelegate.java:81)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.getObject(PojoCacheImpl.java:203)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$detach$aop(PojoC
      acheImpl.java:150)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.detach(PojoCacheImpl.java)
      at org.jboss.cache.pojo.impl.AdvisedPojoHandler.remove(AdvisedPojoHandler.java:215)
      at org.jboss.cache.pojo.impl.PojoCacheDelegate.removeObject(PojoCacheDelegate.java:276)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.removeObject(PojoCacheImpl.java:170)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$detach$aop(PojoC
      acheImpl.java:153)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.detach(PojoCacheImpl.java)
      at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:143)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:136)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoC
      acheImpl.java:101)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
      at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jason.greene Jason Greene
                Reporter:
                jason.greene Jason Greene
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: