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=15164>. 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=15164 NullPointerException when JDBCRealm not configured properly Summary: NullPointerException when JDBCRealm not configured properly Product: Tomcat 4 Version: 4.0.6 Final Platform: All OS/Version: Linux Status: NEW Severity: Minor Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] if you omit the "userCredCol" attribute from the <Realm> tag when using JDBCRealm (for example, if you specify it as "userCredColumn" instead) you end up getting a NullPointerException from JDBCRealm.authenticate (line 389). The misconfiguration does not directly trigger an error. The JDBCRealm issues this SQL query: SELECT null FROM user_table WHERE username_col = ? since this is a valid query, there is no SQLException thrown; but rs.getString (1) returns null instead of the user password column. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>