Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 35905 invoked from network); 5 Jul 2010 19:38:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 19:38:46 -0000 Received: (qmail 63241 invoked by uid 500); 5 Jul 2010 19:38:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 63137 invoked by uid 500); 5 Jul 2010 19:38:45 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 63128 invoked by uid 99); 5 Jul 2010 19:38:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 19:38:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 19:38:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o65JUpxC009749 for ; Mon, 5 Jul 2010 19:30:51 GMT Message-ID: <17305841.205501278358251605.JavaMail.jira@thor> Date: Mon, 5 Jul 2010 15:30:51 -0400 (EDT) From: "Jonathan Gray (JIRA)" To: issues@hbase.apache.org Subject: [jira] Reopened: (HBASE-2806) DNS hiccups cause uncaught NPE in HServerAddress#getBindAddress In-Reply-To: <25590486.138871277923369994.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Gray reopened HBASE-2806: ---------------------------------- Trunk doesn't compile after this got committed > DNS hiccups cause uncaught NPE in HServerAddress#getBindAddress > --------------------------------------------------------------- > > Key: HBASE-2806 > URL: https://issues.apache.org/jira/browse/HBASE-2806 > Project: HBase > Issue Type: Bug > Reporter: Benoit Sigoure > Assignee: Benoit Sigoure > Priority: Minor > Fix For: 0.21.0 > > Attachments: 0001-HBASE-2806-Log-a-proper-error-message-and-don-t-NPE-.patch > > > Yesterday at the Hadoop Summit, the "HADOOP" wireless network was using a pair of DNS servers that couldn't resolve {{localhost.}}. This prevented me from starting HBase as the construction of the {{HMaster}} was failing with the following rather cryptic error: > {code} > 2010-06-29 14:30:24,603 ERROR org.apache.hadoop.hbase.master.HMaster: Failed to start master > java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster$LocalHMasternull > at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1217) > at org.apache.hadoop.hbase.LocalHBaseCluster.(LocalHBaseCluster.java:112) > at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1298) > at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1355) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1215) > ... 3 more > Caused by: java.lang.NullPointerException > at org.apache.hadoop.hbase.HServerAddress.getBindAddress(HServerAddress.java:89) > at org.apache.hadoop.hbase.master.HMaster.(HMaster.java:204) > at org.apache.hadoop.hbase.master.HMaster$LocalHMaster.(HMaster.java:1230) > ... 8 more > {code} > The {{NullPointerException}} in {{getBindAddress}} comes from the following line of code: > {code:java} > return this.address.getAddress().getHostAddress(); > {code} > where {{getAddress()}} was returning {{null}}. > I think the code should check for this case, log an appropriate error message (to point whoever is going to troubleshoot the problem in the right direction), and throw something else than an NPE. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.