You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/03/21 22:11:37 UTC
[Bug 59206] New: When catalina.base is not specified,
ConfigFileLoader throws an NPE in a static initializer
https://bz.apache.org/bugzilla/show_bug.cgi?id=59206
Bug ID: 59206
Summary: When catalina.base is not specified, ConfigFileLoader
throws an NPE in a static initializer
Product: Tomcat 7
Version: 7.0.68
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: asheldon@amazon.com
Using Tomcat 7 as an embedded servlet and updating to Tomcat 7.0.68, we found
our application no longer started due to an ExceptionInInitializerError.
This problem was introduced by the change for
https://bz.apache.org/bugzilla/show_bug.cgi?id=56777, which includes
https://github.com/apache/tomcat70/blob/trunk/java/org/apache/tomcat/util/file/ConfigFileLoader.java.
This file, on line 37, loads the system property "catalina.base" and, when it
is not set, throws a NullPointerException.
It seems like it would be preferable if, when catalina.base is not specified,
to avoid this NPE.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59206] When catalina.base is not specified, ConfigFileLoader
throws an NPE in a static initializer
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59206
Violeta Georgieva <vi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Violeta Georgieva <vi...@apache.org> ---
Hi,
Thanks for the report.
The fix will be available from 9.0.0.M5, 8.5.1, 8.0.34 and 7.0.69 onwards.
Regards,
Violeta
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [Bug 59206] When catalina.base is not specified, ConfigFileLoader
throws an NPE in a static initializer
Posted by Mark Thomas <ma...@apache.org>.
On 21/06/2019 07:44, bugzilla@apache.org wrote:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=59206
>
> --- Comment #3 from Jeff Stark <st...@gmail.com> ---
Another day, another idiot.
Account disabled, spam deleted.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59206] When catalina.base is not specified, ConfigFileLoader
throws an NPE in a static initializer
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59206
--- Comment #3 from Jeff Stark <st...@gmail.com> ---
Are there any new updates to Apache Tomcat 9 (9.0.21)? I cannot open the pdf
file The Challenges Tomcat Faces in High Throughput Production Systems by
Huxing Zhang. Is NPE cause by sendfile? Sources:
https://stackoverflow.com/questions/19856012/nullpointerexception-with-static-variables
https://thetermpapers.net/college-term-papers/ bugs/fixes/tomcat
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59206] When catalina.base is not specified, ConfigFileLoader
throws an NPE in a static initializer
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59206
--- Comment #2 from asheldon@amazon.com ---
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59206] When catalina.base is not specified, ConfigFileLoader
throws an NPE in a static initializer
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59206
asheldon@amazon.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |asheldon@amazon.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org