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

-----Original Message-----
From: Jon Block [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:59 AM
To: CF-Talk
Subject: CFMX 6.1 windows problem... This is so simple... why doesn't it
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


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to