Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26360

Lazy Instantiation - failed to handle ItemPendingError

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • Adobe Flex SDK 4.5 (Release)
    • mx: Tab Navigator
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      LiveCycle DataService has lazy loading feature where the property of an object isn't loaded until the client access it. When the client access it, LCDS throws an ItemPendingError and fetch data from server. I have a main datagrid, and a second datagrid is inside tabnavigator. This second datagrid dataprovider databind to first datagrid selectedItem.lazyLoadedProperty. If I selected the tab which contain the datagrid before I select an item from first datagrid, it works. If I selected the item on the first datagrid before the tab, I get an error
      Steps to reproduce:
      1.install LCDS (please contact wichan for installation instruction if needed
      2.use lcds war
      3.replace data-management-config.xml in WEB-INF/flex
      4.compile java source with -cp flex-messaging-data.jar(can find in WEB-INF/lib) into WEB-INF/classes
      5. compile testLazyTab.mxml using -services=WEB-INF/flex/services-config.xml -context-root=lcds
      6. run compiled swf
      7. click fill and wait the datagrid to be filled
      8. select an item on the datagrid
      9. select the lazy Children tab

      Actual Results:
      Error: Requesting : lazyInstantiationBugItem:lazyInstantiationBugItem:#:2.lazyChildren
      atmx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::fetchValue()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataList.as:3543]
      atmx.data::DataList/get length()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataList.as:185]
      atmx.collections::ListCollectionView/get length()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:235]
      atmx.controls::DataGrid/commitProperties()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\DataGrid.as:1947]
      atmx.core::UIComponent/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8241]
      atmx.managers::LayoutManager/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:598]
      atmx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:838]
      atmx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1207]

      Expected Results:

      Workaround (if any):

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment