Posts Tagged “Coldfusion8”

Issue

CFImage and the image functions can leave an image file locked after an initial write to disk in Adobe ColdFusion 8.0.1. This can cause subsequent operations on the image to fail with an error similar to the following:

“An exception occurred while trying to write the image. Ensure that the destination directory exists and that ColdFusion has permission to write to the given path or file. Cause: java.io.FileNotFoundException: /pathToImage/portrait.jpg”

The CFimage function may also write the image to the directory ColdFusion is running from instead of the proper directory.
Solution

Both ColdFusion 8.0.1 cumulative and individual hot fixes are installed in the ColdFusion Administrator. The installation process is the same for all platforms and installation choices.
Install the ColdFusion 8.0.1 hot fix.

1. Download the hot fix, hf801-71557.zip (110k).
2. Extract hf801-71557.jar and metadata-extractor-2.3.1.jar from the hf801-71557.zip file.
3. Open the ColdFusion Administrator and select the System Information page. Next to the Update File field, do one of the following:
* Type in the file path to hf801-71557.jar, and then click Submit.
*
Click Browse, and then browse to the hf801-71557.jar. Select the file, and then click Submit.
4.
Stop the ColdFusion server.
5.
Rename metadata-extractor-2.3.1.jar in cf_root\lib to metadata-extractor-2.3.1.jar.bak. Copy metadata-extractor-2.3.1.jar extracted from the hotfix zip to this location.
6.
Restart the ColdFusion server.

Note: The hot fix, hf801-71557.jar was updated with a file dated August 12, 2008 1:43 AM and size 36,169 bytes. An updated metadata-extractor-2.3.1.jar was added to the zip also (86.6k August 12, 2008 1:51).

The ColdFusion 8.0.1 hot fix JAR file does not need to be retained after installing it with the ColdFusion Administrator. The file has been copied into the correct location. ColdFusion hot fix jars may be uninstalled by deleting the respective hot fix jar from cf_root/lib/updates after stopping the ColdFusion application server.

Tags: , ,

Comments No Comments »