[
https://issues.jboss.org/browse/ISPN-2036?page=com.atlassian.jira.plugin....
]
Galder Zamarreño updated ISPN-2036:
-----------------------------------
Comment: was deleted
(was: Seems to me we have a mixed of classes really trying to do the same job:
1. o.i.t.CacheAdapter, created as a result of ISPN-841
2. o.i.DecoratedCache, created as a result of ISPN-1397
1) was created because within a tree cache operatin, multiple cache operations can be
called, so that intermediate class was created to ship the flags no matter how many times
the cache operation is called.
2) Really does the same thing, but for different reasons, to avoid the use of thread
locals.
Not 100% sure what the fix for this really is.)
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: Galder Zamarreño
Priority: Blocker
Labels: TreeCache
Fix For: 5.1.x
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