Title:
Bug 80207:OneToMany in the CFAIR integration doesn't appear to work as documented (or perhaps at all)
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Cameron Childress / Cameron Childress (cameroncf)
Created: 09/28/2009
Components: Flex/Flash, AIR Integration
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 2
Problem:
OneToMany in the CFAIR integration doesn't appear to work as documented (or perhaps at all).I have actually gotten the basic example of OneToOne working. Beyond that I seem to be running into issues. I’ve attached the example from the documentation which is modified to do a very basic OneToMany relationship instead of OneToOne. This example doesn’t do any server interaction. It simply creates a connection to the database, creates one object,and attempts to save it. However, no matter what I do, it will not successfully save the object.The problem seems to be around the datatype of the property representing the "Many" part of the OneToMany relationship. If it’s ArrayCollection (as the documentation states it should be), I get an error stating "The field type on the OneToMany tag on addresses has to be an Array in class vo::Customer".Okay, so I change it to an Array... then I get an error that "Variable Address is not defined". Address being the targetEntity of the OneToMany relationship...Both errors seem to come from within the OfflineSupport SWC, but I don’t know what it’s doing internally. Is the source of the SWC available somewhere - or will this remain closed?I have pasted the full error messages below and am going to attempt to attach my simple example to this post. Error: The field type on the OneToMany tag on addresses has to be anArray in class vo::Customer at coldfusion.air::EntityCache/handleFieldList()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:715] at coldfusion.air::EntityCache/addMetadata()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:335] at coldfusion.air::EntityCache/getMetaData()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:231] at coldfusion.air::Session/loadByPKInternal()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:2341] at coldfusion.air::Session/loadByPK()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:2331] at coldfusion.air::Session/saveUpdateCallCache()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:1258] at coldfusion.air::Session/saveUpdate()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:1232] at CF9Sample/connectSuccess()[C:\inetpub\wwwroot\CF9Sample\src\CF9Sample.mxml:58] at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43] at coldfusion.air::SessionToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\SessionToken.as:200] at coldfusion.air.events::SessionResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\events\SessionResultEvent.as:118] at coldfusion.air::Session/dispatchSessionResultEvent()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:3110] at <anonymous>()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:179]eferenceError: Error #1065: Variable Address is not defined. at global/flash.utils::getDefinitionByName() at coldfusion.air::EntityCache/handleFieldList()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:729] at coldfusion.air::EntityCache/addMetadata()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:335] at coldfusion.air::EntityCache/getMetaData()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\EntityCache.as:231] at coldfusion.air::Session/loadByPKInternal()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:2341] at coldfusion.air::Session/loadByPK()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:2331] at coldfusion.air::Session/saveUpdateCallCache()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:1258] at coldfusion.air::Session/saveUpdate()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:1232] at CF9Sample/connectSuccess()[C:\inetpub\wwwroot\CF9Sample\src\CF9Sample.mxml:58] at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43] at coldfusion.air::SessionToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\SessionToken.as:200] at coldfusion.air.events::SessionResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\events\SessionResultEvent.as:118] at coldfusion.air::Session/dispatchSessionResultEvent()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:3110] at <anonymous>()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegration\OfflineSupport\src\coldfusion\air\Session.as:179]
Method:
1) Download and run code found at URL below
Result:
Error: The field type on the OneToMany tag on addresses has to be anArray in class vo::Customer
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040223
External Customer Info:
External Company:
External Customer Name: Cameron Childress
External Customer Email: 7529291B4460E1979920157F
External Test Config: 09/28/2009
Attachments:
Comments: