-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
10.0.0.Final
-
None
Creating a TreeCache from a cache configured in standalone.xml fails with error:"invocationBatching is not enabled", whereas cache is configured with transaction mode BATCH. I'm not sure this configuration is right, documentation seems outdated.
Cache configuration is:
<cache-container name="testContainer" jndi-name="java:jboss/infinispan/container/testContainer"> <local-cache name="testCache"> <transaction mode="BATCH"/> <eviction strategy="LRU" max-entries="43210"/> </local-cache> </cache-container>
Tree cache creation code:
@Resource(lookup = "java:jboss/infinispan/cache/testContainer/testCache") private Cache<String, String> testBaseCache; @PostConstruct public void onStartup() { debugInfo(); new TreeCacheFactory().createTreeCache(this.testBaseCache); }
Error:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.deployment.subunit."test-wfy10-cache-tree.ear-0.0.0-SNAPSHOT.ear"."test-wfy10-cache-tree.jar.jar".component.TreeCacheBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."test-wfy10-cache-tree.ear-0.0.0-SNAPSHOT.ear"."test-wfy10-cache-tree.jar.jar".component.TreeCacheBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance