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 16698] New: - JsPC command occurs NullPointerException without -d option
Date Mon, 03 Feb 2003 12:13:03 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=16698>.
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=16698

JsPC command occurs NullPointerException without -d option

           Summary: JsPC command occurs NullPointerException without -d
                    option
           Product: Tomcat 4
           Version: 4.1.19
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kare@highway.ne.jp


JsPC command occurs following NullPointerException without -d option:

> jspc.bat numguess.jsp
2003-02-03 08:56:11 - ERROR-the file '\jsp\num\numguess.jsp' generated the follo
wing general exception: java.lang.NullPointerException
error:null

I think the cause of this problem is just typo, below patch fixes it:

--- JspC.java.orig	2003-01-15 17:56:40.000000000 +0900
+++ JspC.java	2003-02-03 19:11:10.000000000 +0900
@@ -383,7 +383,7 @@
     void setupContext(JspCompilationContext clctxt) {
         // set up a scratch/output dir if none is provided
         if (scratchDir == null) {
-            String temp = System.getProperty("java.io.tempdir");
+            String temp = System.getProperty("java.io.tmpdir");
             if (temp == null) {
                 temp = "";
             }

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


Mime
View raw message