[
https://issues.jboss.org/browse/ISPN-2276?page=com.atlassian.jira.plugin....
]
Thomas Fromm commented on ISPN-2276:
------------------------------------
Are you sure that you use the "foo" cache for the TreeAPI?
e.g.
TreeCacheFactory tcf = new TreeCacheFactory();
tcf.createTreeCache(cm.getCache("foo"))
The exception above will come, when you use the default cache cm.getCache() with
TreeCache.
NamedCache problem with xml config
----------------------------------
Key: ISPN-2276
URL:
https://issues.jboss.org/browse/ISPN-2276
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 5.1.6.FINAL
Environment: XUbuntu 12
Reporter: Ron Albury
Assignee: Mircea Markus
I am using the Tree API for Infinispan. I want to persist the cache. I started with the
following configuration xml for my loader:
<infinispan>
<default>
<loaders passivation="false" shared="false"
preload="true">
<loader
class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
purgerThreads="1"
purgeSynchronously="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="/home/eialbur/infiniCache" />
</properties>
</loader>
</loaders>
<invocationBatching enabled="true"/>
</default>
</infinispan>
This worked great, but I wanted it to be a named cache. I modified the xml changing
<default> to <namedCache name="foo">.
This now produces the runtime error: Cannot enable Invocation Batching when the
Transaction Mode is NON_TRANSACTIONAL, set the transaction mode to TRANSACTIONAL
So then I modified the xml as follows:
<infinispan>
<namedCache name="foo" >
<loaders passivation="false" shared="false"
preload="true">
<loader
class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
purgerThreads="1"
purgeSynchronously="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="/home/eialbur/infiniCache" />
</properties>
</loader>
</loaders>
<transaction transactionMode="TRANSACTIONAL" />
<invocationBatching enabled="true"/>
</namedCache>
</infinispan>
This now produces the following runtime error: invocationBatching is not enabled. Make
sure this is enabled by calling configurationBuilder.invocationBatching().enable()
I assume this is some sort of problem with Infinispan. It appears that namedCache is
having troubles with configuring from xml.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira