You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Germán Blanco (JIRA)" <ji...@apache.org> on 2013/10/01 13:19:24 UTC

[jira] [Updated] (ZOOKEEPER-1770) NullPointerException in SnapshotFormatter

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Germán Blanco updated ZOOKEEPER-1770:
-------------------------------------

    Attachment: ZOOKEEPER-1770.patch
                snapshot.273

The patch is now updated with a test case.
Could anybody please help me to upload the binary file?

> NullPointerException in SnapshotFormatter
> -----------------------------------------
>
>                 Key: ZOOKEEPER-1770
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1770
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.4.5
>         Environment: Windos, Java 1.7
>            Reporter: Germán Blanco
>            Assignee: Germán Blanco
>            Priority: Minor
>             Fix For: 3.4.6, 3.5.0
>
>         Attachments: snapshot.273, ZOOKEEPER-1770.patch, ZOOKEEPER-1770.patch
>
>
> SnapshotFormatter fails with a NullPointerException when parsing one snapshot (with "null" data in one Znode):
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:90)
>         at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:95)
>         at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:95)
>         at org.apache.zookeeper.server.SnapshotFormatter.printZnode(SnapshotFormatter.java:95)
>         at org.apache.zookeeper.server.SnapshotFormatter.printZnodeDetails(SnapshotFormatter.java:79)
>         at org.apache.zookeeper.server.SnapshotFormatter.printDetails(SnapshotFormatter.java:71)
>         at org.apache.zookeeper.server.SnapshotFormatter.run(SnapshotFormatter.java:67)
>         at org.apache.zookeeper.server.SnapshotFormatter.main(SnapshotFormatter.java:51)



--
This message was sent by Atlassian JIRA
(v6.1#6144)