Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1702

org.jgroups.blocks.atomic.CounterService.getOrCreateCounter(counterName,-1) causing NullPointerException in EAP6.1.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.4
    • 3.2.10
    • None

      WE were happyly using the counterService.getOrCreateCounter(counter, -1); API in the JBOSS 7.1.3 (JBOSS EAP 6.0.1),
      we tried to migrate to EAP 6.1.1 and got NullPointerException on that call

      Here is the stacktrace:
      Caused by: java.lang.NullPointerException
      at org.jgroups.util.Owner.hashCode(Owner.java:52) [jgroups-3.2.10.Final-
      redhat-2.jar:3.2.10.Final-redhat-2]
      at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:882
      ) [rt.jar:1.6.0_26]
      at org.jgroups.protocols.COUNTER.getOrCreateCounter(COUNTER.java:140) [j
      groups-3.2.10.Final-redhat-2.jar:3.2.10.Final-redhat-2]
      at org.jgroups.blocks.atomic.CounterService.getOrCreateCounter(CounterSe
      rvice.java:34) [jgroups-3.2.10.Final-redhat-2.jar:3.2.10.Final-redhat-2]
      at com.alu.mdm.container.jboss.JBossContainerImpl.getOrCreateDistributed
      Counter(JBossContainerImpl.java:102) [:]

              rhn-engineering-bban Bela Ban
              ramilisrafilov Ramil ISRAFILOV (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: