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 2014/02/22 01:53:11 UTC
[Bug 56177] New: JSPC: NPE at
org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:344)
https://issues.apache.org/bugzilla/show_bug.cgi?id=56177
Bug ID: 56177
Summary: JSPC: NPE at
org.apache.jasper.servlet.JspCServletContext.getResour
ce(JspCServletContext.java:344)
Product: Tomcat 8
Version: 8.0.3
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: ludovic.champenois@gmail.com
When trying to compile a jsp that uses JSTL, I have a NPE in the JSP compiler.
I am attaching a zip that contains a self contained sample showing the bug with
correct dependencies via Maven:
Have Maven installed.
Unzip the bug.zip attached file (there is a JSP and a simple Main calling the
JSPC compiler with the correct flags)
cd bug/jspcBug
mvn install
mvn exec:java -Dexec.mainClass="bug.JSPCBug"
See the NPE:
ava.lang.NullPointerException
at
org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:344)
at
org.apache.jasper.JspCompilationContext.getResource(JspCompilationContext.java:283)
at
org.apache.jasper.JspCompilationContext.getLastModified(JspCompilationContext.java:359)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:138)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:411)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:469)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1455)
at org.apache.jasper.compiler.Parser.parse(Parser.java:139)
at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:229)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:200)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:375)
at org.apache.jasper.JspC.processFile(JspC.java:1205)
at org.apache.jasper.JspC.execute(JspC.java:1356)
at org.apache.jasper.JspC.main(JspC.java:270)
at bug.JSPCBug.main(JSPCBug.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:724)
org.apache.jasper.JasperException: java.lang.NullPointerException
--
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
[Bug 56177] JSPC: NPE at
org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:344)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56177
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Thanks for the report. This has been fixed in 8.0.x and will be included in
8.0.4 onwards.
--
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
[Bug 56177] JSPC: NPE at
org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:344)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56177
--- Comment #1 from ludo <lu...@gmail.com> ---
Created attachment 31345
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31345&action=edit
bug sample
Simple Maven project exposing the NPE. It has 1 Main that calls the jsp
compiler with correct parameters and the jsp.
The pom.xml has all the correct and latest dependencies.
--
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