tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4332] - Compilation from .jsp to .java fail if newline in useBean tag
Date Mon, 22 Oct 2001 13:16:31 GMT
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=4332>.
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=4332

Compilation from .jsp to .java fail if newline in useBean tag





------- Additional Comments From vincent@cautaerts.org  2001-10-22 06:16 -------
Here is the error message output (not very explicit):

org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:558)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
(...)


Compiling by hand with jspc gives the next output:

C:\TEMP\xx>D:\PROGRA~1\APACHE~1.0\bin\jspc x.jsp
Using CLASSPATH: D:\PROGRA~1\APACHE~1.0\classes;D:\PROGRA~1\APACHE~1.0\lib\jaspe
r-runtime.jar;D:\PROGRA~1\APACHE~1.0\lib\naming-factory.jar;D:\PROGRA~1\APACHE~1
.0\jasper\crimson.jar;D:\PROGRA~1\APACHE~1.0\jasper\jasper-compiler.jar;D:\PROGR
A~1\APACHE~1.0\jasper\jaxp.jar;D:\PROGRA~1\APACHE~1.0\common\lib\servlet.jar
2001-10-22 02:57:39 - ERROR-the file '\x.jsp' generated the following general ex
ception: java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.jasper.compiler.JakartaCommentGenerator.generateEndComment
(JakartaCommentGenerator.java:146)
        at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.gen
erate(JspParseEventListener.java:834)
        at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParse
EventListener.java:241)
        at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(Js
pParseEventListener.java:197)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:215)
        at org.apache.jasper.JspC.parseFile(JspC.java:402)
        at org.apache.jasper.JspC.parseFiles(JspC.java:722)
        at org.apache.jasper.JspC.main(JspC.java:737)

Mime
View raw message