I've been trying for quite some time now to figure out why I'm getting this 
error:

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.

I've seen it on a number of other forums including Ben Nadel's.  I've tried the 
JavaCast function but it doesn't seem to help :(

Here's a sample:
   
   <cfif 
StructKeyExists(Form,"textbox_#session.login[1][2]#_#get_fields.Additional_FieldID#")>
        <!--- Looks like form.textbox_1104_233 --->    
        <cfset textbox_Title = 
"textbox_#session.login[1][2]#_#get_fields.Additional_FieldID#">
            <cfloop list="#StructKeyList(Form)#" index="k">
                 <cfif #k# eq "#textbox_Title#">
                      <cfset Insert_Value1 = "#Evaluate('form.' & k)#">      
                 </cfif>    
            </cfloop>    
   </cfif>
   #Insert_Value1#

Based upon some dynamically generated form fields, this actually displays the 
value as text when I dump it to the screen, but when I try to insert the value 
it into the database four lines below this code, I get the above generated 
error...  any thoughts?

Matt
 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288119
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to