最近,我从事数据虚拟化工作,以跨部门集成数据。在搜索了几个软件后,我决定使用Redhat JBOSS数据虚拟化,因为该软件是开源的。我已经安装了JDK,JBOSS Studio和数据虚拟化插件来运行Teiid。之后,我在Teeid模型项目上开始了新项目,进行了一些配置,所有过程都很顺利,没有错误。但是当我即将进行最终进展时,哪个进程正在执行vdb,我发现了错误。
第一行错误消息是:
无法部署以下 VDB 进行执行:[vdb 的名称]。
在第二行它告诉:
获取连接配置文件属性时出错。
当我右键单击错误时,然后选择事件详细信息以弹出事件详细信息窗口。
我发现这个:
插件 : org.teiid.datatools.cennectivity 严重性:错误 消息:获取连接配置文件属性时出错
异常堆栈跟踪:
java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at org.teiid.datatools.connectivity.ConnectivityUtil.acquireDriverDefinition(ConnectivityUtil.java:190) at org.teiid.datatools.connectivity.ConnectivityUtil.createVDBTeiidProfileProperties(ConnectivityUtil.java:294) at org.teiid.designer.runtime.ui.vdb.ExecuteVdbWorker.processForDTP(ExecuteVdbWorker.java:192) at org.teiid.designer.runtime.ui.vdb.ExecuteVdbWorker.executeVdb(ExecuteVdbWorker.java:142) at org.teiid.designer.runtime.ui.vdb.ExecuteVdbWorker.internalRun(ExecuteVdbWorker.java:104) at org.teiid.designer.runtime.ui.vdb.ExecuteVdbWorker$1.run(ExecuteVdbWorker.java:83) 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(Syncr.java:136) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3994) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3671) 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.runtime.ui.vdb.ExecuteVdbWorker.run(ExecuteVdbWorker.java:79) at org.teiid.designer.runtime.ui.actions.ExecuteVDBAction.run(ExecuteVDBAction.java:123) at org.eclipse.jface.action.Action.runWithEvent(Action.java:519) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) 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:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
我尝试查看配置JDBC或vdb上是否缺少某些内容,但在搜索时没有得到任何结果。
我希望有人可以帮助我解决此错误。我将不胜感激任何答案或建议。
我相信您没有添加 JDBC 驱动程序来连接到源代码。第一步是使用 JDBC 驱动程序创建到源数据库的连接配置文件(如果您正在访问 RDBMS),然后导入元数据,然后构建 VDB。