[ https://issues.apache.org/jira/browse/BATIK-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299829#comment-14299829 ]
Ahmed Ibrahim commented on BATIK-1103: -------------------------------------- hahahah wish it was that simple cheers > PNGTranscoder.transcode writes exception to system.out > ------------------------------------------------------- > > Key: BATIK-1103 > URL: https://issues.apache.org/jira/browse/BATIK-1103 > Project: Batik > Issue Type: Bug > Components: SVG Rasterizer > Affects Versions: 1.7 > Environment: affects all environments linux windows java 7 and 8 > Reporter: Ahmed Ibrahim > Assignee: Glenn Adams > Fix For: 1.7 > > > 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) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org