tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15758] New: - When the login authentication is null, Tomcat bombs out with a NullPointerException
Date Thu, 02 Jan 2003 10:40:14 GMT
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=15758>.
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=15758

When the login authentication is null, Tomcat bombs out with a NullPointerException

           Summary: When the login authentication is null, Tomcat bombs out
                    with a NullPointerException
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: phil.rice@iee.org


The line of code that goes wrong is:
authenticatorName =  authenticators.getString(loginConfig.getAuthMethod());

The error reported is
java.lang.NullPointerException
	at java.util.PropertyResourceBundle.handleGetObject
(PropertyResourceBundle.java:103)
	at java.util.ResourceBundle.getObject(ResourceBundle.java:308)
	at java.util.ResourceBundle.getString(ResourceBundle.java:274)
	at org.apache.catalina.startup.ContextConfig.authenticatorConfig
(ContextConfig.java:365)
	at org.apache.catalina.startup.ContextConfig.start
(ContextConfig.java:661)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent
(ContextConfig.java:243)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:166)
...

The relevant (I think) bit of web.xml is
  <login-config>
    <form-login-config>
      <form-login-page>/Login/Login.jsp</form-login-page>
      <form-error-page>/Login/FailedLogin.jsp</form-error-page>
    </form-login-config>
  </login-config>

This is my first bug report to the Jakarta project, so any feedback on what you 
expect would be appreciated

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message