You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Ahmed Ibrahim (JIRA)" <ji...@apache.org> on 2015/01/31 15:06:34 UTC

[jira] [Commented] (BATIK-1103) PNGTranscoder.transcode writes exception to system.out

    [ https://issues.apache.org/jira/browse/BATIK-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299807#comment-14299807 ] 

Ahmed Ibrahim commented on BATIK-1103:
--------------------------------------

Hi Glen, so how can one suppress this exception if it is always sent to the System.Out ?

> 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
>             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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org