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

NPE in AnonWebUserConnection.cleanupSession()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.12.0
    • 1.12.0
    • None

    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment