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

Deletion of invalid (columnless) models causes NPE

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.5
    • Fix Version/s: 8.5.1, 8.6
    • Component/s: None
    • Labels:
      None

      Description

      I imported all of the SYS views of Oracle 11g which results in a number of tableless columns.
      I have done something similar before and 'cleaned it up' by deleting them after the fact but given another bug of re-using models created in a prior release in a more current workspace/vdb I am re-importing/cleaning up.
      The issue is now I get NPE when I select several of these tables and click delete.

      org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException))
      at org.eclipse.swt.SWT.error(SWT.java:4397)
      at org.eclipse.swt.SWT.error(SWT.java:4312)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)
      at org.teiid.designer.ui.common.actions.AbstractAction.run(AbstractAction.java:547)
      at org.teiid.designer.ui.explorer.ModelExplorerResourceNavigator.handleKeyPressed(ModelExplorerResourceNavigator.java:1738)
      at org.eclipse.ui.views.navigator.ResourceNavigator$8.keyPressed(ResourceNavigator.java:507)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
      at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108)
      at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
      at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1827)
      at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4975)
      at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6137)
      at org.eclipse.swt.widgets.Control.windowProc(Control.java:4643)
      at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:6005)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:4977)
      at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      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:354)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      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:636)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      Caused by: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
      at org.eclipse.swt.SWT.error(SWT.java:4397)
      at org.eclipse.swt.SWT.error(SWT.java:4312)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)
      at org.teiid.designer.ui.common.actions.AbstractAction.run(AbstractAction.java:547)
      at org.teiid.designer.ui.actions.DeleteAction.doRun(DeleteAction.java:335)
      at org.teiid.designer.ui.common.actions.AbstractAction$1.run(AbstractAction.java:544)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      ... 45 more
      Caused by: java.lang.NullPointerException
      at org.teiid.designer.core.refactor.ObjectDeleteCommand.setObjectsToDelete(ObjectDeleteCommand.java:97)
      at org.teiid.designer.ui.actions.workers.DeleteWorker.createObjectDeleteCommand(DeleteWorker.java:155)
      at org.teiid.designer.ui.actions.DeleteEObjectAction.doRun(DeleteEObjectAction.java:83)
      at org.teiid.designer.ui.common.actions.AbstractAction$1.run(AbstractAction.java:544)
      at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      ... 56 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                blafond Barry LaFond
                Reporter:
                virtualdatabase Tom Johnston
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: