This content has been marked as final. Show 2 replies
Since there's no useful message accompanying it (though the "[I" might indicate some sort of integer array), I think the best way to figure out what's going on is to look at the source file.
Go to your JDK directory. There should be a file called src.zip or src.jar somewhere in there. Unzip it with a normal .zip program or with "jar xf src.jar".
Go into the directory you unzipped into and find the source code for the ColorModel class (unzipdir/java/awt/image/ColorModel.java. Look for an explicit cast somewhere on line 814.
I couldn't look at the problem because I don't have the same version of the JDK as you do (my ColorModel.java's getAlpha() method is abstract). If you provide the JDK version number to forum readers maybe someone can take a look and figure it out.
Though the lack of an error message or any of your function calls in the trace seems to indicate a JDK bug but then again, it might be caused by a parameter you gave it a long time ago.
Perhaps this may be useful :
see Reply Nr. 5