I have a CFC that is a collection of objects that I create by making an
array components.  In this case the cfc "reservations" is an array of
"reservation" CFCs.
A reservation has a "person" and I'm having trouble calling that
person's methods.

In my code INSTANCE is a variable created inside each CFC to keep the
properties private. They are only accessible through the methods.

Here is some of the code :

1.
instance.reservations[count]=createobject("component","#request.cfc#reservation").init();
2.
instance.reservations[count].setvalue("personid",qryReservations.personid);
3.
instance.reservations[count].person=createobject("component","#request.cfc#.person").init;
4.
instance.reservations[count].person.dblookup(qryReservations.personid);

Lines 1- 3 work fine.  And if I do a dump of the object, I get can see
the person object set up.  But if I try to address any of the methods of
the person object (like in line 4), I get this message:

Method selection Exception.

An exception occurred during method selection process for Method dump
The cause of this exception was that either there are no methods with
the the specified method name and argument types, or the method dump is
overloaded with arguments types that Coldfusion can't decipher
reliablly. Use javacast function to reduce ambiguity.

I have tried to use the javacast function, but it didn't work. I also
tried to access a method that didn't have any arguements, and it threw
the same error.

Any thoughts?


------------------------------------------------
Gerry Gurevich,
Lockheed Martin
[EMAIL PROTECTED]
919-572-7818

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to