You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/10/18 21:33:51 UTC

DO NOT REPLY [Bug 52051] New: NullPointerException when Jasper tries to compile a directory

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


DO NOT REPLY [Bug 52051] NullPointerException when Jasper tries to compile a directory

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52051

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Jasper                      |Jasper
            Version|6.0.33                      |trunk
            Product|Tomcat 6                    |Tomcat 7
   Target Milestone|default                     |---
         OS/Version|                            |All

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> 2011-10-18 19:35:20 UTC ---
Stack trace is from Tomcat 7: changing product.

-- 
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


DO NOT REPLY [Bug 52051] NullPointerException when Jasper tries to compile a directory

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52051

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> 2011-10-19 15:17:39 UTC ---
Fixed in trunk (8.0.x) and 7.0.x and will be included in 7.0.23 onwards.

-- 
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