14 Replies Latest reply on Mar 29, 2013 12:42 PM by skethire

    Error creating view models from source model   Was: Error creating model from flat file datasource

    skethire Newbie

      I am trying to create a source model based on the flat files available in datafederation quickstart example.

      I am using Teiid Desinger 8.0, with Eclipse Juno.

       

      I am able to successfully create the source model, but in the last step, when the wizard creates a view model I am getting the following error. 

       

      org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoSuchMethodError: org.eclipse.ui.internal.PopupMenuExtender.<init>(Ljava/lang/String;Lorg/eclipse/jface/action/MenuManager;Lorg/eclipse/jface/viewers/ISelectionProvider;Lorg/eclipse/ui/IWorkbenchPart;)V))

                at org.eclipse.swt.SWT.error(SWT.java:4361)

                at org.eclipse.swt.SWT.error(SWT.java:4276)

                at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)

                at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)

                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.editors.ModelEditorManager.open(ModelEditorManager.java:341)

                at org.teiid.designer.ui.editors.ModelEditorManager.openInEditMode(ModelEditorManager.java:326)

                at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportProcessor.createViewModelInTxn(TeiidMetadataImportProcessor.java:216)

                at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportProcessor.access$4(TeiidMetadataImportProcessor.java:195)

                at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportProcessor$1.execute(TeiidMetadataImportProcessor.java:86)

                at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)

                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)

                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 org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportProcessor.execute(TeiidMetadataImportProcessor.java:94)

                at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportWizard$1.run(TeiidMetadataImportWizard.java:176)

                at org.teiid.designer.ui.common.util.UiUtil.runInSwtThread(UiUtil.java:464)

                at org.teiid.designer.transformation.ui.wizards.file.TeiidMetadataImportWizard.finish(TeiidMetadataImportWizard.java:173)

                at org.teiid.designer.ui.common.wizard.AbstractWizard.performFinish(AbstractWizard.java:356)

                at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)

                at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)

                at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)

                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

                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:4169)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)

                at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)

                at org.eclipse.jface.window.Window.open(Window.java:801)

                at org.teiid.designer.ui.viewsupport.ModelerUiViewUtils$7.run(ModelerUiViewUtils.java:251)

                at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)

                at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)

                at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)

                at org.teiid.designer.ui.viewsupport.ModelerUiViewUtils.launchWizard(ModelerUiViewUtils.java:234)

                at org.teiid.designer.ui.viewsupport.ModelerUiViewUtils$5.run(ModelerUiViewUtils.java:179)

                at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)

                at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)

                at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)

                at org.teiid.designer.ui.viewsupport.ModelerUiViewUtils.launchWizard(ModelerUiViewUtils.java:161)

                at org.teiid.designer.advisor.ui.actions.AdvisorActionFactory.launchWizard(AdvisorActionFactory.java:840)

                at org.teiid.designer.advisor.ui.actions.AdvisorActionFactory.executeAction(AdvisorActionFactory.java:410)

                at org.teiid.designer.advisor.ui.actions.AdvisorActionFactory.executeAction(AdvisorActionFactory.java:398)

                at org.teiid.designer.advisor.ui.actions.AdvisorActionFactory$1.run(AdvisorActionFactory.java:1093)

                at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

                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:4169)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)

                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)

                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)

                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)

                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                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:353)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

                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:629)

                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

                at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

                at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

      Caused by: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoSuchMethodError: org.eclipse.ui.internal.PopupMenuExtender.<init>(Ljava/lang/String;Lorg/eclipse/jface/action/MenuManager;Lorg/eclipse/jface/viewers/ISelectionProvider;Lorg/eclipse/ui/IWorkbenchPart;)V)

                at org.eclipse.swt.SWT.error(SWT.java:4361)

                at org.eclipse.swt.SWT.error(SWT.java:4276)

                at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)

                at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)

                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.table.ModelTableEditor.pageChange(ModelTableEditor.java:575)

                at org.teiid.designer.ui.table.ModelTableEditor$1.widgetSelected(ModelTableEditor.java:200)

                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

                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.Widget.sendEvent(Widget.java:1077)

                at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1094)

                at org.eclipse.swt.widgets.TabFolder.createItem(TabFolder.java:251)

                at org.eclipse.swt.widgets.TabItem.<init>(TabItem.java:112)

                at org.teiid.designer.ui.table.ModelTableEditor.createTab(ModelTableEditor.java:420)

                at org.teiid.designer.ui.table.ModelTableEditor.addTab(ModelTableEditor.java:397)

                at org.teiid.designer.ui.table.ModelTableEditor.addTab(ModelTableEditor.java:281)

                at org.teiid.designer.ui.table.ModelTableEditor.addTable(ModelTableEditor.java:623)

                at org.teiid.designer.ui.table.TableNotificationHandler.handleSingleResourceNotification(TableNotificationHandler.java:482)

                at org.teiid.designer.ui.table.TableNotificationHandler.handleSingleNotification(TableNotificationHandler.java:204)

                at org.teiid.designer.ui.table.TableNotificationHandler.handleNotification(TableNotificationHandler.java:170)

                at org.teiid.designer.ui.table.TableNotificationHandler.notifyChanged(TableNotificationHandler.java:82)

                at org.teiid.designer.ui.editors.ModelEditor$5.run(ModelEditor.java:1143)

                at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

                at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)

                ... 75 more

      Caused by: java.lang.NoSuchMethodError: org.eclipse.ui.internal.PopupMenuExtender.<init>(Ljava/lang/String;Lorg/eclipse/jface/action/MenuManager;Lorg/eclipse/jface/viewers/ISelectionProvider;Lorg/eclipse/ui/IWorkbenchPart;)V

                at org.teiid.designer.ui.editors.ModelEditorSite.registerContextMenu(ModelEditorSite.java:255)

                at org.teiid.designer.ui.editors.AbstractModelEditorPageActionBarContributor.createContextMenu(AbstractModelEditorPageActionBarContributor.java:103)

                at org.teiid.designer.ui.table.ModelTableEditorActionContributor.createContextMenu(ModelTableEditorActionContributor.java:82)

                at org.teiid.designer.ui.editors.ModelEditor.initializeEditor(ModelEditor.java:356)

                at org.teiid.designer.ui.editors.MultiPageModelEditor.initializePage(MultiPageModelEditor.java:223)

                at org.teiid.designer.ui.editors.MultiPageModelEditor.initializePage(MultiPageModelEditor.java:192)

                at org.teiid.designer.ui.editors.ModelEditor.openModelObject(ModelEditor.java:998)

                at org.teiid.designer.ui.editors.ModelEditor.openModelObject(ModelEditor.java:971)

                at org.teiid.designer.ui.editors.ModelEditorManager$5.run(ModelEditorManager.java:347)

                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)

                ... 100 more

       

      After this error, the table shows up in the Package Diagram, but disappears after saving.  The table is visible from the Table Editor view, but when I click on it, I am seeing the following error:

       

      java.lang.NullPointerException

                at org.teiid.designer.ui.table.ModelTableEditor$ModelObjectSelectionManager.selectionChanged(ModelTableEditor.java:942)

                at org.teiid.designer.ui.common.eventsupport.SelectionProvider.fireSelectionChangedEvent(SelectionProvider.java:148)

                at org.teiid.designer.ui.common.eventsupport.SelectionProvider.setSelection(SelectionProvider.java:135)

                at org.teiid.designer.ui.common.eventsupport.SelectionProvider.setSelection(SelectionProvider.java:116)

                at org.teiid.designer.ui.table.ModelObjectTableSelectionManager.selectionChanged(ModelObjectTableSelectionManager.java:88)

                at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)

                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

                at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)

                at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

                at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)

                at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)

                at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)

                at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)

                at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)

                at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)

                at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)

                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:4169)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)

                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)

                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)

                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)

                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                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:353)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

                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:629)

                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

                at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

                at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

       

      Any pointers?

       

      Thanks

      srini