If the setter is being called by ColdSpring and you still get the error,
then you are either getting a different instance of the component (one that
did not have the setter called) or some other code in the component is
clearing the variables.instance struct.

On 8/12/07, Bryan S <[EMAIL PROTECTED]> wrote:
>
> Sean
>
> <cffunction name="setActiveDirectoryDao" access="public" returntype="void"
> output="false">
>     <cfargument name="activeDirectoryDao" required="true" type="any" />
>     <cfset variables.instance.activeDirectoryDao =
> arguments.activeDirectoryDao />
> </cffunction>
> <cffunction name="getActiveDirectoryDao" access="public" returntype="any"
> output="false">
>     <cfreturn variables.instance.activeDirectoryDao />
> </cffunction>
>
> Element INSTANCE.ACTIVEDIRECTORYDAO is undefined in VARIABLES.
>
> I had previously checked into whether it was the right variable myself and
> realized that the error message is saying instance.activeDirectoryDao is
> not in the structure "variables". So it does seem to be the same variable
> unless I'm missing something.
>
> I was able to determine that setActiveDirectoryDao is being called by
> putting a cfdump inside of it.
>
> Bryan
>
> On 8/12/07, Sean Corfield <[EMAIL PROTECTED]> wrote:
>
> > ...
> > > 5) It creates the error
> > >  Element INSTANCE.ACTIVEDIRECTORYDAO is undefined in VARIABLES.
> >
> > This indicate setActiveDirectoryDao() was not called.
> >
> > > 6) I know from debugging that prior to getting to the line of code the
> >
> > > generates the error variables.instance.securityService is
> > > being set in setSecurity Service
> >
> > Which seems to have nothing to do with the above variable?
> >
> > > So the real question here is what is causing
> > > variables.instance.securityService to become undefined
> > > between the call to setSecurityService and the call to
> > > getActiveDirectoryService
> >
> > You're talking about two different variables.
> > --
> > Sean A Corfield -- (904) 302-SEAN
> > An Architect's View -- http://corfield.org/
> >
> > "If you're not annoying somebody, you're not really alive."
> > -- Margaret Atwood
> >
> >
>

Reply via email to