Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-927

svg crashes FOP on OPENBSD - method isReadOnly()Z

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Incomplete
    • 0.20.5
    • None
    • renderer/svg
    • None
    • Operating System: other
      Platform: PC
    • 31467

    Description

      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)

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            jcai@ceccontrols.com Judy Cai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: