List Error:invalidIndex when remove an item

Hi Guys,
I got the following exception, when i removed an item from spark list. I stepped into to see the index, i looked all right. Somehow, it went the following stack, and the index became an invalid index, which i am not sure where it was from. I found this thread - http://forums.adobe.com/thread/692482?tstart=0, but it is not the same problem.
Error: invalidIndex
    at spark.layouts.supportClasses::LinearLayoutVector/remove()[E:\dev\4.x\frameworks\projects\ spark\src\spark\layouts\supportClasses\LinearLayoutVector.as:541]
    at spark.layouts::VerticalLayout/elementRemoved()[E:\dev\4.x\frameworks\projects\spark\src\s park\layouts\VerticalLayout.as:1311]
    at spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::itemRemoved()[E:\dev\4.x\frameworks\projects\s park\src\spark\components\DataGroup.as:1580]
    at spark.components::DataGroup/removeRendererAt()[E:\dev\4.x\frameworks\projects\spark\src\s park\components\DataGroup.as:625]
    at spark.components::DataGroup/removeAllItemRenderers()[E:\dev\4.x\frameworks\projects\spark \src\spark\components\DataGroup.as:656]
    at spark.components::DataGroup/createItemRenderers()[E:\dev\4.x\frameworks\projects\spark\sr c\spark\components\DataGroup.as:840]
    at spark.components::DataGroup/commitProperties()[E:\dev\4.x\frameworks\projects\spark\src\s park\components\DataGroup.as:899]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx \core\UIComponent.as:7933]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\ src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:730]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1072]
Thanks in advance,
Cheng

Hi,
I have exactly the same problem, getting the same error message and stack report (precisely the same).
All I can say about the error is that it is very random - I can't figure out what changes the situation to produce the error.
I have a class, extending the spark's TabBar, with a function to close a tab:
public class VerticalIconTabBar extends TabBar
         public function closeTab(closedTab:int, selectedTab:int):void {
             if (dataProvider.length == 0) return;
             if (dataProvider is ViewStack){
                 //remove the entire child from the dataProvider, which also removes it from the ViewStack
                 (dataProvider as ViewStack).removeChildAt(closedTab);
             //adjust selectedIndex appropriately
             if (dataProvider.length == 0) {
                 selectedIndex = -1;
             } else if (closedTab < selectedTab) {
                 selectedIndex = selectedTab - 1;
             } else if (closedTab == selectedTab) {
                 selectedIndex = (selectedTab == 0 ? 0 : selectedTab - 1);
             } else {
                 selectedIndex = selectedTab;
I am showing you the whole  function, though I believe that the '//adjust selectedIndex  appropriately' part is not behind the problem. The problem occurs,  though, only when I am removing the last element from the taskbar (as far as I can tell) and it happens after this function has been called.
One thing I noticed, but it might be sort of a red herring, is that I can reproduce the error after working a little bit longer (20+ seconds lets say) in the particular Viewstack view - or it's not about time but rather about clicking on different buttons in my UI, I am simply guessing.
These are the locals of the LinearLayoutVector and its remove(index:uint) function at the time of the error thrown:
this: pendingInserts = null, pendingRemoves = null, pendingLength = -1, length = 0
local:
index = 0 (this causes the error as it equals this.length)
lastIndex = 0
intervalStart = 0
I suppose the length shouldn't be 0 or the function shouldn't be called at all - but I cannot affect that.
I would be very grateful if you could point me towards the direction for solving this, as it causes the whole UI to jam and the only solution is to restart the whole application.
Thank you,
xixixao

Similar Messages

  • F-04: give error message when clearing AP items with payment block key(R)

    Hi all,
    Customer wants to prevent payment for AP items with payment block key(BSEG-ZLSPR) .
    I want system giving error message when doing payment clearning with t-code:F-04.
    How can I realize it ?
    Thanks Grus!
    Lynn

    Please configure the following nodes properly:
    Financial Accounting>>Accounts Receivable and Accounts Payable>>Business Transactions>>Outgoing Payments Global Settings>>Payment Block Reasons>>Define Payment Block Reasons & Define Default Values for Payment Block
    For the error message: You may define a validation in OB28 with the help of ABAP consultant

  • Error occurs when executing an item in an inbox with more than 1000 entries

    Hi Everyone,
    One of our approvers in SRM experienced an error when his inbox contained more than 1000 entries .  Further execution on any inbox item produces errors.
    Would you know where to set the maximum allowable entries in a user's inbox? Can this be set thru SRM config or Basis functionality?
    We also searched for existing SAP Notes but found nothing.
    Your inputs and help are greatly appreciated.
    Thanks and Regards,
    Vhong

    Hello,
    The user has sent me the screen shot. But this has no error messages. The approval transaction shows an ITS screen/code with template 'bbpapproval/99/saplbw02_1200.html'
    However, we have a user in Quality where the page displays with no problem and with 1675 Entries.
    Do you think this is more of an ITS setting or any Template/JavaScript issues?
    I got this code (view source code) earlier today and the topmost header of the code is:
    <!--
    This page was created by the
    SAP Internet Transaction Server (ITS, Version 6200.1025.7214.5, Build 908978, Virtual Server Q36, Add. service info none, WGate-AGate Host esetnmw028, WGate-Instance Q36)
    All rights reserved.
    Creation time:  Mon Mar 15 07:21:39 2010
    Charset:        iso-8859-1
    Template:       bbpapproval/99/saplbw02_1200.html
    -->
    Regarding the not-so-good practice of approvers to have more than 1000 entries in their inbox, we are still in the process of planning on how to divide the task to different approvers since there is only one approver (Project Manager) for the related network.
    Thanks and Redards,
    Vhong

  • Error messages when clicking on items in manager's inbox--URGENT

    Hi,
    When the manager goes to his inbox & when he clicks ont he item to approve Leave Request, the following error messages are displaying
    1) Unable to perform the request. Try again and if the problem persists, inform your system administrator.
    2) Cannot find the navigation ID specified Default View.
    we checked using SM04 for locked sessions. There were no sessions remained for the user.
    Thanks,
    vv.

    Please check the Note 779075
    this should be available in your transaction SWFVISU
       Using transaction SWFVISU, check the following entries and correct these
       where required:
       TS12300097 Java WebDynpro
                        APPLICATION LeaveRequestApprover
                        PACKAGE sap.com/ess~lea
       TS12300116 Java WebDynpro
                        APPLICATION LeaveRequest
                        PACKAGE sap.com/ess~lea

  • Error messages when clicking on items in Manager's inbox--its urgent

    Hi,
    When the manager goes to his inbox & when he clicks ont he item to approve Leave Request, the following error messages are displaying
    1) Unable to perform the request. Try again and if the problem persists, inform your system administrator.
    2) Cannot find the navigation ID specified Default View.
    we checked using SM04 for locked sessions.  There were no sessions remained for the user.
    Thanks,
    vv.

    Please check the Note 779075
    this should be available in your transaction SWFVISU
       Using transaction SWFVISU, check the following entries and correct these
       where required:
       TS12300097 Java WebDynpro
                        APPLICATION LeaveRequestApprover
                        PACKAGE sap.com/ess~lea
       TS12300116 Java WebDynpro
                        APPLICATION LeaveRequest
                        PACKAGE sap.com/ess~lea

  • 6630 system error message when removie memcard

    i have rm-1 6630 6.03.08 when i remove memcard i have 64mb card then few min later a message display system error and no keys work display is on but light is off no call no dial nothing work i remove battery then restart phone again and mobile is working again whats reason?

    Then i guess there is nothing much you can do other then resetting or reformatting your phone.
    You can do it by following these steps:
    - A  soft reset by keying in *#7370# when on standby - This will reformat the phone. DO NOT FORGET TO DO A BACK UP AS THIS WILL ERASE YOUR ENTIRE PHONE MEMORY.
    The security code by default is 12345
    If this fails as well then you may try doing the Hard reset by performing the 3 finger reset. You can do this by switching the phone on with the '3', '*' and green 'call' buttons pressed at the same time.
    Mark me a KUDOS if this has helped...

  • Error handling when removing expired stuff

    8.1.7.1.0 on Sun...
    Trying to delete expired backups when, in fact, there aren't any expired backups does not return an error. And it shouldn't. This is correct.
    Trying to delete expired backup sets older than a specific date when there aren't any returns an error message. Why?
    Regards,
    per
    RMAN> delete expired backup of archivelog all ;
    RMAN-03022: compiling command: delete expired
    RMAN-03023: executing command: delete expired
    RMAN-03023: executing command: partial resync
    RMAN> delete expired backup of archivelog until time 'sysdate -14' ;
    RMAN-03022: compiling command: delete expired
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: delete expired
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20242: specification does not match any archivelog in the
    recovery catalog

    Thanks for responding.
    I suppose I could instruct an operator to disregard certain
    error messages. What4s more troublesome is that RMAN returns
    error status and that's really not the kind of help you want
    when trying to create shell scripts... :(
    I4d be interested to learn how others deal with this.
    rgds, per

  • Error 1723 when removing scom 2012 sp1 agent

    Hi All,
    I am trying to remove the scom 2012 SP1 agent from a machine and i get an error - 'Error 1723. There is a problem
    with this Windows Installer package. A DLL required for this install to complete could not be run.
    Any idea how can i remove the agent from the box. Let me now if any other info required to give a hint to the problem.
    Durgesh Kumar

    Hi,
    Reinstall the agent, and the uninstall ? If possible, reboot the server and then uninstall?
    Same issue here:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/get-error-1723-there-is-a-problem-with-windows/3d68fc4b-c968-4796-a270-27027a52de3f?page=2
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Error encountered when Adding an Item style Flex in Search criteria

    Hi All,
    I am trying to add an Item style Flex in the Searchable region(search criteria region) ,then I have encountered an error saying
    Program error. Please inform your support representative that the descriptive flexfield in the application could not be found.
    Thanks
    AK

    Can I use the DFF which exists in different Responsibility,caz i am using the DFF which exists in Oreder Management and i am adding the DFF in Sales Contracts Workbench User Responsibility.
    Thnaks
    AK

  • Error message when ordered more items than it's available in stock.

    Hi again,
    I've noticed that on the Commerce Reference Store (CRS) if I order, let's say, 10 "branded belt black large" and there's only 5 available in stock my order goes through and the order's status is set to "Pending Merchant Action".
    Instead of this, I'd like to BLOCK the Order and display a message to the user. Something like: "There's only 5 items available".
    I was wondering what's the easiest way to customize this behaviour?
    Thanks!

    Insert a new pipeline processor in validatecheckout pipeline chain to do the inventory check.
    Peace
    Shaik

  • Error Occur when trying to select Item List

    Hi Experts,
    Machine gets Hang when trying to select Item List  in  row level PO,SO ect as well as in item master Data when Pressing Star ( * ) .
    and when trying to close this window then error occur as close the program and problem occur on server itself
    Test Database is working fine.
    worked around
    1.Restarted  the machine
    2.Restarted services
    using SBO 9.0 PL 7
    OS-Window 7 Professional
    Please Find the Two Error Attachments
    Please help me
    Thanks & Regards
    Navnath

    Hi
    Check the below thread
    SAPB1 Application Hang and Not responding when i serch item in any document
    With Regards
    Balaji Sampath

  • SharePoint Designer 2010 Error occurs when accessing Edit Form: "The server returned a non-specific error when trying to get data from the data source ..." This occurs when using "" in a calculated column in a SharePoint List

    I created a calculated column "Expiration Date" in SharePoint 2010 with formula, =IF([Contingent Hire]=TRUE,(Created+90),(IF([Contingent Hire]=FALSE," ")))
    This works in the SharePoint list but when I go to edit the Edit Form in Designer. I get the error specified in the title of this post. I'm trying to make it so the Expiration Date is blank when another column, "Contingent Hire" (a YES/No
    column) is FALSE.
    The Edit Form is essentially a DataViewWebpart. If I remove the " ", like so, "(IF([Contingent Hire]=FALSE,))" from the calc column, the error goes away; however, the Expiration Date field does not
    remain blank like I want it to.
    Does anyone have any suggestions? (Below is the error generated when I open Designer and then try to open the Edit form for the corresponding list containing the calc column)
    JackSki123

    Hi Jack,
    Could you provide a screenshot about this issue?
    As Dimitri suggested, you can install the update for your SharePoint Designer and check again.
    And you can also check if you can display "NA" instead of " " in your calculated column per the following post.
    http://rajeshspillai.blogspot.in/2012/03/server-returned-non-specific-error-when.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • Error message reads, " Wizard Interuppted before InDesign CS2 was comletely installed" when removing

    Adobe Tech Support no longer supports CS2 since the release of CS4 and has referred me to knowledgebase and the forum for help.
    This is my original problem:
    When you try to start Adobe InDesign CS2, or Adobe InCopy CS2, the application returns one of the following error messages:
    -- "Could not personalize your copy of [application] because of missing or invalid personalization information."
    -- "Please personalize your copy of [application] to continue the setup process."
    -- "The serial number you provided is not valid. Please check your serial number and re-enter it"
    I was referred to:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=331649
    The instructions for all methods require that I remove InDesign, but I get an error message that says "Wizard Interuppted before InDesign CS2 was completely installed" when removing.
    My OS is Windows XP. Any help is highly appreciated.
    Thank you!

    Step one is to back up your computer in case anything goes wrong.
    Once you've done that, look at http://kb.adobe.com/selfservice/viewContent.do?externalId=331300 which lists all the folder locations for the creative suite along with the registry keys. It says you should uninstall using ad/remove, but if this doesn't work it should be OK to remove things manually and edit the registry, then run the Windows Installer Cleanup Utility.
    At that point you should reboot and you should be able to try installing again.

  • Help needed in removing duplicate items of list box  in java

    How to remove duplicate items of list box while dynamically inserting (on-click event)
    It is not identifying duplicate data
    Variable name is HP_G1
    HP_dmg1 = (DefaultListModel) HP_G1.getModel();
    int a = HP_G1.getModel().getSize();
    System.out.println("HP list no--------> "+a);
    if(a!=0)
    for (int j=0; j<a; j++)
    String item1 = String.valueOf(HP_List.getModel().getElementAt(j));
    System.out.println("HP list added--------> "+item1);
    if(HP_dmg1.equals(item1)){
    HP_dmg1.remove(j);
    else
    HP_dmg1.addElement(GPL);
    }

    Your code is unreadable, so I'll ignore it. In the future please press the message editor's CODE button to format code.
    As to your problem, to the point you normally use a Set instead of List when you don't want duplicates in a collection.

  • Macbook pro - iPhoto keep prompting to update after Yosemite update. Error message when trying to update -This update is not available for this Apple ID either because it was bought by a different user or the item was cancelled

    macbook pro - iPhoto keep prompting to update after Yosemite update. Error message when trying to update -This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled. 

    I only have 1 apple ID and the same was used to set up this early 2011 macbook pro and iPhoto app. I don't want to loose out on any photos. I tried logging out of app store and back in but no luck. PLEEAASEE HELPP!!!
    This problem has been reported by quite a few forum members, who skipped the update to iPhoto 9.5.1 while running Mavericks. In that case try to purchase iPhoto again instead of updating.
    After making your backup try the following:
    Uninstall iPhoto by deleting it from the applications folder, but do not empty the Trash.
    Launch the App Store, click the "Store" menu, and sign in with your AppleID.
    Open the main page of the App Store and search for iPhoto.
    If iPhoto is listed as "Free", click the "Free" button to buy it with your current AppleID.
    If it is not showing as free, there is no help but contacting the App Store Support, as Niel pointed out: http://www.apple.com/support/mac/app-store/contact/

Maybe you are looking for

  • GarageBand file share with friend

    I realize we can email the music file but is their anyway to send the garage band file so that my drummer can work on the file? Is there some type of work around? We are both PC based but work on music remotely with the iPad.

  • How to update Flash Builder 4 beta 2 so that it remains compatible with snapshots?

    I have Flash Builder 4 beta 2 STANDALONE installed on my Mac (MacOSX 10.6) and I just upgraded my Flex SDK to the latest stable snapshot (4.0.0.13875). Now it seems that the visual designer is not very happy with this upgrade. And in "Using Gumbo bui

  • What are these lines around a table?

    Probably a basic question, but I've run across something in Dreamweaver that is a little maddening... When I create tables with 0 cellpadding or cell spacing, I'm still getting hairline "borders" around my table cells - if anyone can see the problem

  • GetClob giving  500 error

    Hello Techies, I am trying to retrieve the clob from result set. I am calling this from a jsp. My idea is if the datatype is clob, then I retrieving the clob usng rs.getClob(). Here is my code.   if(dataType.equals("CLOB"))               System.out.p

  • Cells and JTable

    Yes! I'm back again... This time, I will like to know how to get the text in a cell of a JTable component wrapping on to multiple lines as the escape characters \n and \r ain't working. Thank you. William