Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-692

Undo Clear Transformation gets Index Out of Bound exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.1
    • 7.1.1
    • Editors
    • None
    • Hide

      1 - Start the Designer
      2 - Create Project
      3 - Import Books
      4 - Create view model
      5 - Add a base table
      6 - Add a source table to the transformation
      7 - Right-click the source table > Clear Transformation
      8 - Remove all symbols
      9 - After all has settled down, Edit > Undo Clear Transaction
      It was here that I got the exception

      Show
      1 - Start the Designer 2 - Create Project 3 - Import Books 4 - Create view model 5 - Add a base table 6 - Add a source table to the transformation 7 - Right-click the source table > Clear Transformation 8 - Remove all symbols 9 - After all has settled down, Edit > Undo Clear Transaction It was here that I got the exception

    Description

      If a transformation is cleared, undo-ing the clear operation fails with an index out of bounds exception.

      Error 2010-10-28 12:28:55.390 Error processing Undo: Clear Transformation
      org.eclipse.emf.common.util.AbstractEList$BasicIndexOutOfBoundsException: index=1, size=0
      at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:338)
      at org.eclipse.emf.edit.command.RemoveCommand.doUndo(RemoveCommand.java:471)
      at org.eclipse.emf.edit.command.AbstractOverrideableCommand.undo(AbstractOverrideableCommand.java:162)
      at org.eclipse.emf.common.command.CompoundCommand.undo(CompoundCommand.java:333)
      at com.metamatrix.modeler.internal.core.transaction.UndoableImpl.undo(UndoableImpl.java:75)
      at com.metamatrix.modeler.internal.ui.undo.ModelerUndoManager.undo(ModelerUndoManager.java:306)
      at com.metamatrix.modeler.internal.ui.actions.UndoAction.performAction(UndoAction.java:49)
      at com.metamatrix.modeler.internal.ui.actions.AbstractUndoRedoAction$1.run(AbstractUndoRedoAction.java:84)
      at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
      at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
      at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
      at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
      at com.metamatrix.modeler.internal.ui.actions.AbstractUndoRedoAction.doRun(AbstractUndoRedoAction.java:97)
      at com.metamatrix.ui.actions.AbstractAction$1.run(AbstractAction.java:537)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at com.metamatrix.ui.actions.AbstractAction.run(AbstractAction.java:540)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetAction.java:230)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

      Attachments

        Activity

          People

            blafond Barry LaFond
            pnittel_jira Paul Nittel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: