Nice to hear from you Jack. How's things?
Anyway, the thing is that I expect ORM to handle all its own declarations.
The array was returned by the ORMexecuteQuery() which is a query on an ORM
entity, so why is one element left undefined? And why does the same data
and code work fine in CF9?
Too weird for me,
Steve
On Wednesday, June 11, 2014 5:47:22 PM UTC+10, Jack Traynor wrote:
>
> Hi Steve,
> I haven't had the chance to use ORM yet so I can't be sure... but this
> looks very similar to an error I had where a function was returning a
> "Java" array object instead of a ColdFustion array object.
>
> To fix the problem I was having I declared an new empty array then looped
> of the java array and added each element to my new array. Then I used the
> new array going forward. Effectively converting the java array to a
> ColdFusion array. For example...
> /* This function returns a java array */
> local.columns = local.memberTypeUsers.getMeta().getColumnlabels();
> local.newArray= [];
> for ( local.column in local.columns ) {
> arrayAppend( local.newArray, local.column );
> }
>
> I might be way off, but it's worth a try.
>
> Hope this helps,
> Jack
>
>
>
> On Wed, Jun 11, 2014 at 5:22 PM, Stephen M <[email protected]
> <javascript:>> wrote:
>
>> I get the following error back as an element of the array returned from
>> an ORMExecuteQuery
>>
>> "[undefined array element] Element 4 is undefined in a Java object of
>> type class coldfusion.runtime.Cast$1."
>>
>> This is on my local dev box which has CF10. But, on production which
>> runs CF9, the same code and the same data run fine.
>>
>> That element should simply be a small integer.
>>
>> The first element of the outer array looks like this
>>
>> C:\www\zzzz\views\user\view.cfm 48 - array 143402 Customer3Admin 4[undefined
>> array element] Element 4 is undefined in a Java object of type class
>> coldfusion.runtime.Cast$1. 5Customer.Admin 60
>>
>> Element 4 of that inner array should just be 0, 1 or 2. Why is it
>> undefined?
>>
>> regards,
>> Stephen
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "cfaussie" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/cfaussie.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.