Accessibility

TechNote (Archived)

cfhttp on ColdFusion MX can periodically fail due to bug in Sun 1.3 and 1.4 JVM's

Issue


Using cfhttp in your application code can intermitently result in a "Connection Failure" error message when attempting to access a valid URL.

Reason


There have been reports of a bug in several versions of the Sun JVM where the lookup of host (not localhost) returns UnkownHostException at random intervals. This UnknownHostException will manifest as a "Connection Failure" when encountered during acfhttp call. Because of the intermittent nature of this problem, it is difficult to determine other related environmental factors that may contribute to the error.

More information about the UnknownHostException is available athttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4417030.

Solution


To work around this problem, add the following to the java.args section of the jvm.config file located incf_root/runtime/bin:

-Dsun.net.spi.nameservice.provider.1=dns,sun

For more information on this property and its effect, please see the following: http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support

Document Details

ID:95f66fd8

Products Affected:

coldfusion