Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17449

Jetty 9.4.20 can't generate resourceBase with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      While I was looking into TestDistributedShell logs, I noticed the following Warning

      2020-12-29 16:22:26,379 INFO  [Time-limited test] handler.ContextHandler (ContextHandler.java:doStart(824)) - Started o.e.j.s.ServletContextHandler@75389179{logs,/logs,file:///hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/target/log,AVAILABLE}
      2020-12-29 16:22:26,380 INFO  [Time-limited test] handler.ContextHandler (ContextHandler.java:doStart(824)) - Started o.e.j.s.ServletContextHandler@116ed75c{static,/static,jar:file:~/.m2/repository/org/apache/hadoop/hadoop-yarn-common/3.4.0-SNAPSHOT/hadoop-yarn-common-3.4.0-SNAPSHOT.jar!/webapps/static,AVAILABLE}
      2020-12-29 16:22:26,390 WARN  [Time-limited test] webapp.WebInfConfiguration (WebInfConfiguration.java:getCanonicalNameForWebAppTmpDir(794)) - Can't generate resourceBase as part of webapp tmp dir name: java.lang.NullPointerException
      2020-12-29 16:22:26,469 INFO  [Time-limited test] util.TypeUtil (TypeUtil.java:<clinit>(201)) - JVM Runtime does not support Modules
      

      For OS X, it looks like webAppContext.setBaseResource and accessing the sources from a jar file will cause file.resource.toURI().getPath() to return null for jar:-urls

      I checked that changing the jetty-version from 9.4.20.v20190813 to something above 9.4.21 (aka., 9.4.23.v20191118) fixes the warning.

      inigoiri, aajisaka, weichiu, ayushtkn
      Do you guys think we should consider upgrading Jetty to the latest versions of 9.4.x like 9.4.35?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ahussein Ahmed Hussein
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: