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 2001/12/30 14:58:00 UTC
DO NOT REPLY [Bug 5628] New: -
getServletConfig() returns null
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5628>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5628
getServletConfig() returns null
Summary: getServletConfig() returns null
Product: Tomcat 4
Version: 4.0 Beta 1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: asaf@telmap.com
Trying to get an init parameter from the servlet failed with NullPointerException
while doing getServletConfig().getInitParameter("whatever"), while doing the
same on the ServletConfig object passed to the servlet's init(ServletConfig
config) method works just fine.
After investigating the issue further I found out that getServletConfig() always
returns null not only in the init() stage but even later while in doGet().
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>