Thanks for the idea James, but I figured it out.

I set the ZJF in the "var" scope then on line 31 I try calling it with 
"variables" as the scope.

variables.ZJFdao.readZJF()

DUH!  The error is what threw me off.. it did not make a lot of sense at the 
time.

Thanks!

-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 07, 2007 2:35 AM
To: CF-Talk
Subject: Re: Error when defining var

What happens if, at the top of the function, you put

<cfset var ZJFdao =
CreateObject("component","com.careyweb.servalent.misc.ZJFdao")>

instead?

On 9/7/07, chad gray <[EMAIL PROTECTED]> wrote:
> I am getting this error and the error only occours if i put a <cfset var 
> ZJFdao = ""> in the function.  Any ideas?
>
> Element ZJFDAO is undefined in a Java object of type class 
> [Ljava.lang.String; referenced as
>
> The error occurred in 
> D:\Web\bervalent_WC\com\careyweb\servalent\misc\ZJF.cfc: line 31
>
> 29 :            <cfset ZJFdao = 
> CreateObject("component","com.careyweb.servalent.misc.ZJFdao")>
> 30 :
> 31 :            <cfset getZJF = variables.ZJFdao.readZJF(#myArray#)>
> 32 :

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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