You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jinmei Liao (Jira)" <ji...@apache.org> on 2021/12/01 20:59:00 UTC

[jira] [Created] (GEODE-9867) NPE When a connection is terminated after the client already sent in the operation

Jinmei Liao created GEODE-9867:
----------------------------------

             Summary: NPE When a connection is terminated after the client already sent in the operation
                 Key: GEODE-9867
                 URL: https://issues.apache.org/jira/browse/GEODE-9867
             Project: Geode
          Issue Type: Bug
          Components: client/server
            Reporter: Jinmei Liao


The sequence of action is:
 # the client sent in the operation to the server
 # the message dispatcher to the client encountered some error and unregister this client and terminates the connection
 # the other thread continues to use the connection to process the command and we get the NPE:

 

java.lang.NullPointerException
    at org.apache.geode.internal.cache.tier.sockets.ServerConnection.bindSubject(ServerConnection.java:907)
    at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doNormalMessage(ServerConnection.java:867)
    at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doOneMessage(ServerConnection.java:1055)
    at org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1326)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl.lambda$initializeServerConnectionThreadPool$3(AcceptorImpl.java:690)
    at org.apache.geode.logging.internal.executors.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:120)
    at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)