Runtime error 'Bookmark is not valid' when an item is added to advanced data grid's hierarchical data. [1 Attachment]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Runtime error 'Bookmark is not valid' when an item is added to advanced data grid's hierarchical data. [1 Attachment]

Mika Kiljunen
Hi,
I was able to create a sample code which always causes runtime error
'Bookmark is not valid' when an item is added to advanced data grid's
hierarchical data. I filed a bug, please vote if you have similar problems
with this:

https://bugs.adobe.com/jira/browse/FLEXDMV-2194

Steps to reproduce:
1.Run attached code (tested with Flash Debug Player 9.0.159 and Flex SDK
3.4.0) . Select the second row labeled 'aa' below node that is labeled 'aaa'
(the first child of 'aaa')
2.Scroll the grid down to the bottom.
3.Click 'AddCopy' button on top of the screen.

 Actual Results: Following RTE occurs:

 Error: Bookmark no longer valid.
    at
ListCollectionViewCursor/seek()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:2108]
    at
mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionViewCursor.as:1116]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:1202]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.collections::ListCollectionView/dispatchEvent()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:862]
    at
mx.collections::ListCollectionView/addItemsToView()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:960]
    at
mx.collections::ListCollectionView/listChangeHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1080]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.collections::ArrayList/internalDispatchEvent()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ArrayList.as:528]
    at
mx.collections::ArrayList/addItemAt()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ArrayList.as:309]
    at
mx.collections::ListCollectionView/addItemAt()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:501]
    at
ListCollectionViewCursor/insert()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1892]
    at
mx.collections::HierarchicalCollectionView/addChildAt()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:1657]
    at
BookmarkIsNotValidTest/addCopy()[C:\Development\cfm3\source\products\cfm\trunk\client\source\flex\cfm\src\main\flex\BookmarkIsNotValidTest.mxml:97]
    at
BookmarkIsNotValidTest/___BookmarkIsNotValidTest_Button1_click()[C:\Development\cfm3\source\products\cfm\trunk\client\source\flex\cfm\src\main\flex\BookmarkIsNotValidTest.mxml:6]
Reply | Threaded
Open this post in threaded view
|

Re: Runtime error 'Bookmark is not valid' when an item is added to advanced data grid's hierarchical data.

FlexCoders mailing list
This bug has now been solved in the Apache Flex SDK, and will be available in the next version (probably 4.14). For details see [FLEX-34119] https://issues.apache.org/jira/browse/FLEX-34119 
 
 [FLEX-34119] mx.collections.HierarchicalCollectionViewCursor...  https://issues.apache.org/jira/browse/FLEX-34119  Steps to reproduce A: Run the HierarchicalCollectionViewCursor_FLEX_34119_Test unit test. You should see lots of "Bookmark no longer valid" errors. Steps to reproduce B: Run the attached AIR project.


 
 View on issues.apache.org https://issues.apache.org/jira/browse/FLEX-34119
 Preview by Yahoo