[ https://issues.apache.org/jira/browse/ZOOKEEPER-1875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14020879#comment-14020879 ]
Hadoop QA commented on ZOOKEEPER-1875: -------------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12648821/ZOOKEEPER-1875.patch against trunk revision 1600481. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2123//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2123//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2123//console This message is automatically generated. > NullPointerException in ClientCnxn$EventThread.processEvent > ----------------------------------------------------------- > > Key: ZOOKEEPER-1875 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1875 > Project: ZooKeeper > Issue Type: Bug > Components: java client > Affects Versions: 3.4.5 > Reporter: Jerry He > Assignee: Jerry He > Priority: Minor > Fix For: 3.5.0 > > Attachments: ZOOKEEPER-1875-trunk.patch, ZOOKEEPER-1875.patch, > ZOOKEEPER-1875.patch > > > We've been seeing NullPointerException while working on HBase: > {code} > 14/01/30 22:15:25 INFO zookeeper.ZooKeeper: Client > environment:user.dir=/home/biadmin/hbase-trunk > 14/01/30 22:15:25 INFO zookeeper.ZooKeeper: Initiating client connection, > connectString=hdtest009:2181 sessionTimeout=90000 watcher=null > 14/01/30 22:15:25 INFO zookeeper.ClientCnxn: Opening socket connection to > server hdtest009/9.30.194.18:2181. Will not attempt to authenticate using > SASL (Unable to locate a login configuration) > 14/01/30 22:15:25 INFO zookeeper.ClientCnxn: Socket connection established to > hdtest009/9.30.194.18:2181, initiating session > 14/01/30 22:15:25 INFO zookeeper.ClientCnxn: Session establishment complete > on server hdtest009/9.30.194.18:2181, sessionid = 0x143986213e67e48, > negotiated timeout = 60000 > 14/01/30 22:15:25 ERROR zookeeper.ClientCnxn: Error while calling watcher > java.lang.NullPointerException > at > org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:519) > at > org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:495) > {code} > The reason is the watcher is null in this part of the code: > {code} > private void processEvent(Object event) { > try { > if (event instanceof WatcherSetEventPair) { > // each watcher will process the event > WatcherSetEventPair pair = (WatcherSetEventPair) event; > for (Watcher watcher : pair.watchers) { > try { > watcher.process(pair.event); > } catch (Throwable t) { > LOG.error("Error while calling watcher ", t); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)