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

NullPointerException when gauges is set to false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 15.1.0.Dev05
    • None
    • None

      When metrics are enabled with gauges=false and histograms=true, the following NullPointerException is thrown

      Caused by: java.lang.NullPointerException: Cannot invoke "org.infinispan.commons.stat.CounterTracker.increment()" because "this.asyncRequests" is null
      	at org.infinispan.remoting.transport.jgroups.JGroupsMetricsManagerImpl$DestinationMetrics.incrementAsyncRequests(JGroupsMetricsManagerImpl.java:284)
      	at org.infinispan.remoting.transport.jgroups.JGroupsMetricsManagerImpl.recordMessageSent(JGroupsMetricsManagerImpl.java:126)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.lambda$sendCommandToAll$12(JGroupsTransport.java:1332)
      

      Original reported: https://github.com/keycloak/keycloak/discussions/33788

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: