Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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/


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690