Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9867

NPE When a connection is terminated after the client already sent in the operation

    XMLWordPrintableJSON

Details

    Description

      The sequence of action is:

      1. the client sent in the operation to the server
      2. the message dispatcher to the client encountered some error and unregister this client and terminates the connection
      3. 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)

      Attachments

        Issue Links

          Activity

            People

              jinmeiliao Jinmei Liao
              jinmeiliao Jinmei Liao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: