I had similar problems at one point.... Turned out my RemoteClass alias was wrong.
 
I think I also had the same problem when the alias in the <cfcomponent> tag didn't match, too.
 
Shan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: Thursday, July 27, 2006 9:12 AM
To: [email protected]
Subject: [Junk E-Mail - MED] [flexcoders] remote object mapping frustration


Ok, I got this CFC modeling a composite object.  Lets say its com.myco.project.user.  user has three members:  userid a string, address a  com.myco.project.adress, and say cars a array of com.myco.project.car .  The CFCs work fine in that DAOs do their magik.  On the Flex side I have com.myco.project.vo.user, com.myco.project.vo.address, and com.myco.project.car all mapping to the above.  sounds good so far, eh?  Now, the Flex code kicks a event off that does the remoteobject connection to the CF server requesting a user object.  It gets built and according to the debug data I can see at the DOS prompt from CFServer, it is returned to Flex as the proper com.myco.project.car object containing the other objects properly.  BUT in the FlexBuilder debugger the returned object is listed as result = mx.utils.ObjectProxy (@5824481)   I've been bangin my head for hours on this.  I have many other setups like this working fine, suddenly this one doesn't.

My onresult() has a line like which throws a runtime error about type coercion
foo = event.result as user;

any thoughts?

--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006

Reply via email to