Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8140

Getting IndexOutOfBoundsException when retrieving WeakCounter

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Calling getWeakCounter on EmbeddedCounterManager leads to the following exception:

      java.lang.ArrayIndexOutOfBoundsException: 0
              at org.infinispan.counter.impl.weak.WeakCounterImpl.registerListener(WeakCounterImpl.java:228) ~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
              at org.infinispan.counter.impl.weak.WeakCounterImpl.init(WeakCounterImpl.java:105) ~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
              at org.infinispan.counter.impl.manager.EmbeddedCounterManager.createWeakCounter(EmbeddedCounterManager.java:66) ~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
              at org.infinispan.counter.impl.manager.EmbeddedCounterManager.createCounter(EmbeddedCounterManager.java:129) ~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
              at org.infinispan.counter.impl.manager.EmbeddedCounterManager$$Lambda$320/1622399598.apply(Unknown Source) ~[?:?]
              at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_40]
              at org.infinispan.counter.impl.manager.EmbeddedCounterManager.getWeakCounter(EmbeddedCounterManager.java:94) ~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
              at org.radargun.service.Infinispan91WeakCounterOperations.getWeakCounter(Infinispan91WeakCounterOperations.java:22) ~[plugin-infinispan91-3.0.0-SNAPSHOT.jar:?]
              at org.radargun.stages.WeakCounterTestStage$WeakCounterLogic.init(WeakCounterTestStage.java:59) ~[radargun-counter-3.0.0-SNAPSHOT.jar:?]
              at org.radargun.stages.test.Stressor.run(Stressor.java:65) [radargun-core-3.0.0-SNAPSHOT.jar:?]
      

      The counter has this configuration:

      <counters xmlns="urn:infinispan:config:counters:9.0" num-owners="2" reliability="CONSISTENT">
               <weak-counter name="c5" initial-value="5" storage="VOLATILE" concurrency-level="1"/>
      </counters>
      

              pruivo@redhat.com Pedro Ruivo
              mgencur Martin Gencur
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: