Using Infinispan 5.1.1.Final in custom AS7 branch.

1) using DistributedExecutorService::submit with non <distributable-cache> 
results in NPE

   protected <K> Map<Address, List<K>> mapKeysToNodes(K... input) {
      DistributionManager dm = cache.getDistributionManager();
      Map<Address, List<K>> addressToKey = new HashMap<Address, 
List<K>>(input.length * 2);
      for (K key : input) {
         Address ownerOfKey = dm.getPrimaryLocation(key); // <------- dm is null

2) using AdvancedCache::lock w/o Tx present results in CCE

java.lang.ClassCastException: 
org.infinispan.context.impl.NonTxInvocationContext cannot be cast to 
org.infinispan.context.impl.TxInvocationContext
        at 
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:129)
        at 
org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
        at org.infinispan.CacheImpl.lock(CacheImpl.java:481)
        at org.infinispan.CacheImpl.lock(CacheImpl.java:468)
        at 
org.infinispan.AbstractDelegatingAdvancedCache.lock(AbstractDelegatingAdvancedCache.java:153)

Ping me if you need more info / details.

-Ales




_______________________________________________
infinispan-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/infinispan-dev

Reply via email to