4 Replies Latest reply on May 25, 2012 9:22 AM by michael_gronau

    AS7 with Infinispan 5.1.4 and Tree API not working

    michael_gronau

      Hi,

      I'm using the current nightly build of jboss 7.1.2.Final which uses Infinispan 5.1.4. With this version I cannot create a TreeCache instance with the tree API module. When creating the tree cache instance i get this Exception:

      12:04:37,906 ERROR [stderr] (Thread-92)     ... 2 more

      12:04:37,906 ERROR [stderr] (Thread-92) Caused by: java.lang.IllegalArgumentException: This adapter only works with CacheImpl, not with DelegatingCach

      e

      12:04:37,907 ERROR [stderr] (Thread-92)     at org.infinispan.AbstractDelegatingCacheImpl.<init>(AbstractDelegatingCacheImpl.java:62)
      12:04:37,907 ERROR [stderr] (Thread-92)     at org.infinispan.tree.CacheAdapter.<init>(CacheAdapter.java:56)
      12:04:37,908 ERROR [stderr] (Thread-92)     at org.infinispan.tree.CacheAdapter.createAdapter(CacheAdapter.java:64)
      12:04:37,908 ERROR [stderr] (Thread-92)     at org.infinispan.tree.TreeStructureSupport.<init>(TreeStructureSupport.java:42)
      12:04:37,908 ERROR [stderr] (Thread-92)     at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:51)
      12:04:37,909 ERROR [stderr] (Thread-92)     at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:47)
      12:04:37,909 ERROR [stderr] (Thread-92)     at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:58)
      12:04:37,910 ERROR [stderr] (Thread-92)     at com.os.ee.cache.infinispan.InfinispanCacheFactory.startConfigurations(InfinispanCacheFactory.java:1

      81)

      12:04:37,910 ERROR [stderr] (Thread-92)     at com.os.ee.subsystem.AbstractSubsystemFactory.startBootstrapConfigurations(AbstractSubsystemFactory.

      java:49)

      12:04:37,911 ERROR [stderr] (Thread-92)     at com.os.ee.subsystem.AbstractSubsystemFactoryService.onStart(AbstractSubsystemFactoryService.java:50

      )

      12:04:37,911 ERROR [stderr] (Thread-92)    

      ... 22 more

       

      Is this a bug, or do i have to create the tree cache in a different way?