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=28695>. 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=28695 Jasper as Ant Task throws NullPointerException on compile error Summary: Jasper as Ant Task throws NullPointerException on compile error Product: Tomcat 4 Version: 4.1.30 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If Jasper is used as an Ant task to precompile JSPs, and the compile attribute is set to false (the default), then generateJava() is called on the Compiler class rather than compile() (which subsequently invokes generateJava). However, generateJava never initializes errDispatcher in the Compiler class, so if any problems are encountered compiling a JSP page, instead of seeing a useful error message, NullPointerException is thrown. My fix for this was to add the following code: if (errDispatcher == null) { this.errDispatcher = new ErrorDispatcher(); } At the very beginning of Compiler.generateJava() --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]