From issues-return-53505-archive-asf-public=cust-asf.ponee.io@geode.apache.org Fri Sep 20 20:20:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C2624180608 for ; Fri, 20 Sep 2019 22:20:02 +0200 (CEST) Received: (qmail 49730 invoked by uid 500); 20 Sep 2019 20:20:02 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 49715 invoked by uid 99); 20 Sep 2019 20:20:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2019 20:20:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 29D40E30FF for ; Fri, 20 Sep 2019 20:20:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 316257806CB for ; Fri, 20 Sep 2019 20:20:00 +0000 (UTC) Date: Fri, 20 Sep 2019 20:20:00 +0000 (UTC) From: "Bruce Schuchardt (Jira)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (GEODE-7220) NPE in the logs on reconnect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-7220?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Schuchardt resolved GEODE-7220. ------------------------------------- Fix Version/s: 1.11.0 Resolution: Fixed > NPE in the logs on reconnect > ---------------------------- > > Key: GEODE-7220 > URL: https://issues.apache.org/jira/browse/GEODE-7220 > Project: Geode > Issue Type: Bug > Components: membership > Reporter: Dan Smith > Assignee: Bruce Schuchardt > Priority: Minor > Fix For: 1.11.0 > > Attachments: npe.txt > > Time Spent: 2h 10m > Remaining Estimate: 0h > > We saw a NullPointerException in the logs when a member reconnects, see b= elow. > It looks like it is likely caused by this code in JGroupsMessenger.start(= ), which is setting the receiver to null for a window of time. Because myCh= annel here is the same channel that was created before the reconnect, this = means it may be receiving messages at this time: > {code:java} > myChannel.setReceiver(null); =C2=A0 =C2=A0 =C2=A0 > jgroupsReceiver =3D new JGroupsReceiver(); =C2=A0 =C2=A0 =C2=A0 > myChannel.setReceiver(jgroupsReceiver);=20 > {code} > {noformat} > java.lang.AssertionError: Suspicious strings were written to the log duri= ng this run. > Fix the strings or use IgnoredException.addIgnoredException to ignore. > ----------------------------------------------------------------------- > Found suspect string in log4j at line 2233 > [error 2019/09/19 17:14:01.998 GMT = tid=3D81] JGRP000027: failed passing message up > java.lang.NullPointerException > =09at org.jgroups.JChannel.invokeCallback(JChannel.java:816) > =09at org.jgroups.JChannel.up(JChannel.java:741) > =09at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1030) > =09at org.jgroups.protocols.FRAG2.up(FRAG2.java:165) > =09at org.jgroups.protocols.FlowControl.up(FlowControl.java:390) > =09at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:442) > =09at org.apache.geode.distributed.internal.membership.gms.messenger.Stat= Recorder.up(StatRecorder.java:73) > =09at org.apache.geode.distributed.internal.membership.gms.messenger.Addr= essManager.up(AddressManager.java:72) > =09at org.jgroups.protocols.TP.passMessageUp(TP.java:1658) > =09at org.jgroups.protocols.TP$SingleMessageHandler.run(TP.java:1876) > =09at org.jgroups.util.DirectExecutor.execute(DirectExecutor.java:10) > =09at org.jgroups.protocols.TP.handleSingleMessage(TP.java:1789) > =09at org.jgroups.protocols.TP.receive(TP.java:1714) > =09at org.apache.geode.distributed.internal.membership.gms.messenger.Tran= sport.receive(Transport.java:152) > =09at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:701) > =09at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)