Bug 31467 - svg crashes FOP on OPENBSD - method isReadOnly()Z
Summary: svg crashes FOP on OPENBSD - method isReadOnly()Z
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: svg (show other bugs)
Version: 0.20.5
Hardware: PC other
: P3 major
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-29 15:46 UTC by Judy Cai
Modified: 2012-04-01 13:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Judy Cai 2004-09-29 15:46:58 UTC
I used FOP to generate PDF. It worked fine on my Window NT (JDK1.4.1). But 
after I move to OPENBSD (JDK1.3.1), It throws method isReadOnly()Z exception. 
The Xerces and Batik I used are in the FOP-0.20.5 package. I found in the 
forums, they have the similar problem with me on FREEBSD 
http://www.mail-archive.com/batik-users@xml.apache.org/msg04928.html.



<fo:block><fo:external-graphic src="url(logo.svg)" /></fo:block>

OS: OPENBSD
JAVA is 2 SDK v.1.3.1

fop.sh -xml data.xml -xsl desc.xsl -pdf temp.pdf

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found
        at org.apache.batik.dom.AbstractAttr.setNodeValue
(AbstractAttr.java:112)
        at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177)
        at 
org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUnspecifie
dAttribute(AbstractElement.java:238)
        at org.apache.batik.dom.svg.AbstractElement.setUnspecifiedAttribute
(AbstractElement.java:149)
        at org.apache.batik.dom.svg.AttributeInitializer.resetAttribute
(AttributeInitializer.java:94)
        at org.apache.batik.dom.svg.AttributeInitializer.initializeAttributes
(AttributeInitializer.java:70)
        at org.apache.batik.dom.svg.AbstractElement.initializeAttributes
(AbstractElement.java:115)
        at org.apache.batik.dom.svg.AbstractElement.<init>
(AbstractElement.java:59)
        at org.apache.batik.dom.svg.SVGOMElement.<init>(SVGOMElement.java:72)
        at org.apache.batik.dom.svg.SVGStylableElement.<init>
(SVGStylableElement.java:70)
        at org.apache.batik.dom.svg.SVGOMSVGElement.<init>
(SVGOMSVGElement.java:103)
        at 
org.apache.batik.dom.svg.SVGDOMImplementation$SvgElementFactory.create
(SVGDOMImplementation.java:1508)
        at 
org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.createElementNS
(ExtensibleSVGDOMImplementation.java:212)
        at org.apache.batik.dom.svg.SVGOMDocument.createElementNS
(SVGOMDocument.java:338)
Comment 1 J.Pietschmann 2004-09-29 19:04:18 UTC
This is a known problem with having an incompatible Batik jar in the
classpath. Please check your settings.
Comment 2 Glenn Adams 2012-04-01 13:50:28 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs