2 Replies Latest reply on Aug 22, 2005 11:10 AM by henryzh126

    Object instantiation exception in TreeCacheAop replication

    henryzh126

      Hi, I'm new to this interesting project. When testing replication, TreeCache is ok but TreeCacheAop throws object instantiation exception:
      failed creating instance of com.xxx.Customer; - nested throwable: (java.lang.InstantiationException: com.xxx.Customer);

      code is simple:

      TreeCacheAopMBean cache = ServiceLocator.getInstance().getTreeCacheAop("testTreeCacheAop");
      if (!cache.exists(fqn))
      {
      ...
      }else
      {
      Customer c = (Customer)cache.getObject(fqn); // Exception throws here
      ...
      }


      Note that it works fine locally, but after replicated(A->B), B get that problem, both A and B using same stuff and the object is not Serializable, also I don't use farming, but deploy .ear and tree-aop-service.xml under /deploy of both machines respectively. Whatever using runtime interceptor or pre-compile(aopc), get the same result.

      So what's the problem...