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

NullPointerException in JGroupsTransport when metrics are not available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 13.0.9.Final, 14.0.0.Final
    • 13.0.7.Final
    • None
    • None

      When SmallRye is not in the classpath, MetricsCollector is null and a NullPointerException is thrown by JGroupsTransport when it tries to register the metrics from JChannel.

      2022-03-17T06:52:03,262 ERROR [main] org.jgroups.JChannel           - JGRP000016: Fehler im channelConnected Callback: java.lang.NullPointerException java.lang.NullPointerException
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.lambda$channelConnected$9(JGroupsTransport.java:1512)
      	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1134)
      	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.channelConnected(JGroupsTransport.java:1508)
      	at org.jgroups.JChannel.lambda$notifyChannelConnected$1(JChannel.java:1104)
      	at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
      	at java.base/java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:425)
      	at org.jgroups.JChannel.notifyListeners(JChannel.java:1118)
      	at org.jgroups.JChannel.notifyChannelConnected(JChannel.java:1104)
      	at org.jgroups.JChannel.connect(JChannel.java:363)
      	at org.jgroups.JChannel.connect(JChannel.java:352)
      

              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: