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

java.lang.NoSuchMethodError when working together with batik 1.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Won't Fix
    • 0.20.5
    • None
    • renderer/svg
    • None
    • Operating System: All
      Platform: All
    • 36815

    Description

      Here is a stacktrace of a, I believe, know issue when trying to use batik 1.6 and fop together:

      Exception in thread "Thread-35" java.lang.NoSuchMethodError:
      org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/
      w3c/dom/Element;)Lorg/apache/batik/util/UnitProcessor$Context;
      at org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107)
      at org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.java:85)
      at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.java:129)
      at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181)
      at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:188)
      at org.apache.fop.fo.flow.Block.layout(Block.java:257)
      at org.apache.fop.fo.flow.Block.layout(Block.java:257)
      at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
      at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
      at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400)
      at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
      at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
      at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
      $FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.fop.apps.Driver.render(Driver.java:498)
      at org.apache.fop.apps.Driver.run(Driver.java:565)

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            al@humantouch.de Alexander Lohse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: