While doing some image work this morning with watermarking I came across this strange error:

Error Occurred While Processing Request
General CMM error517

Here is part of the stack trace:

view plain print about
1java.awt.color.CMMException: General CMM error517
2    at sun.awt.color.CMM.checkStatus(CMM.java:127)
3    at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
4    at java.awt.color.ICC_ColorSpace.fromRGB(ICC_ColorSpace.java:197)
5    at java.awt.image.ComponentColorModel.getDataElements(ComponentColorModel.java:1560)

After doing a quick search (the internet is cool huh?), I was able to find this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6444360. This issue that I ran into is apparently a recorded bug in JAVA. The bug was reported 2 years ago and it apparently has not been corrected.

The issue is with the jpg file I was trying to use. It apparently has a corrupt color profile and java can't handle it. I did check the properties of the file and noticed that the color representation property was set to uncalibrated. I was able to open the file in Fireworks and saved it as a new file and the new file works fine.

I have not found a way around it yet. The error happened when I tried to paste a one image onto another using ImagePaste.

Till next time...

--Dave