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 2003/08/10 10:31:51 UTC
DO NOT REPLY [Bug 22277] New: -
SMAP LineInfo entries with an outputStartLine of 0
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=22277>.
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=22277
SMAP LineInfo entries with an outputStartLine of 0
Summary: SMAP LineInfo entries with an outputStartLine of 0
Product: Tomcat 5
Version: Nightly Build
Platform: All
OS/Version: All
Status: NEW
Severity: Blocker
Priority: Other
Component: Jasper2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: ecarmich@alumni.rice.edu
Jasper sometimes generates SMAP LineInfo entries with an outputStartLine of
0. These LineInfo entries are incorrect, and also can cause a fatal error in
SmapStratum.java's optimizeLineSection(), making it impossible for Jasper to
compile the JSP.
Note that the incorrect entries predate optimizeLineSection (they were present
in Tomcat 5.0.4, and possibly earlier), but optimizeLineSection does blow the
problem out of proportion, turning a flawed SMAP into a failed compilation. I
will attach a patch that fixes the blowing-out-of-proportion problem, at
least, in order to make Tomcat more usable until I (or anyone else who wants
to try their hand) can fix the underlying outputStartLine=0 problem. Another
workaround is to set suppressSmap=true.
The problem can be reproduced by compiling xml/xml.jsp from the jsp-examples
webapp that ships with Tomcat 5. The SMAP generated for that JSP is as
follows:
C:\Program Files\jakarta-tomcat-5.0.4
\work\Catalina\localhost\test\org\apache\jsp\xml\xml_jsp.java
JSP
*S JSP
*F
+ 0 xml.jsp
/xml/xml.jsp
*L
8:0
15:0,0
16:0,0
17:0,0
17:47
20:0,0
21:51
22:0,0
24:0,0
24:54
25:56
39:57
42:0,0
43:59
44:60
48:0,0
49:64
49:65
49:66
49:67
49:68
49:69
49:70
*E
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org