DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31761>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31761 NullPointerException in ActionServlet Summary: NullPointerException in ActionServlet Product: Struts Version: 1.2.4 Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Controller AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If somebody mistypes the name of a struts-config file (or gives the name of a non-existent one) in the web.xml file, a nasty NullPointerException occurs. For example: <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> ... <init-param> <param-name>config/path2</param-name> <param-value>/WEB-INF/strust-config-path2.xml</param-value> </init-param> </servlet> (notice that I purposely added a mispelling in the <param-value>), ActionServlet.parseModuleConfigFile will throw a NullPointerException without much additional information. When you have a billion different config modules (as we do), it can be almost impossible to troubleshoot without stepping into the source code. Propose adding a check to parseModuleConfigFile that will throw a more meaningful exception, including the name of the module whose config file it was unable to find to aid troubleshooting when this situation occurs. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]