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

Can't write JPEG files: java.io.FilePermission PYCC.pf read

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      java version "1.6.0_28"
      OpenJDK Runtime Environment (IcedTea6 1.13.0pre) (rhel-1.66.1.13.0.el6-x86_64)
      OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

      Description

      Hi folks,

      The rasterizer is incredibly useful to us, but unfortunately every time I run it on our sever with `-m image/jpeg`, it dies with an exception.

      The input file is not the issue: it dies even with empty SVG.

      I can't reproduce this on desktop however.

      [dan@be-1 temp]$ java -jar ../lib/batik/batik-rasterizer.jar -m image/jpeg -q 0.95 bad.svg
      About to transcode 1 SVG file(s)

      Converting bad.svg to bad.jpg ... org.apache.batik.transcoder.TranscoderException: null
      Enclosed Exception:
      access denied (java.io.FilePermission PYCC.pf read)
      at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:132)
      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
      at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
      at org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:1001)
      at org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
      at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
      at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
      ... error (SVGConverter.error.while.rasterizing.file)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gaearon Dan Abramov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: