Bug report #818 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/818>

REPORT #818 Details.

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: suggest
State: received
Priority: medium
Severity: critical
Confidence: public
Environment: 
   Release: Tomcat 4.0
   JVM Release: 1.3
   Operating System: NT
   OS Release: 2000
   Platform: i386

Synopsis: 
JSPC Empty stack exeption

Description:
I was trying to use JSP command line compiler in
tomcat 4.0. Got the following error

D:\projects\jsp\tomcat40>bin\jspc snoop.jsp
2001-01-22 02:23:48 - ERROR-the file 'projects\jsp\tomcat40\snoop.jsp' generated
 the following general exception: java.util.EmptyStackException
D:\projects\jsp\tomcat40>

I'm not sure is it already fixed or not  but i tried
to debug it and it comes down to  this method

 private String resolveFileName(String inFileName) {
        boolean isAbsolute =
inFileName.startsWith("/");
 String fileName = 
     isAbsolute ?
     inFileName : (String)baseDirStack.peek() +
inFileName;
 String baseDir = 
     inFileName.substring(0,
inFileName.lastIndexOf("/") + 1);
 baseDirStack.push(baseDir);
 return fileName;
    }

in this class                     
public class ParserController { }

Initally stack is empty. I didn't spend much time to
figure out what is the problem , but i think
It should be either checked for be empty or something
like this should go first during initialization
String baseDir =     inFileName.substring(0,
inFileName.lastIndexOf("/") + 1);
baseDirStack.push(baseDir);

Title: BugRat Report # 818

BugRat Report # 818

Project: Jasper Release: Tomcat 4.0
Category: Bug Report SubCategory: New Bug Report
Class: suggest State: received
Priority: medium Severity: critical
Confidence: public

Submitter: Alexey Volovoy ( [EMAIL PROTECTED] )
Date Submitted: Jan 22 2001, 02:23:48 CST
Responsible: Z_Tomcat Alias ( [EMAIL PROTECTED] )

Synopsis:
JSPC Empty stack exeption
Environment: (jvm, os, osrel, platform)
1.3, NT, 2000, i386

Additional Environment Description:

Report Description:
I was trying to use JSP command line compiler in tomcat 4.0. Got the following error D:\projects\jsp\tomcat40>bin\jspc snoop.jsp 2001-01-22 02:23:48 - ERROR-the file 'projects\jsp\tomcat40\snoop.jsp' generated the following general exception: java.util.EmptyStackException D:\projects\jsp\tomcat40> I'm not sure is it already fixed or not but i tried to debug it and it comes down to this method private String resolveFileName(String inFileName) { boolean isAbsolute = inFileName.startsWith("/"); String fileName = isAbsolute ? inFileName : (String)baseDirStack.peek() + inFileName; String baseDir = inFileName.substring(0, inFileName.lastIndexOf("/") + 1); baseDirStack.push(baseDir); return fileName; } in this class public class ParserController { } Initally stack is empty. I didn't spend much time to figure out what is the problem , but i think It should be either checked for be empty or something like this should go first during initialization String baseDir = inFileName.substring(0, inFileName.lastIndexOf("/") + 1); baseDirStack.push(baseDir);

How To Reproduce:
null

View this report online...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to