You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/10/09 04:25:49 UTC
DO NOT REPLY [Bug 13433] New: -
PS rendering crashes with a run-time exception, "No such method"
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=13433>.
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=13433
PS rendering crashes with a run-time exception, "No such method"
Summary: PS rendering crashes with a run-time exception, "No such
method"
Product: Fop
Version: 0.20.4
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: general
AssignedTo: fop-dev@xml.apache.org
ReportedBy: PeekGM@az1.BP.com
The problem occurs after editing build.XML to set debug="on" and rebuilding FOP
with Ant and JDK1.4. (I required debug on to step into the program using
Jbuilder6.)
FOP then crashes with a run-time exception, "No such method" when rendering an
fo file to PostScript. The crash occurs in the file PSRenderer.java at line 697:
psString = (new StringBuffer("(").append(sb).append(") t")).toString();
where sb is a previously defined StringBuffer.
Changing this to:
psString = (new StringBuffer("(").append(sb.toString()).append(") t")).toString
();
fixes the problem.
Note that Java does not have a method StringBuffer.append(StringBuffer)
There is .append(object) which is why the program compiles but this results
in .append(object.valueOf()) rather than .toString().
What I don't understand is why it crashes with debugging on but not when debug
is off? I have rebuilt and run FOP several times with debugging on and off but
always get the same result; maybe there is some optimization not present in
debugging version.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org