xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: Problem with TranscodingHintKey: PLEASE HELP !!!
Date Tue, 19 Feb 2002 10:25:20 GMT
Solange,

Sorry for the late answer. What is happening is that you are getting
into the TranscodingHintKey constructor twice. This class in package
access and is only instantiated in the RenderingHintsKeyExt class
initialization (there is a static member that has a static 
TranscodingHintKey member), so I am not sure what is happening here.

Is there any way you could trace every construction of the 
TranscodingHintKey class (e.g., add (new Exception()).printStackTrace())
so that you can see exactly where the construction is happening?

Vincent.



Vincent.

> Hi,
> 
> I use Batik 1.1.1 to transform SVG images into JPG images.
> I use the JDK 1.3 and am under Windows 2000.
> 
> I have two different ways to transform my images; when I use both, I have the following
error :
> 
> java.lang.ExceptionInInitializerError: java.lang.IllegalArgumentException: Instance(10100)
of org.apache.batik.ext.awt.TranscodingHintKey already registered
>         at java.awt.RenderingHints$Key.recordIdentity(Unknown Source)
>         at java.awt.RenderingHints$Key.<init>(Unknown Source)
>         at org.apache.batik.ext.awt.TranscodingHintKey.<init>(Unknown Source)
>         at org.apache.batik.ext.awt.RenderingHintsKeyExt.<clinit>(Unknown Source)
>         at org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown Source)
>         at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source)
>         at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.copyData(Unknown Source)
>         at org.apache.batik.ext.awt.image.rendered.TileCacheRed.genRect(Unknown Source)
>         at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlockInPlace(Unknown
Source)
>         at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlock(Unknown
Source)
>         at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyToRasterByBlocks(Unknown
Source)
>         at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyData(Unknown
Source)
>         at org.apache.batik.ext.awt.image.rendered.TranslateRed.copyData(Unknown Source)
>         at org.apache.batik.ext.awt.image.rendered.PadRed.copyData(Unknown Source)
>         at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
>         at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
>         at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
>         ...
> 
> Do you have any idea ??? Is it a problem of multi threads ??? Must I "re-initalize" Batik
???
> 
> Please help me, it's very important for me !!!!
> 
> Thanks in advance...
> 
> Solange Desseignes
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Mime
View raw message