You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by ruben malchow <ru...@googlemail.com> on 2012/11/17 05:21:38 UTC

transcoder exception handling



hi,

i am seeing some exception handling problems with the transcoder:

actually, it logs this:

java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0
	at java.awt.image.SampleModel.<init>(SampleModel.java:108)
	at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:124)
	at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:91)
	at java.awt.image.SinglePixelPackedSampleModel.createCompatibleSampleModel(SinglePixelPackedSampleModel.java:197)

for a incorrect document, but it never throws this exception. i spent a huge amount of time trying to figure out what's wrong with my exception handling, but in the end - there wasn't even an exception to handle.

is this expected? why is it logged (to the console, no less!) if it is ignorable?

.rm