2 Replies Latest reply on Oct 14, 2005 9:09 AM by motormind

    Can't get items from persisted TreeCacheAop

    motormind

      Hi there,

      I am trying to obtain values from a TreCacheAop that I persisted. When the item is first cerated and then still in-memory, it appears to go fine. When I restart my application though and try to obtain someting from the cache, I get this stacktrace:

      java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:122)
       at org.jboss.cache.aop.collection.CachedMapInterceptor.invoke(CachedMapInterceptor.java:108)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at AOPClassProxy$0.values(AOPClassProxy$0.java)
       at nl.mindef.c2sc.titaan.tbl.server.TblServerRmt.addCyrusMessage(TblServerRmt.java:655)
       at nl.mindef.c2sc.titaan.tbl.server.process.cyrusimport.CyrusImportProcess.distributeInternal(Unknown Source)
       at nl.mindef.c2sc.titaan.tbl.server.process.cyrusimport.CyrusImportProcess.receivedMessage(Unknown Source)
       at nl.mindef.c2sc.titaan.tbl.server.process.cyrusimport.CyrusImportProcess$CyrusListener.socketMessageReceived(Unknown Source)
       at nl.mindef.c2sc.titaan.tbl.server.communication.SocketHandler.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
      Caused by: org.jboss.cache.aop.AopOperationNotSupportedException: CachedMapImpl: map.values() operation not supported
       at org.jboss.cache.aop.collection.CachedMapImpl.values(CachedMapImpl.java:171)
       ... 14 more
      


      What could be the trouble? Thanks in advance!

        • 1. Re: Can't get items from persisted TreeCacheAop
          motormind

          Oh yeah, I am using the beta of 1.2.4, so this should probably go to that thread...

          • 2. Re: Can't get items from persisted TreeCacheAop
            motormind

            BTW: I also get the idea that TreeCacheAop doesn't handle anonymous classes very well, since I also get this tracktrace on another set of objects:

            Caused by: java.lang.IllegalArgumentException: TreeCacheAop.putObject(): Object type is neither aspectized nor Serializable. Object class name is nl.mindef.c2sc.titaan.tbl.tasks.AbstractCommand$1
             at org.jboss.cache.aop.util.AopUtil.checkObjectType(AopUtil.java:113)
             at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:147)
             at org.jboss.cache.aop.TreeCacheAopDelegate._regularPutObject(TreeCacheAopDelegate.java:226)
             at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:177)
             at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:399)
             at org.jboss.cache.aop.CollectionClassHandler.collectionObjectPut(CollectionClassHandler.java:141)
             at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:184)
             at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:399)
             at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:250)