[infinispan-issues] [JBoss JIRA] (ISPN-2036) IllegalArgumentException during TreeCache instantiation

Michael Gronau (JIRA) jira-events at lists.jboss.org
Mon May 21 09:46:19 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Gronau reopened ISPN-2036:
----------------------------------



I tried it with JBoss 7.2.0-Alpha and the modules of infinispan 5.1.5.CR1. No luck, same error and same stacktrace:
15:42:15,384 ERROR [stderr] (Thread-95) Caused by: java.lang.IllegalArgumentException: This adapter only works with CacheImpl, not with DelegatingCach
e
15:42:15,384 ERROR [stderr] (Thread-95)         at org.infinispan.AbstractDelegatingCacheImpl.<init>(AbstractDelegatingCacheImpl.java:62)
15:42:15,384 ERROR [stderr] (Thread-95)         at org.infinispan.tree.CacheAdapter.<init>(CacheAdapter.java:56)
15:42:15,385 ERROR [stderr] (Thread-95)         at org.infinispan.tree.CacheAdapter.createAdapter(CacheAdapter.java:71)
15:42:15,385 ERROR [stderr] (Thread-95)         at org.infinispan.tree.TreeStructureSupport.<init>(TreeStructureSupport.java:42)
15:42:15,385 ERROR [stderr] (Thread-95)         at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:56)
15:42:15,385 ERROR [stderr] (Thread-95)         at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:52)
15:42:15,385 ERROR [stderr] (Thread-95)         at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:58)
                
> IllegalArgumentException during TreeCache instantiation
> -------------------------------------------------------
>
>                 Key: ISPN-2036
>                 URL: https://issues.jboss.org/browse/ISPN-2036
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core API, Tree API
>    Affects Versions: 5.1.4.FINAL
>            Reporter: Michael Gronau
>            Assignee: Manik Surtani
>            Priority: Blocker
>              Labels: TreeCache
>             Fix For: 5.1.5.CR1
>
>
> With the current version it is not possible to create an instance of TreeCache. I'm using the cache inside JBoss 7.1.2 Final. The following lines worked in earlier versions of the cache api:
>             org.infinispan.Cache<String, Object> infiniCache = this.cacheContainer.getCache(cfg.getName());
>             
>             TreeCache<String, Object> tc = new TreeCacheFactory().createTreeCache(infiniCache.getCache());
> Now the method createTreeCache(..) throws an java.lang.IllegalArgumentException: This adapter only works with CacheImpl, not with DelegatingCach
> e

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list