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 52051] New: NullPointerException when Jasper tries to compile a directory
Date Tue, 18 Oct 2011 19:33:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52051

             Bug #: 52051
           Summary: NullPointerException when Jasper tries to compile a
                    directory
           Product: Tomcat 6
           Version: 6.0.33
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: chris@christopherschultz.net
    Classification: Unclassified


Created attachment 27809
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27809
Sample webapp that demonstrates the problem.

STR:

1. Map JspServlet to /jsp/*
2. Create a directory /jsp/dir
3. Make a request to /jsp/dir

Result:
org.apache.jasper.JasperException: File "/jsp/dir" not found
   
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56)
   
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:410)
   
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117)
    org.apache.jasper.compiler.JspUtil.getInputStream(JspUtil.java:679)
   
org.apache.jasper.xmlparser.XMLEncodingDetector.getEncoding(XMLEncodingDetector.java:109)
   
org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:337)
   
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:190)
   
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:119)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:193)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
   
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Expected: 404 Not Found response

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message