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 3822] New: - Drive letter causes a NumberFormatException when JSP compiler parses errors
Date Tue, 25 Sep 2001 19:14:38 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=3822>.
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=3822

Drive letter causes a NumberFormatException when JSP compiler parses errors

           Summary: Drive letter causes a NumberFormatException when JSP
                    compiler parses errors
           Product: Tomcat 4
           Version: 4.0 Release Candidate 2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: cgreco@cisco.com


Got the following error on Win2K but not on Linux.  It appears that the Jasper 
compiler misinterprets the driver letter (e.g., "D") for the line number of an 
error message.  Line 314 of org.apache.jasper.compiler.Compiler tries to 
identify a drive letter on Windows platforms by the existence of two colons in 
the error message, but there's no conditional to compensate for the extra colon 
when present.


----- Root Cause -----
java.lang.NumberFormatException:  D
        at java.lang.Integer.parseInt(Integer.java:405)
        at java.lang.Integer.parseInt(Integer.java:454)
        at org.apache.jasper.compiler.Compiler.getJspLineErrors(Unknown Source)
        at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
        at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessar
y(Unknown Source)
        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknow
n Source)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
        at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(Unknown Sour
ce)
        at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source
)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source)
        at org.apache.jsp.login$jsp._jspService(login$jsp.java:70)
        at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknow
n Source)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
        at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Sour
ce)
        at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source
)
        at LoginServlet.doGet(LoginServlet.java:31)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unkn
own Source)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Sour
ce)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown So
urce)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
        at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
ce)
        at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:484)

Mime
View raw message