You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Wing Yew Poon (Commented) (JIRA)" <ji...@apache.org> on 2012/03/27 02:09:29 UTC
[jira] [Commented] (ZOOKEEPER-1434) zkCli crashes with NPE on stat
of non-existent path
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239033#comment-13239033 ]
Wing Yew Poon commented on ZOOKEEPER-1434:
------------------------------------------
In contrast, in 3.4.3, I get
{noformat}
[zk: c0405(CONNECTED) 3] stat /foobar
Node does not exist: /foobar
{noformat}
> zkCli crashes with NPE on stat of non-existent path
> ---------------------------------------------------
>
> Key: ZOOKEEPER-1434
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1434
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.3.5
> Reporter: Wing Yew Poon
>
> In the command line client (zkCli.sh), when I do
> {noformat}
> stat /non-existent
> {noformat}
> the client crashes with
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.zookeeper.ZooKeeperMain.printStat(ZooKeeperMain.java:130)
> at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:722)
> at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:581)
> at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:353)
> at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:311)
> at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:270)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira