[ https://issues.apache.org/jira/browse/FLEX-33058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Chira updated FLEX-33058: ------------------------------- Description: Steps to reproduce: 1. Run test app 2. Click button to change HierarchicalData's source Actual Results: ReferenceError: Error #1069: Property GroupLabel not found on EmployeeVO and there is no default value. at mx.collections::HierarchicalCollectionViewCursor/findAny()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as:332] at mx.collections::HierarchicalCollectionViewCursor/findFirst()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as:361] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as:1323] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/internalRefresh()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as:1266] at mx.collections::HierarchicalCollectionView/refresh()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as:483] at mx.controls::AdvancedDataGridBaseEx/sortHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:8216] at mx.controls::AdvancedDataGrid/sortHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8646] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13688] at mx.controls::AdvancedDataGrid/headerReleaseHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8680] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13688] at mx.controls::AdvancedDataGridBaseEx/mouseUpHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:7331] at mx.controls::AdvancedDataGrid/mouseUpHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8734] Expected Results: No RTE :-) Workaround (if any): Monkey-patch HierarchicalCollectionViewCursor and update findAny() to use (monkey-patch file is included in sample project if you rename it from HierarchicalCollectionViewCursor2.as to HierarchicalCollectionViewCursor.as): for (var p:String in values) { if (!o.hasOwnProperty(p) || o[p] != values[p]) { matches = false; break; } } instead of: for (var p:String in values) { if (o[p] != values[p]) { matches = false; break; } } was: Steps to reproduce: 1. Run test app 2. Click button to change HierarchicalData's source Actual Results: ReferenceError: Error #1069: Property mx_internal_uid not found on ASObject1 and there is no default value. at mx.collections::HierarchicalCollectionViewCursor/findAny()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionViewCursor.as:327] at mx.collections::HierarchicalCollectionViewCursor/findFirst()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionViewCursor.as:356] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionViewCursor.as:1315] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/internalRefresh()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionView.as:1248] at mx.collections::HierarchicalCollectionView/collectionChangeHandler()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalCollectionView.as:1439] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalData/set source()[C:\opensource\flex\sdk\trunk\frameworks\projects\advancedgrids\src\mx\collections\HierarchicalData.as:145] at HCVCBug/button1_clickHandler()[C:\Users\asus\Adobe Flash Builder 4.5\HCVCBug\src\HCVCBug.mxml:46] at HCVCBug/___HCVCBug_Button1_click()[C:\Users\asus\Adobe Flash Builder 4.5\HCVCBug\src\HCVCBug.mxml:53] Expected Results: No RTE :-) Workaround (if any): Monkey-patch HierarchicalCollectionViewCursor and update findAny() to use (monkey-patch file is included in sample project if you rename it from HierarchicalCollectionViewCursor2.as to HierarchicalCollectionViewCursor.as): for (var p:String in values) { if (!o.hasOwnProperty(p) || o[p] != values[p]) { matches = false; break; } } instead of: for (var p:String in values) { if (o[p] != values[p]) { matches = false; break; } } > RTE in HierarchicalCollectionViewCursor when a refresh occurs and old cursor > had an enumerable property that new cursor item doesn't > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: FLEX-33058 > URL: https://issues.apache.org/jira/browse/FLEX-33058 > Project: Apache Flex > Issue Type: Bug > Components: Advanced Data Grid, SuperCollections > Affects Versions: Adobe Flex SDK 4.5 (Release), Apache Flex 4.15.0 > Environment: Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Assignee: Mihai Chira > > Steps to reproduce: > 1. Run test app > 2. Click button to change HierarchicalData's source > > Actual Results: > > ReferenceError: Error #1069: Property GroupLabel not found on EmployeeVO and > there is no default value. > at > mx.collections::HierarchicalCollectionViewCursor/findAny()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as:332] > at > mx.collections::HierarchicalCollectionViewCursor/findFirst()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as:361] > at > mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as:1323] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.collections::HierarchicalCollectionView/internalRefresh()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as:1266] > at > mx.collections::HierarchicalCollectionView/refresh()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as:483] > at > mx.controls::AdvancedDataGridBaseEx/sortHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:8216] > at > mx.controls::AdvancedDataGrid/sortHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8646] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.core::UIComponent/dispatchEvent()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13688] > at > mx.controls::AdvancedDataGrid/headerReleaseHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8680] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.core::UIComponent/dispatchEvent()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:13688] > at > mx.controls::AdvancedDataGridBaseEx/mouseUpHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as:7331] > at > mx.controls::AdvancedDataGrid/mouseUpHandler()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8734] > Expected Results: > > No RTE :-) > > Workaround (if any): > Monkey-patch HierarchicalCollectionViewCursor and update findAny() to use > (monkey-patch file is included in sample project if you rename it from > HierarchicalCollectionViewCursor2.as to HierarchicalCollectionViewCursor.as): > for (var p:String in values) > { > if (!o.hasOwnProperty(p) || o[p] != values[p]) > { > matches = false; > break; > } > } > instead of: > for (var p:String in values) > { > if (o[p] != values[p]) > { > matches = false; > break; > } > } -- This message was sent by Atlassian JIRA (v6.3.4#6332)