You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "maoling (Jira)" <ji...@apache.org> on 2020/06/27 05:58:00 UTC

[jira] [Created] (ZOOKEEPER-3873) ClientCnxnSocketNIO#enableWrite throws NullPointerException

maoling created ZOOKEEPER-3873:
----------------------------------

             Summary: ClientCnxnSocketNIO#enableWrite throws NullPointerException
                 Key: ZOOKEEPER-3873
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3873
             Project: ZooKeeper
          Issue Type: Bug
          Components: java client
            Reporter: maoling
             Fix For: 3.7.0


I also attach the client side logs here
{code:java}
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /bench-watch/12318org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /bench-watch/123182020-06-27 13:42:31,898 [myid:127.0.0.1:2181] - WARN  [pool-1-thread-11-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1278] - Session 0x1001a2fab59004c for sever localhost/127.0.0.1:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.java.lang.NullPointerException at org.apache.zookeeper.ClientCnxnSocketNIO.enableWrite(ClientCnxnSocketNIO.java:377) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:353) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1268) at org.apache.zookeeper.KeeperException.create(KeeperException.java:102) at org.apache.zookeeper.KeeperException.create(KeeperException.java:54) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1856)
{code}
 
{code:java}
2020-06-27 13:51:04,334 [myid:] - ERROR [pool-1-thread-12:ClientCnxn@1590] - Timeout error occurred for the packet 'clientPath:null serverPath:null finished:false header:: 13886,3  replyHeader:: 0,0,0  request:: '/bench-watch/12815,T  response::  '.2020-06-27 13:51:04,334 [myid:] - ERROR [pool-1-thread-12:ClientCnxn@1590] - Timeout error occurred for the packet 'clientPath:null serverPath:null finished:false header:: 13886,3  replyHeader:: 0,0,0  request:: '/bench-watch/12815,T  response::  '.2020-06-27 13:51:04,334 [myid:] - ERROR [pool-1-thread-29:ClientCnxn@1590] - Timeout error occurred for the packet 'clientPath:null serverPath:null finished:false header:: 13395,3  replyHeader:: 0,0,0  request:: '/bench-watch/12331,T  response::  '.2020-06-27 13:51:04,335 [myid:127.0.0.1:2181] - WARN  [pool-1-thread-12-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1278] - Session 0x1001a2fab59003d for sever localhost/127.0.0.1:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.java.nio.channels.CancelledKeyException at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73) at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:77) at org.apache.zookeeper.ClientCnxnSocketNIO.enableWrite(ClientCnxnSocketNIO.java:377) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:353) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1268)2020-06-27 13:51:04,336 [myid:127.0.0.1:2181] - INFO  [pool-1-thread-39-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1159] - Opening socket connection to server localhost/127.0.0.1:2181.2020-06-27 13:51:04,336 [myid:127.0.0.1:2181] - INFO  [pool-1-thread-39-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1161] - SASL config status: Will not attempt to authenticate using SASL (unknown error)2020-06-27 13:51:04,337 [myid:127.0.0.1:2181] - INFO  [pool-1-thread-39-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@993] - Socket connection established, initiating session, client: /127.0.0.1:62205, server: localhost/127.0.0.1:21812020-06-27 13:51:04,339 [myid:127.0.0.1:2181] - INFO  [pool-1-thread-39-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1426] - Session establishment complete on server localhost/127.0.0.1:2181, session id = 0x1001a2fab59005a, negotiated timeout = 40000
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)