ImageWriterRegistry.getInstance() is a do-nothing method! Is there something I
don't know about?
The offending line is line 89/90 in
org.apache.batik.transcoder.image.JPEGTranscoder . . .
ImageWriter writer = ImageWriterRegistry.getInstance()
.getWriterFor("image/jpeg");
returns a null ImageWriter. I'm not sure why.
-----Original Message-----
From: Cameron McCormack [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 9:26 PM
To: [email protected]
Subject: Re: org.apache.batik.transcoder.TranscoderException: null
Hi Eric.
Eric Hamacher:
> I get the following exception using Batik (1.7) at the line
> "t.transcode(input, output);" I am trying to convert a DOM into a
> JPEG image.
>
> org.apache.batik.transcoder.TranscoderException: null
> Enclosed Exception:
> null
> 08/03/05 10:42:08 at
> org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTransco
> der.java:
> 132)
…
> Anybody have an idea about what this exception is about? Thanks
It’s hard to tell, since the (what I assume is a) NullPointerException
is wrapped in a TranscoderException, which doesn’t show where the NPE
was thrown. If you can compile Batik, try adding a line
ex.printStackTrace();
just before the throw line in
ImageTranscoder.transcode(Document,String,TranscoderOutput), and that at
least will show where the original exception is being thrown.
--
Cameron McCormack, http://mcc.id.au/
xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]