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=37483>. 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=37483 Summary: NPE in JspDocumentParser when processing characters in a tag file Product: Tomcat 5 Version: Nightly Build Platform: Macintosh OS/Version: Mac OS X 10.4 Status: NEW Severity: major Priority: P2 Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Compilation of the following JSP document: ----------------------- test1.jspx: <tags:bomb xmlns:tags="urn:jsptagdir:/WEB-INF/tags"/> WEB-INF/tags/tag1.tagx: <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p>Tag1</p></body></ html> ----------------------- causes an exception: (though it is JasperException in the log file) java.lang.NullPointerException at org.apache.jasper.compiler.JspDocumentParser.processChars(JspDocumentParser.java:507) at org.apache.jasper.compiler.JspDocumentParser.endElement(JspDocumentParser.java:608) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement (AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement (XMLNSDocumentScannerImpl.java:719) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) ... If I add the following code, it seems working well. JspDocumentParser: private void processChars() throws SAXException { if (charBuffer == null) { return; } if (directivesOnly) { // return; // Add these lines. } // -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]