You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2008/07/16 18:22:31 UTC
[jira] Created: (ZOOKEEPER-77) NPE in jute toCSVString code
NPE in jute toCSVString code
----------------------------
Key: ZOOKEEPER-77
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-77
Project: Zookeeper
Issue Type: Bug
Components: jute
Reporter: Patrick Hunt
Assignee: Patrick Hunt
Fix For: 3.0.0
As reported by user:
From: Martin Schaaf <ms...@101tec.com>
List-Id: <zookeeper-user.lists.sourceforge.net>
FYI today I found this NPE in the logs. After this Exception an Error
event was thrown.
java.lang.NullPointerException
at com.yahoo.jute.Utils.toCSVString(Utils.java:128)
at com.yahoo.jute.CsvOutputArchive.writeString(CsvOutputArchive.java:
95)
at com.yahoo.zookeeper.proto.WatcherEvent.toString(WatcherEvent.java:
60)
at net.sf.katta.zk.ZKClient.process(ZKClient.java:404)
at com.yahoo.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:264)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-77) NPE in jute toCSVString code
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-77:
----------------------------------
Fix Version/s: (was: 3.0.0)
Assignee: (was: Benjamin Reed)
> NPE in jute toCSVString code
> ----------------------------
>
> Key: ZOOKEEPER-77
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-77
> Project: Zookeeper
> Issue Type: Bug
> Components: jute
> Reporter: Patrick Hunt
>
> As reported by user:
> From: Martin Schaaf <ms...@101tec.com>
> List-Id: <zookeeper-user.lists.sourceforge.net>
> FYI today I found this NPE in the logs. After this Exception an Error
> event was thrown.
> java.lang.NullPointerException
> at com.yahoo.jute.Utils.toCSVString(Utils.java:128)
> at com.yahoo.jute.CsvOutputArchive.writeString(CsvOutputArchive.java:
> 95)
> at com.yahoo.zookeeper.proto.WatcherEvent.toString(WatcherEvent.java:
> 60)
> at net.sf.katta.zk.ZKClient.process(ZKClient.java:404)
> at com.yahoo.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:264)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ZOOKEEPER-77) NPE in jute toCSVString code
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt reassigned ZOOKEEPER-77:
-------------------------------------
Assignee: Benjamin Reed (was: Patrick Hunt)
Assigning to Ben as this seems related to ZOOKEEPER-16
> NPE in jute toCSVString code
> ----------------------------
>
> Key: ZOOKEEPER-77
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-77
> Project: Zookeeper
> Issue Type: Bug
> Components: jute
> Reporter: Patrick Hunt
> Assignee: Benjamin Reed
> Fix For: 3.0.0
>
>
> As reported by user:
> From: Martin Schaaf <ms...@101tec.com>
> List-Id: <zookeeper-user.lists.sourceforge.net>
> FYI today I found this NPE in the logs. After this Exception an Error
> event was thrown.
> java.lang.NullPointerException
> at com.yahoo.jute.Utils.toCSVString(Utils.java:128)
> at com.yahoo.jute.CsvOutputArchive.writeString(CsvOutputArchive.java:
> 95)
> at com.yahoo.zookeeper.proto.WatcherEvent.toString(WatcherEvent.java:
> 60)
> at net.sf.katta.zk.ZKClient.process(ZKClient.java:404)
> at com.yahoo.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:264)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-77) NPE in jute toCSVString code
Posted by "Martin Schaaf (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615891#action_12615891 ]
Martin Schaaf commented on ZOOKEEPER-77:
----------------------------------------
I can confirm that the reason is a null path. if I set the path to a default string in case it is null the NPE is gone.
> NPE in jute toCSVString code
> ----------------------------
>
> Key: ZOOKEEPER-77
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-77
> Project: Zookeeper
> Issue Type: Bug
> Components: jute
> Reporter: Patrick Hunt
> Assignee: Benjamin Reed
> Fix For: 3.0.0
>
>
> As reported by user:
> From: Martin Schaaf <ms...@101tec.com>
> List-Id: <zookeeper-user.lists.sourceforge.net>
> FYI today I found this NPE in the logs. After this Exception an Error
> event was thrown.
> java.lang.NullPointerException
> at com.yahoo.jute.Utils.toCSVString(Utils.java:128)
> at com.yahoo.jute.CsvOutputArchive.writeString(CsvOutputArchive.java:
> 95)
> at com.yahoo.zookeeper.proto.WatcherEvent.toString(WatcherEvent.java:
> 60)
> at net.sf.katta.zk.ZKClient.process(ZKClient.java:404)
> at com.yahoo.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:264)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ZOOKEEPER-77) NPE in jute toCSVString code
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt resolved ZOOKEEPER-77.
-----------------------------------
Resolution: Duplicate
Dup of ZOOKEEPER-16 - I've updated 16 to make sure that as part of path checking we verify that the path is non-null.
> NPE in jute toCSVString code
> ----------------------------
>
> Key: ZOOKEEPER-77
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-77
> Project: Zookeeper
> Issue Type: Bug
> Components: jute
> Reporter: Patrick Hunt
>
> As reported by user:
> From: Martin Schaaf <ms...@101tec.com>
> List-Id: <zookeeper-user.lists.sourceforge.net>
> FYI today I found this NPE in the logs. After this Exception an Error
> event was thrown.
> java.lang.NullPointerException
> at com.yahoo.jute.Utils.toCSVString(Utils.java:128)
> at com.yahoo.jute.CsvOutputArchive.writeString(CsvOutputArchive.java:
> 95)
> at com.yahoo.zookeeper.proto.WatcherEvent.toString(WatcherEvent.java:
> 60)
> at net.sf.katta.zk.ZKClient.process(ZKClient.java:404)
> at com.yahoo.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:264)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ZOOKEEPER-77) NPE in jute toCSVString code
Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614007#action_12614007 ]
Patrick Hunt commented on ZOOKEEPER-77:
---------------------------------------
According to the stack trace the line causing the problem is:
a_.writeString(path,"path");
in watcher event.
Should it ever be the case that the path can be null?
We should look at the static code analysis output to see if this is flagged.
> NPE in jute toCSVString code
> ----------------------------
>
> Key: ZOOKEEPER-77
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-77
> Project: Zookeeper
> Issue Type: Bug
> Components: jute
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Fix For: 3.0.0
>
>
> As reported by user:
> From: Martin Schaaf <ms...@101tec.com>
> List-Id: <zookeeper-user.lists.sourceforge.net>
> FYI today I found this NPE in the logs. After this Exception an Error
> event was thrown.
> java.lang.NullPointerException
> at com.yahoo.jute.Utils.toCSVString(Utils.java:128)
> at com.yahoo.jute.CsvOutputArchive.writeString(CsvOutputArchive.java:
> 95)
> at com.yahoo.zookeeper.proto.WatcherEvent.toString(WatcherEvent.java:
> 60)
> at net.sf.katta.zk.ZKClient.process(ZKClient.java:404)
> at com.yahoo.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:264)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.