It may be that CF isn't making the structure right. Try adding this first:

<cfif not structKeyExists(application, "cfcs")>
  <cfset application.cfcs = structNew()>
</cfif>

On Wed, May 14, 2008 at 11:33 AM, Rob Sherman
<[EMAIL PROTECTED]> wrote:
> I keep getting this error that has me stumped.  I have code that resembles
> this on a page:
>
> <cfif Not IsDefined("application.cfcs.google")>
>   <cfobject type="component" name="application.cfcs.google"
> component="path.cfcs.Google">
> </cfif>
>
> ....
>
> <cftry>
>   <cfinvoke component="#application.cfcs.google#"
>             method="GetClosestCenters"
>             returnvariable="qGetFacs">
>     <cfinvokeargument ...>
>   </cfinvoke>
>   <cfcatch type="any">
>        ... catch code ...
>   </cfcatch>
> </cftry>
>
>
> So this is ColdFusion 7 Standard, and even though I have it in a try/catch,
> it's throwing the error and telling me that "Element CFCS.GOOGLE is
> undefined in APPLICATION."  Even though the top of the page is checking to
> make sure it exists before making the call.  Any ideas on why it might be
> doing this?
>
>
>
> - Rob
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305255
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