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

Command line NPE when using Java 1.7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      Production server running Java 1.7 and fails in this environment.
      Tested Java 1.8 and runs successfully in this environment.

      Description

      C:\Program Files\Java\jdk1.7.0_80\bin>java -version
      java version "1.7.0_80"
      Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

      C:\Program Files\Java\jdk1.7.0_80\bin>java -cp C:\batik; -jar C:\batik\batik-rasterizer-1.9.jar -m image/jpg -q .75 -w 500 -d c:\batik\samples\test.jpg https://
      www.gate1travel.com/shared/india/maps/2017/9DIndia17.svg
      About to transcode 1 SVG file(s)

      Converting https://www.gate1travel.com/shared/india/maps/2017/9DIndia17.svg to c:\batik\samples\test.jpg ... Exception in thread "main" java.lang.NullPointerExc
      eption
      at org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.
      java:966)
      at org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.ja
      va:717)
      at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
      at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)

      C:\Program Files\Java\jdk1.7.0_80\bin>

        Attachments

          Activity

            People

            • Assignee:
              ssteiner Simon Steiner
              Reporter:
              pm Phil
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: