Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5874

NPE in AnonWebUserConnection.cleanupSession()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:

      Description

      When debugging another issue, I tried to use the Web UI to run the example query:

      SELECT * FROM cp.`employee.json` LIMIT 20
      

      The query failed with this error:

      Query Failed: An Error Occurred
      java.lang.NullPointerException
      

      No stack trace was provided in the log, even at DEBUG level.

      Debugging, the problem appears to be deep inside AnonWebUserConnection.cleanupSession():

      package io.netty.channel;
      
      public class DefaultChannelPromise ...
          protected EventExecutor executor() {
              EventExecutor e = super.executor();
              if (e == null) {
                  return channel().eventLoop();
              } else {
                  return e;
              }
          }
      

      In the above, channel() is null. the channel field is also null.

      This may indicate that some part of the Web UI was not set up correctly. This is a recent change, as this code worked several days ago.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shamirwasia Sorabh Hamirwasia
                Reporter:
                Paul.Rogers Paul Rogers
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: