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

Assertion error trying to Delete a file

XMLWordPrintable

    • Hide

      Reproduce step:
      1.New Model Project in Model Explorer editor
      2.New VDB (or other stuff like java file)
      3.Right click the .vdb file and click delete
      4. In Delete dialog, click Preview ---> then click Back ---> then click OK ,you will see the error dialogue window and cannot delete this file.

      Show
      Reproduce step: 1.New Model Project in Model Explorer editor 2.New VDB (or other stuff like java file) 3.Right click the .vdb file and click delete 4. In Delete dialog, click Preview ---> then click Back ---> then click OK ,you will see the error dialogue window and cannot delete this file.

      When deleting a VDB in a model project, it'll fail if you click Preview, then Back, then OK

      Stack trace is below and it appears that by Previewing the a refactor action (Delete in this case) and clicking Back does not clear the original change, so clicking OK ends up trying to apply duplicate changes. I tested the Preview/Back a couple of times and verified it's adding a duplicate change each time.

      org.eclipse.core.runtime.CoreException: assertion failed: DeleteResourcesRefactoring class is adding a 
      	at org.teiid.designer.ui.refactor.delete.DeleteResourcesRefactoring.createChange(DeleteResourcesRefactoring.java:232)
      	at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:124)
      	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:209)
      	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
      	at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
      !SUBENTRY 1 org.teiid.designer.ui.refactor.delete 4 0 2015-04-06 08:26:20.007
      !MESSAGE assertion failed: 
      

              blafond Barry LaFond
              blafond Barry LaFond
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: