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 <sgmul...@gmail.com> 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 - array143402Customer3Admin4[undefined > array element] Element 4 is undefined in a Java object of type class > coldfusion.runtime.Cast$1.5Customer.Admin60 > > 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 cfaussie+unsubscr...@googlegroups.com. > To post to this group, send email to cfaussie@googlegroups.com. > 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 cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.