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

Null Pointer Exception in TranscoderAPI

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      Operating System: Windows 98
      Platform: PC

      Description

      Whenever I try to convert any SVG using the Transcoder API, it gives me
      following error:

      java.io.IOException: java.lang.NullPointerException
      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocume
      ntFactory.java:353)
      at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocume
      ntFactory.java:276)
      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGD
      ocumentFactory.java:158)
      at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGD
      ocumentFactory.java:231)
      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstra
      ctTranscoder.java:118)
      at SaveAsJPEG.main(SaveAsJPEG.java:26)
      Exception in thread "main" org.apache.batik.transcoder.TranscoderException: null

      Enclosed Exception:
      java.lang.NullPointerException

      What should I do ????
      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstra
      ctTranscoder.java:126)
      at SVG2JPEG.main(SaveAsJPEG.java:26)

        Attachments

        1. SAXDocumentFactory.java
          25 kB
          Dan Bennett

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              anuragmishra2003@indiatimes.com Jean Claude Van Dame
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: