zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Hunt (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ZOOKEEPER-77) NPE in jute toCSVString code
Date Wed, 16 Jul 2008 16:30:31 GMT

    [ 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.


Mime
View raw message