From: hans blix on
Nothing special about the image that I know of. It was uploaded by one of our
users. We get about one image a day that causes this error.

I tried upgrading to JVM 1.6.0_06 but still have the problem.

Interesting that imageIO works when you invoke it directly. The error being
generated comes from that class when using the cfimage tag:
javax.imageio.IIOException: Missing Huffman code table entry at
com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method) at
com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:996) at
coldfusion.image.ImageWriter.writeJPeg(ImageWriter.java:60) at
coldfusion.image.ImageWriter.writeImage(ImageWriter.java:119) at
coldfusion.image.Image.write(Image.java:578) at
coldfusion.tagext.io.ImageTag.performWrite(ImageTag.java:593)

It seems to point to a bug in the implementation of CFImage.




From: DefconRhall on
Now that I have worked around the image lock issue I am running into this issue
now as well.

Is there anyway to fix it and perform a resize.

Our customer is in a shared hosted environment and as a result we cannot
change any CF settings to override how CFImage works.

From: hans blix on
Try the method that cfSearching proposed above. Let us know if it fixes the problem for you.

Also, report the bug to Adobe. The more reports the better.
From: -==cfSearching==- on
@hans blix,

Yes I did notice the error is from the same package. However, the calling
method is from com.sun.imageio.plugins. While I do not know about the internals
of either class, since one works for me and the other does not I can only
assume cfimage's method of writing out images is different than ImageIO.write.

My guess is the resize/write problem mentioned your other thread is a bug.
This exception may be a bug as well. However, I am not familiar with image
compression and decoding. So it may still be a problem with the image files
themselves. Though I suspect not.

@DefconRhall,

Try the code snippet above. It should work with 8.0.1. You could use it to
replace the cfimage call, or call it if a: "javax.imageio.IIOException: Missing
Huffman code table entry" exception is thrown.


From: DefconRhall on
I always like to try and understand code a bit before I implement it..

If I understand that snipet of code I basically want to use it to load up the
file I just uploaded, have it save the image on top of itself, and then run the
cfimage to do the resize?

Thanks,

PS: Looks like the locking bug with CFImage has been addressed by Adobe