Stephen, that is an odd problem. Here are some “outside the box” possible explanations.
You say this is a CF10 box. Was it running CF9 before? Or did you bring over any files (other than your own CFML source code) from another which had been running CF9 or earlier? If not, you can stop reading. But if so, I wonder if there may be an issue where there’s some conflict of things somehow inappropriately still accessing vestiges of CF9. Again, this idea wouldn’t be about your source code. (And it’s not a matter of whether CF9 is running on the new server now or not.) It could just be about what’s in some folders which both CF instances might look to, and whether old version stuff is used by the new CF version. I see that all the time with the CFIDE folder, for instance, if people bring a CFIDE folder in their web site docroot onto a new CF10 server, and especially if they remove the CFIDE virtual directory that CF10 would create to point to its own version. (While on the subject of the CFIDE folder, let me add also that some may notice there is an ORM folder in there. But I don’t know that that would be an issue here. There are two ways that folder could be used: one is by requests coming into the web server (as URLs), and some do block access to that (and other CFIDE folders) in their web server, to stop such access. But CF itself could leverage code in that folder internally. If it did, though, CF would use the “cfide” mapping shown in the CF Admin “mappings” page, which is not editable, and CF10 would point it to the CFIDE folder within the [cf10]\cfusion\wwroot. So I’d really not expect that to be the problem here.) Or thinking way outside the box, it could be about some files carried forward from 9 to 10. I’d not expect it to be an issue with your CFML templates/source code, though. But did you by any chance copy files from the WEB-INF\cfclasses folder of CF9 into the same folder of CF10? These represent the compiled java classes made from the CFML source when it’s run, assuming the CF Admin “caching>save class files” setting is enabled. Copying those files from one instance to another would not be normal or recommended, but I’ve seen people do it, not understanding the implications. And it could certainly cause odd issues, as the compiled CF classes for 9 would not likely work well with 10. Again, I realize those last couple of possibilities are pretty “out there” and not likely. I’m just sharing them as they come to mind, since this is indeed such an odd error, that I’ve not heard others have (and CF 10’s been out over 2 years now). If you do resolve it, let us know. /charlie From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Stephen M Sent: Wednesday, June 11, 2014 3:22 AM To: cfaussie@googlegroups.com Subject: [cfaussie] ORMExecuteQuery error on CF10 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 1 4340 2 Customer 3 Admin 4 [undefined array element] Element 4 is undefined in a Java object of type class coldfusion.runtime.Cast$1. 5 Customer.Admin 6 0 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.