Bug 25413

Summary: ClassCastException thrown from ..$SVGHandler.renderSVGDocument
Product: Fop - Now in Jira Reporter: John Wm Austin <john>
Component: pdfAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Log of program messages including exception stack trace.

Description John Wm Austin 2003-12-10 17:14:54 UTC
The following exception and stack trace are produced by the command:

java -Xms100m -Xmx200m -cp
.:build/fop.jar:lib/avalon-framework-4.1.4.jar:lib/batik.jar:lib/commons-io-dev-20030703.jar
org.apache.fop.apps.Fop -fo test/resources/fop/svg/images.fo -pdf /tmp/12654.pdf

which executes command-line FOP on file: test/resources/fop/svg/images.fo

Messages include: 

[ERROR] svg graphic could not be built: null
java.lang.ClassCastException
        at org.apache.batik.bridge.BridgeContext.initializeDocument(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
        at
org.apache.fop.render.pdf.PDFXMLHandler$SVGHandler.renderSVGDocument(PDFXMLHandler.java:271)
        at org.apache.fop.render.pdf.PDFXMLHandler.handleXML(PDFXMLHandler.java:177)

<snip/>
Comment 1 John Wm Austin 2003-12-10 17:25:57 UTC
Created attachment 9500 [details]
Log of program messages including exception stack trace.
Comment 2 Pascal Sancho 2007-11-20 01:14:00 UTC
Fixed in FOP 0.94 and probably earlier versions
Comment 3 Glenn Adams 2012-04-01 06:28:07 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed