I think this issue may be related to https://github.com/TransferORM/transfer/issues/13 where the default value for properties is being ignored and always returned as "false".
Thanks! ~Brad On Saturday, March 7, 2015 at 6:02:27 PM UTC-6, Brian G wrote: > > > I don't (yet) run Railo but this looks like a poor guess by Railo to > determine the datatype in the returned query when (I suspect) the first row > has a null. I see this behavior in QoQ where it guesses wrong and causes > problems. I'm surprised it would happen with an actual query. > > If you want to get some more info, open up that > portal.Portal$...transfer.cfm file and try changing the argument type on > setDateCreated() to be type "any" and do a <cfdump var="#arguments#" > output="console" /> and see what you're getting vs. what it's expecting. > > On Wednesday, January 28, 2015 at 11:39:52 PM UTC-8, [email protected] > wrote: >> >> Hello Brian, >> >> >> I am getting casting error with the date field, as I recently switched >> from CF10 environment to Railo 4.2. >> *Application Environment:* Railo 4.2 with Transfer latest version from >> GitHub, Coldspring and ModelGlue3 >> >> Any mapped field which has a type *date* is giving me error as below: >> invalid call of the function setdateCreated >> (E:\inetpub\wwwroot\websites\asp052mysql\webapps\cache\transfer\portal.Portal$120B0C669E3739E83ED6F6F68AEF6704.transfer.cfm), >> >> first Argument (dateCreated) is of invalid type, can't cast Object type >> [Boolean] to a value of type [date] >> >> This is property mentioned in Transfer.xml file >> <property name="dateCreated" type="date" column="dateCreated" /> >> >> When I dump memento, it gives me this value for that property: >> DB as null value in the column. >> >> It seems the problem is in Transfer with Railo combination, because I >> didn't come across to that error before. Same kinda problem was reported in >> TrasferRailo mailing list in this thread >> >> https://groups.google.com/forum/#!searchin/railo/transfer/railo/mHE8Tw4fir4/FVvuNdc3LZQJ >> >> but I didn't find a satisfactory answer from there. >> > -- -- Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer Try out the new Transfer ORM Custom Google Search: http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8 You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en --- You received this message because you are subscribed to the Google Groups "transfer-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
