tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: WebappClassLoader#getResources returns enumeration with null element
Date Mon, 03 Mar 2014 08:54:32 GMT
On 03/03/2014 08:23, Mark Thomas wrote:
> On 03/03/2014 08:06, Lukasz Lenart wrote:
>> Hi,
>>
>> We just were informed about bug in Apache Struts [1] but it looks like
>> a bug in Tomcat 8. The PackageBasedActionConfigBuilder class uses
>> class loader to fetch all the URLs where application's classes are
>> stored, but right now the resulting enumeration contains also null
>> element. The same code works with no problems on Tomcat 7.
>>
>> If I add if(url != null) (see [2]) everything works as expected (but I
>> must apply this ugly fix in few other places as well).
> 
> Including null in that enumeration doesn't look right but I do wonder
> (without having looked at the code) how it got there. I'll take a look.

When I looked at the stack trace, I thought it looked familiar:

https://issues.apache.org/bugzilla/show_bug.cgi?id=56125

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message