Return-Path: X-Original-To: apmail-zookeeper-dev-archive@www.apache.org Delivered-To: apmail-zookeeper-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 B85635CC9 for ; Thu, 12 May 2011 19:00:27 +0000 (UTC) Received: (qmail 58847 invoked by uid 500); 12 May 2011 19:00:27 -0000 Delivered-To: apmail-zookeeper-dev-archive@zookeeper.apache.org Received: (qmail 58831 invoked by uid 500); 12 May 2011 19:00:27 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 58823 invoked by uid 99); 12 May 2011 19:00:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 19:00:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 19:00:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A83D787AFC for ; Thu, 12 May 2011 18:59:47 +0000 (UTC) Date: Thu, 12 May 2011 18:59:47 +0000 (UTC) From: "Mahadev konar (JIRA)" To: dev@zookeeper.apache.org Message-ID: <437904201.7736.1305226787685.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <694484951.21366.1304506323121.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (ZOOKEEPER-1059) stat command isses on non-existing node causes NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032584#comment-13032584 ] Mahadev konar commented on ZOOKEEPER-1059: ------------------------------------------ bhallamudi, Would you mind putting up a patch for it? > stat command isses on non-existing node causes NPE > --------------------------------------------------- > > Key: ZOOKEEPER-1059 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1059 > Project: ZooKeeper > Issue Type: Bug > Components: java client > Reporter: Bhallamudi Venkata Siva Kamesh > Fix For: 3.4.0 > > > *stat* command issues on non existing zookeeper node,causes NPE to the client. > {noformat} > [zk: localhost:2181(CONNECTED) 2] stat /invalidPath > Exception in thread "main" java.lang.NullPointerException > at org.apache.zookeeper.ZooKeeperMain.printStat(ZooKeeperMain.java:131) > at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:723) > at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582) > at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354) > at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312) > at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271) > {noformat} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira