Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3873

ClientCnxnSocketNIO#enableWrite throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • java client
    • None

    Description

      I also attach the client side logs here

      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)
      

       

      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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            maoling Ling Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: