Teiid Designer Preview fails with "NullPointerException"

Solution Verified - Updated -

Issue

  • After importing source model, trying to preview on one of it's tables fails and the .log shows below:
Severity: Error
Date: 6/26/19, 3:43 PM
Message: Unhandled event loop exception

Exception stack trace:

ava.lang.NullPointerException
    at org.teiid.designer.transformation.ddl.TeiidModelToDdlGenerator.getName(TeiidModelToDdlGenerator.java:330)
    at org.teiid.designer.transformation.ddl.TeiidModelToDdlGenerator.getContraints(TeiidModelToDdlGenerator.java:928)
    at org.teiid.designer.transformation.ddl.TeiidModelToDdlGenerator.table(TeiidModelToDdlGenerator.java:382)
    at org.teiid.designer.transformation.ddl.TeiidModelToDdlGenerator.getStatement(TeiidModelToDdlGenerator.java:189)
    at org.teiid.designer.runtime.preview.PreviewManager$ModelFragmentInfo.getModelXml(PreviewManager.java:797)
    at org.teiid.designer.runtime.preview.PreviewManager$ModelFragmentInfo.access$0(PreviewManager.java:751)
    at org.teiid.designer.runtime.preview.PreviewManager.createDynamicVdb(PreviewManager.java:371)
    at org.teiid.designer.runtime.preview.PreviewManager.createDynamicVdb(PreviewManager.java:346)
    at org.teiid.designer.runtime.preview.PreviewManager.generateDynamicVdb(PreviewManager.java:140)
    at org.teiid.designer.runtime.preview.PreviewManager.getDynamicVdbStatus(PreviewManager.java:111)
    at org.teiid.designer.runtime.ui.preview.PreviewDataWorker.internalRun(PreviewDataWorker.java:328)
    at org.teiid.designer.runtime.ui.preview.PreviewDataWorker.run(PreviewDataWorker.java:209)
    at org.teiid.designer.runtime.ui.preview.PreviewTableDataContextAction.run(PreviewTableDataContextAction.java:101)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
    at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5348)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1348)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4602)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4183)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

Environment

  • Red Hat JBoss Data Virtualization (DV) 6.4
  • Red Hat JBoss Developer Studio (JBDS) 11.3
  • Teiid Designer plugin for JBDS 11.1.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In