Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6959

NPE if AlertAppender is not defined

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.0, 1.10.0
    • Fix Version/s: 1.9.1, 1.10.0
    • Component/s: logging
    • Labels:
      None

      Description

      NullPointer exception is produced if custom Log4j2.xml is used and AlertAppender is not defined.

       

      01:43:12.760 WARN  [] JGRP000039: 192.168.100.109<v3>:10100: failed to deliver OOB message [dst: 192.168.100.109<v3>:10100, src: 192.168.100.109<v0>:41000 (2 headers), size=208 bytes, flags=OOB|DONT_BUNDLE|NO_FC|SKIP_BARRIER]: java.lang.NullPointerException 
      java.lang.NullPointerException
      	at org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.forceDisconnect(GMSMembershipManager.java:2558) ~[geode-core-1.9.0.jar:?]
      	at org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.forceDisconnect(GMSJoinLeave.java:1093) ~[geode-core-1.9.0.jar:?]
      	at org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.processRemoveRequest(GMSJoinLeave.java:674) ~[geode-core-1.9.0.jar:?]
      	at org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.processMessage(GMSJoinLeave.java:1897) ~[geode-core-1.9.0.jar:?]
      	at org.apache.geode.distributed.internal.membership.gms.messenger.JGroupsMessenger$JGroupsReceiver.receive(JGroupsMessenger.java:1328) ~[geode-core-1.9.0.jar:?]
      	at org.apache.geode.distributed.internal.membership.gms.messenger.JGroupsMessenger$JGroupsReceiver.receive(JGroupsMessenger.java:1266) ~[geode-core-1.9.0.jar:?]
      	at org.jgroups.JChannel.invokeCallback(JChannel.java:816) ~[jgroups-3.6.14.Final.jar:3.6.14.Final]
      	at org.jgroups.JChannel.up(JChannel.java:741) ~[jgroups-3.6.14.Final.jar:3.6.14.Final]
      	at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1030) ~[jgroups-3.6.14.Final.jar:3.6.14.Final]
      

       I would propose to make AlertAppender optional.

       

        Attachments

          Activity

            People

            • Assignee:
              klund Kirk Lund
              Reporter:
              vlotarev Vadim Lotarev
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m