You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/01/04 19:41:00 UTC

[jira] [Resolved] (HADOOP-17449) Jetty 9.4.20 can't generate resourceBase with NPE

     [ https://issues.apache.org/jira/browse/HADOOP-17449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wei-Chiu Chuang resolved HADOOP-17449.
--------------------------------------
    Resolution: Duplicate

Thanks for reporting the issue. Let's use HADOOP-17371 to update the Jetty version.

> Jetty 9.4.20 can't generate resourceBase with NPE
> -------------------------------------------------
>
>                 Key: HADOOP-17449
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17449
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ahmed Hussein
>            Priority: Major
>
> While I was looking into TestDistributedShell logs, I noticed the following {{Warning}}
> {code:bash}
> 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
> {code}
> 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|https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-webapp] like 9.4.35?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org