java.lang.IllegalArgumentException: NumComponents not in sync with COLOR_ID

Hi:

I was wondering if anyone has ever encountered the
following error when creating an image using
the JPEG Encoder classes:
java.lang.IllegalArgumentException: NumComponents not
in sync with COLOR_ID

The code that I've written runs fine of a system
running Windows 98, but on a Solaris it returns the
aforementioned error.

Here is a code snippet:
<VisAD code setting up display object>
1.) BufferedImage image = display.getImage();
2.) JPEGEncodeParam jepar
JPEGCodec.getDefaultJPEGEncodeParam(image);
<other image generation code>
2 causes the exception

Thanks for your time,
John.




__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/