Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1148

NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation while converting svg to pdf

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: SVG DOM, SVG Rasterizer
    • Labels:
      None
    • Environment:
      Windows 7, JDK 1.7

      Description

      It seems batik-rasterizer relies on outdated version of fop-transcoder-allinone-1.1.jar. fop-transcoder-allinone uses org.apache.batik.dom.svg.SVGDOMImplementation that is not present anymore in batik-svg-dom-1.8.

      F:\tools\batik-1.8>java -jar batik-rasterizer-1.8.jar -d ...\output -m application/pdf ...\rhev-console-access.svg.svg
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation
      at org.apache.fop.svg.AbstractFOPTranscoder.<init>(AbstractFOPTranscoder.java:107)
      at org.apache.fop.svg.PDFTranscoder.<init>(PDFTranscoder.java:84)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at org.apache.batik.apps.rasterizer.DestinationType.getTranscoder(Unknown Source)
      at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source)
      at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
      at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.apache.batik.dom.svg.SVGDOMImplementation
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 12 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexanderz Alexander Zobkov
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: