Problem
: You suspect that there are problems with the structure or contents of a complex data
variable, such as a structure, array, query object, or WDDX-encoded variable.
Use the
cfdump
For example, to dump a structure named
the variable name with pound signs (#).
<cfdump var=#relatives#>
Data source access and queries
Problem
: You cannot make a connection to the database.
You must create the data source before you can connect. Connection errors can include problems
with the location of files, network connections, and database client library configuration.
Create data sources before you refer to them in your application source files. Verify that you can
connect to the database by clicking the Verify button on the Data Sources page of the ColdFusion
MX Administrator. If you are unable to make a simple connection from that page, you might
need to consult your database administrator to help solve the problem.
Also, check the spelling of the data source name.
Problem
: Queries take too long.
Copy and paste the query from the Queries section of the debugging output into your database's
query analysis tool. Then retrieve and analyze the execution plan generated by the database
server's query optimizer. (The method for doing this varies from dbms to dbms.) The most
common cause of slow queries is the lack of a useful index to optimize the data retrieval. In
general, avoid table scans (or "clustered index" scans) whenever possible.
HTTP/URL
Problem
: ColdFusion MX cannot correctly decode the contents of your form submission.
The
attribute in forms sent to the ColdFusion server must be Post, for example:
method
<form action="test.cfm" method="Post">
Problem
: The browser complains or does not send the full URL string when you include spaces
in URL parameters.
Some browsers automatically replace spaces in URL parameters with the %20 escape sequence,
but others might display an error or just send the URL string up to the first character (as does
Netscape 4.7).
URL strings cannot have embedded spaces. Use a plus sign (+) or the standard HTTP space
character escape sequence, (%20) wherever you want to include a space. ColdFusion correctly
translates these elements into a space.
A common scenario in which this error occurs is when you dynamically generate your URL from
database text fields that have embedded spaces. To avoid this problem, include only numeric
values in the dynamically generated portion of URLs.
Or, you can use the
escape sequences. For more information on the
Reference.
tag to generate a table-formatted display of the variable's structure and contents.
URLEncodedFormat
, use the following line. You must surround
relatives
function, which automatically replaces spaces with %20
URLEncodedFormat
Troubleshooting common problems
function, see CFML
407
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers