Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Getting started with Ecore ODA Driver
Getting started with Ecore ODA Driver [message #590704] Tue, 01 April 2008 13:15
Hajo Eichler is currently offline Hajo EichlerFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I checked out
org.eclipse.datatools.enablement.oda.ecore &
org.eclipse.datatools.enablement.oda.ecore.ui

and after some update of EMF Transaction, Query and Search I got them compiled and
could put the two plug-ins into my birt-report-designer-all-in-one-2_2_2.

After adding all depended plug-ins there, I finally get a new Data Source Type:
"Ecore ODA Data Source". Heureka ;-)

Now, I am somehow lost, since the data source asks me for 3 properties:
1) The ecore file: Here I put "platform:/resource/simpleTest/mindmap.ecore" Ok?
2) "Connection Profile Name" ... foobar should do it?
3) "Connection Profile Store URL" - can some explain the secrets behind?
Here I tried several thing: file, http and platform URL/Is.

But anytime I want to create a new Data Set, I get the attached exception.
So, it seems that I have some URI/URL Problem.

Can anyone help me out here?

When I got successfully through it, I would help to extend the current wiki page
(http://wiki.eclipse.org/Ecore_ODA_Driver-Proposal) with a small HowTo summarizing
my experience.

Thanks & Cheers,
Hajo


java.lang.NullPointerException
at org.eclipse.emf.common.util.URI.createURIWithCache(URI.java: 658)
at org.eclipse.emf.common.util.URI.createURI(URI.java:536)
at
org.eclipse.datatools.enablement.oda.ecore.impl.Connection.g etModel(Connection.java:67)
at
org.eclipse.datatools.enablement.oda.ecore.impl.Connection.o pen(Connection.java:55)
at
org.eclipse.datatools.connectivity.oda.consumer.helper.OdaCo nnection.open(OdaConnection.java:235)
at
org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.o penConnection(ConnectionManager.java:145)
at
org.eclipse.birt.data.engine.executor.DataSource.newConnecti on(DataSource.java:134)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSo urce.java:121)
at
org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiD ataSource(DataSourceRuntime.java:214)
at
org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSour ce(QueryExecutor.java:265)
at
org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecu tion(QueryExecutor.java:210)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(Pr eparedQuery.java:500)
at
org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDataSourceQuery.java:161)
at
org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery.execute (PreparedOdaDSQuery.java:142)
at
org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.ex ecute(PreparedDataSourceQuery.java:141)
at
org.eclipse.birt.report.data.adapter.impl.QueryExecutionHelp er.executeQuery(QueryExecutionHelper.java:113)
at
org.eclipse.birt.report.data.adapter.impl.QueryExecutionHelp er.executeQuery(QueryExecutionHelper.java:92)
at
org.eclipse.birt.report.data.adapter.impl.DataSetMetaDataHel per.getRealMetaData(DataSetMetaDataHelper.java:147)
at
org.eclipse.birt.report.data.adapter.impl.DataSetMetaDataHel per.getDataSetMetaData(DataSetMetaDataHelper.java:101)
at
org.eclipse.birt.report.data.adapter.impl.DataRequestSession Impl.getDataSetMetaData(DataRequestSessionImpl.java:168)
at
org.eclipse.birt.report.designer.data.ui.util.DataSetProvide r.populateAllOutputColumns(DataSetProvider.java:186)
at
org.eclipse.birt.report.designer.data.ui.util.DataSetProvide r.getCachedDataSetItemModel(DataSetProvider.java:793)
at
org.eclipse.birt.report.designer.data.ui.dataset.DataSetEdit or$ItemModelManager.start(DataSetEditor.java:879)
at
org.eclipse.birt.report.designer.data.ui.dataset.DataSetEdit or. <init>(DataSetEditor.java:224)
at
org.eclipse.birt.report.designer.ui.actions.NewDataSetAction .editDataSet(NewDataSetAction.java:221)
at
org.eclipse.birt.report.designer.ui.actions.NewDataSetAction .createNewDataSet(NewDataSetAction.java:161)
at
org.eclipse.birt.report.designer.ui.actions.NewDataSetAction .run(NewDataSetAction.java:142)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Previous Topic:ODA with POJOs
Next Topic:Final connectivity usability design for review until 4/11
Goto Forum:
  


Current Time: Thu Nov 26 07:36:54 GMT 2020

Powered by FUDForum. Page generated in 0.01359 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top