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 2003/01/02 11:40:14 UTC

DO NOT REPLY [Bug 15758] New: - When the login authentication is null, Tomcat bombs out with a NullPointerException

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>