Chapter 8: Debugging and Error Handling
91
Tip
If you get a message that does not explicitly identify the cause of the
error, check on key system parameters like available memory and disk
space.
For information on using the Logging settings and Mail Logging settings, see
Administering ColdFusion Server.
CFML Code Validation
The ColdFusion Application Server features two modes of attribute checking for
processing application pages: strict and relaxed. Allaire recommends that you always
use the strictest possible level of CFML validation. To enable strict validation, open the
ColdFusion Administrator Server Settings page and check the "Enable Strict Attribute
Validation" box.
The code validator inspects all code before execution begins. In addition, attribute
validation is generally performed at p-code time and not at execution. The exceptions
to this rule are tags with a "switch" attribute, such as ACTION= or METHOD=, for
which the value is provided at runtime. These instances are validated at runtime. There
are two implications:
•
There will be a slight performance penalty due to runtime attribute validation.
•
The CFML syntax checker will not be able to detect an invalid attribute
combination — in this case because it does not execute the CFML page it
checks.
Although dynamically providing an action can save a few lines of code, you should
avoid this practice in the interest of a more complete validation and faster application
performance.
Tip
If a commercially purchased custom tags fails to run, try turning off the
"Enforce Strict Attribute Validation" setting in the ColdFusion
Administrator. If the tag continues to generate errors, you should contact
the tag's vendor.
The CFML Syntax checker application page is:
webroot
/cfdocs/cfmlsyntaxcheck.cfm.
Troubleshooting Common Problems
The following section describes a few common problems that you may encounter and
ways to resolve them.
ODBC data source configuration
Problem
: ODBC driver manager cannot make a connection to the database.
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...