|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Solved! (I think I found a ColdFusion MX bug!) - RE: ColdFusion MX 6 1 windows problem This is so simple why doesn't it work?
Author: Raymond Camden
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:28913#145008
URL is a reserved scope name. If you fully qualify the output, it should
work, ie use queryname.url, not just url.
Author: Jon Block
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:28913#145001
I figured out the problem I was having... it turns out it had to do with one
of the field's in my recordset that was generated with <CFQUERY>. One of
the
fields was called "URL" because it holds the URL of a web page that needs to
get used on the front end.
The following code fails in CFMX. Looking at it, I can't think of a reason
why this code would fail. Clearly, this code is not useful but it shouldn't
bomb.
-----------
<cfquery name="bling" datasource="hooha">
select 'http://neverlandranch.foo' as URL
</cfquery>
<cfoutput query="bling">
#urldecode("michael jackson")#
</cfoutput>
-----------
-Jon
work?
When I run this page....
-----------------------
<cfquery datasource="bling" name="getRec">
select ...... (bla bla foo)
</cfquery>
<cfoutput query="getRec">
#urlDecode('whytheheckdoesthisthowanerror')#
</cfoutput>
-----------------------
I get ...
-----------------------
Error casting an object of type to an incompatible type. This usually
indicates a programming error in Java, although it could also mean you have
tried to use a foreign object in a different way than it was designed.
The error occurred in X:\xxxxx\editRecord1.cfm: line 27
Called from X:\xxxxx\x.cfm: line 33
Called from X:\xxxxx\xx.cfm: line 93
Called from X:\XXXXXX.cfm: line 94
-----------------------
Please help! (I watered down the query and the file names just to show you
the root of the problem)....
Thanks,
Jon
|
May 24, 2012
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||