[infinispan-dev] few bugs

Galder Zamarreño galder at redhat.com
Fri Feb 24 09:47:19 EST 2012


Vladimir, are you also looking into the 2nd bug too?

Assign 5.1.2.CR1 as fix versions.

On Feb 24, 2012, at 12:02 AM, Ales Justin wrote:

> 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
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache




More information about the infinispan-dev mailing list