Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 64C9DDF99 for ; Thu, 26 Jul 2012 16:27:01 +0000 (UTC) Received: (qmail 30405 invoked by uid 500); 26 Jul 2012 16:27:00 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 30355 invoked by uid 500); 26 Jul 2012 16:27:00 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 30346 invoked by uid 99); 26 Jul 2012 16:27:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 16:27:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 16:26:59 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 80F0B547A; Thu, 26 Jul 2012 16:26:39 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 53606] NullPointerException in TcpPingInterceptor Date: Thu, 26 Jul 2012 16:26:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Cluster X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: frederic.arnoud@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=53606 --- Comment #2 from F.Arnoud --- I used this solution: protected void sendPing() { TcpFailureDetector tcpFailureDetector = failureDetector!=null ? failureDetector.get() : null; if (tcpFailureDetector!=null) { //we have a reference to the failure detector //piggy back on that dude tcpFailureDetector.checkMembers(true); }else { StaticMembershipInterceptor staticMembershipInterceptor = staticOnly && staticMembers!=null ? staticMembers.get() : null; if (staticMembershipInterceptor!=null) { sendPingMessage(staticMembershipInterceptor.getMembers()); } else { sendPingMessage(getMembers()); } } } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org