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

PNGTranscoder.transcode writes exception to system.out

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      affects all environments linux windows java 7 and 8

      Description

      when calling the transcode method and an exception happens the transcode method the method writes the exception to the output window. It is expected that it throws the exception without writing it to system.out

      PNGTranscoder p = new PNGTranscoder();
      p.transcode(input, output);

      Severe: org.apache.batik.bridge.BridgeException: file:/d:/csworkdir/svg/16464.svg:-1
      Cannot find the referenced element:
      "#g12213"
      specified on the element <use> - may be a problem of 'id'

      at org.apache.batik.bridge.BridgeContext.getReferencedNode(BridgeContext.java:754)
      at org.apache.batik.bridge.BridgeContext.getReferencedElement(BridgeContext.java:796)
      at org.apache.batik.bridge.SVGUseElementBridge.buildCompositeGraphicsNode(SVGUseElementBridge.java:124)
      at org.apache.batik.bridge.SVGUseElementBridge.createGraphicsNode(SVGUseElementBridge.java:98)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:213)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
      at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
      at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
      at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
      at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:208)
      at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92)
      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
      at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)

        Attachments

          Activity

            People

            • Assignee:
              gadams Glenn Adams
              Reporter:
              aosama Ahmed Ibrahim
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: