I know this may sound silly (like, my computer won't turn on... is it plugged in?), but haev you checked to make sure the paramters to the remote object method call are being passed correctly?
When you run the CFC method outside of flex, you use named parameters like: http://localhost/test.cfc?method=abc&arg1=10&arg2=false - ColdFusion matches up the URL parameters with the parameters names in the method (so arg2 could come before arg1, it doesn't matter), and then invokes the method. When you call a method from Flex, the order of the paramters has to be exact. On the Flex side, you have to call service.abc( arg1, arg2 ). Since it works from the URL but not from Flex, I would double check to make sure that the parameters being passed are the same, and that they're being passed in the correct order. -d Rachel Maxim wrote: > > Hello, > > I am working on a Flex app with CF/remoting, and have come across an > error I cannot track down. The error is "Unable to cast an object of > type java.lang.String to Query". > I've seen this error before and it's not normally an issue to solve, > however I do not get the error when running the CFC method(s) outside > Flex and dumping their return values on an HTML page. > When I run the page in flex that calls those CFC methods via > remoteObject, and display the fault string in flex, I get the error. > > In a nutshell, the CFC creates an array of objects, those objects each > hold a string as one property and a query as another. > > Any ideas where I can look or what might be causing it? > > Thanks > Rachel > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

