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

Rasterizer - insuficient permissions when transcoding to PDF

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.11
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None

      Description

      After resolving BATIK-1256 if the next conversion is invoked, I am getting some permission error:

      java -jar batik-rasterizer-1.11.jar -m application/pdf text_on_path.svg
      About to transcode 1 SVG file(s)
      
      Converting text_on_path.svg to text_on_path.pdf ... Exception in thread "main" java.lang.ExceptionInInitializerError
              at org.apache.fop.svg.AbstractFOPTranscoder.setupImageInfrastructure(AbstractFOPTranscoder.java:259)
              at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:121)
              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:1002)
              at org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
              at org.apache.batik.apps.rasterizer.Main.execute(Main.java:937)
              at org.apache.batik.apps.rasterizer.Main.main(Main.java:990)
      Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.no-source-reuse" "read")
              at java.base/java.security.AccessControlContext.checkPermission(Unknown Source)
              at java.base/java.security.AccessController.checkPermission(Unknown Source)
              at java.base/java.lang.SecurityManager.checkPermission(Unknown Source)
              at java.base/java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
              at java.base/java.lang.System.getProperty(Unknown Source)
              at org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.<clinit>(AbstractImageSessionContext.java:64)
              ... 8 more
      

      Win 10 / Oracle JDK 9.0.1

        Attachments

          Activity

            People

            • Assignee:
              ssteiner Simon Steiner
              Reporter:
              jan.tosovsky.cz Jan Tošovský
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: