Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [ECP][CDO] Use CDO Provider for EMFStore in ECP
[ECP][CDO] Use CDO Provider for EMFStore in ECP [message #1463164] Thu, 06 November 2014 09:24 Go to next message
Felix S is currently offline Felix SFriend
Messages: 7
Registered: November 2014
Junior Member
Hi,

I'm trying to use the CDO Provider in ECP. I run a CDO Server (I followed descriptions from http:/ /www.rcp-vision.com/?p=1285&lang=en). Also I installed the CDO Model Repository 4.2 from Market Place as well as MySQL Connector/J and also Net4j DB Framework MYSQL Adapter (and the H2 Adapter) from their update sites.

A simple headless Unit test runs successful for H2. When I provide the functionality of the Unit Test in my product via a Menu Command, everything is fine for H2, too. But for MySQL I get a nested Exception: org.eclipse.e4.core.di.InjectionException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: 1 (Das System kann die angegebene Datei nicht finden). It is thrown, when I request a resource from the transaction. (The same code runs with H2 without any problems). The test is basically this:
	CDONet4jSession session = new CdoTestHandler().openSession("launch");
	CDOTransaction transaction = session.openTransaction();
	CDOResource resource = transaction.createResource("TestRes");

Nevertheless I tried working with H2. When I start the product, I get a NumberFormatException:
java.lang.NumberFormatException: null
	at java.lang.Long.parseLong(Unknown Source)
	at java.lang.Long.parseLong(Unknown Source)
	at org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceImpl.loadProperties(CDOWorkspaceImpl.java:964)
	at org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceImpl.<init>(CDOWorkspaceImpl.java:160)
	at org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceConfigurationImpl.open(CDOWorkspaceConfigurationImpl.java:131)
	at org.eclipse.emf.ecp.cdo.internal.core.CDOProjectData.getWorkspace(CDOProjectData.java:62)
	at org.eclipse.emf.ecp.cdo.internal.core.CDOProjectData.getTransaction(CDOProjectData.java:87)
	at org.eclipse.emf.ecp.cdo.internal.core.CDOProvider.getElements(CDOProvider.java:182)
	at org.eclipse.emf.ecp.internal.core.ECPProviderRegistryImpl$ProviderDescriptor.getElements(ECPProviderRegistryImpl.java:247)
	at org.eclipse.emf.ecp.internal.core.ECPProjectImpl.getContents(ECPProjectImpl.java:564)
	at org.eclipse.emf.ecp.internal.validation.ValidationServiceProvider.getAllChildEObjects(ValidationServiceProvider.java:73)
	at org.eclipse.emf.ecp.internal.validation.ValidationServiceProvider.getValidationService(ValidationServiceProvider.java:62)
	at org.eclipse.emf.ecp.validation.connector.Activator.getValidationService(Activator.java:101)
	at org.eclipse.emf.ecp.validation.connector.ValidationFailedDecorator.decorate(ValidationFailedDecorator.java:52)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

To avoid the NumberFormatException, in org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceImpl I bypassed in loadProperties() the assignment of the timestamp property and set instead new Date().getTime(). It's a rough quickfix but it works...

After this fix and after adding a CDO Repository everything ssems to be fine. Collasping a repository, produces the following:
org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found: org.eclipse.net4j.connectors[null]
	at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
	at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:562)
	at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
	at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
	at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
	at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
	at org.eclipse.emf.ecp.cdo.internal.core.CDORepositoryData.createSessionConfiguration(CDORepositoryData.java:60)
	at org.eclipse.emf.ecp.cdo.internal.core.CDOProvider.fillChildren(CDOProvider.java:162)
	at org.eclipse.emf.ecp.internal.core.ECPProviderRegistryImpl$ProviderDescriptor.fillChildren(ECPProviderRegistryImpl.java:216)
	at org.eclipse.emf.ecp.internal.ui.model.ECPContentProvider.fillChildren(ECPContentProvider.java:50)
	at org.eclipse.emf.ecp.internal.ui.model.RepositoriesContentProvider.fillChildren(RepositoriesContentProvider.java:90)
	at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.fillChildrenDetectError(TreeContentProvider.java:193)
	at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider$SlowChildrenList.run(TreeContentProvider.java:290)
	at java.lang.Thread.run(Unknown Source)

I can fix this issue, when I pass in org.eclipse.emf.ecp.cdo.core.createSessionConfiguration() my own properties. The ECPProperties are null and I'm not sure, where to define them.
	String connectorType = properties.getValue(CDOProvider.PROP_CONNECTOR_TYPE);
	String connectorDescription = properties.getValue(CDOProvider.PROP_CONNECTOR_DESCRIPTION);
	String repositoryName = properties.getValue(CDOProvider.PROP_REPOSITORY_NAME);


Adding a Model Element to the project runs into several NPEs
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.ecp.editor.e3.MEEditorInput.equals(MEEditorInput.java:95)
	at org.eclipse.ui.internal.NavigationHistory.createEntry(NavigationHistory.java:643)
	at org.eclipse.ui.internal.NavigationHistory.addEntry(NavigationHistory.java:371)
	at org.eclipse.ui.internal.NavigationHistory.access$10(NavigationHistory.java:352)
	at org.eclipse.ui.internal.NavigationHistory$2.run(NavigationHistory.java:199)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 24 more


I also tried the way with MySQL, here I have also some errors. The RegistryNotFoundException occurs also with MySQL, here my Quickfix works also. The NumberFormatException occurs not. But additionally I get a StringOutOfBoundsException, when I try to checkout a repository (after confirming the name of the new project). The exception occurs even for names with more then 80 characters.
java.lang.StringIndexOutOfBoundsException: String index out of range: -80
	at java.lang.String.substring(Unknown Source)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getName(AbstractMappingStrategy.java:397)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getTableName(AbstractMappingStrategy.java:354)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractListTableMapping.initTable(AbstractListTableMapping.java:93)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractListTableMapping.<init>(AbstractListTableMapping.java:87)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AuditListTableMapping.<init>(AuditListTableMapping.java:47)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalAuditMappingStrategy.doCreateListMapping(HorizontalAuditMappingStrategy.java:54)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.createListMapping(AbstractMappingStrategy.java:758)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractHorizontalClassMapping.initFields(AbstractHorizontalClassMapping.java:169)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractHorizontalClassMapping.<init>(AbstractHorizontalClassMapping.java:106)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalAuditClassMapping.<init>(HorizontalAuditClassMapping.java:94)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalAuditMappingStrategy.doCreateClassMapping(HorizontalAuditMappingStrategy.java:48)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.createClassMapping(AbstractMappingStrategy.java:636)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getClassMapping(AbstractMappingStrategy.java:684)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.createAllClassMappings(AbstractMappingStrategy.java:734)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.doGetClassMappings(AbstractMappingStrategy.java:710)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getClassMappings(AbstractMappingStrategy.java:699)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getClassMappings(AbstractMappingStrategy.java:694)
	at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.handleRevisions(AbstractMappingStrategy.java:199)
	at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalMappingStrategy.handleRevisions(HorizontalMappingStrategy.java:210)
	at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.handleRevisions(DBStoreAccessor.java:1085)
	at org.eclipse.emf.cdo.internal.server.Repository.handleRevisions(Repository.java:1509)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.HandleRevisionsIndication.responding(HandleRevisionsIndication.java:96)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndication.responding(CDOServerIndication.java:134)
	at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:98)
	at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:298)
	at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:67)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerReadIndication.execute(CDOServerReadIndication.java:36)
	at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
	at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

In Project Navigator are no changes. After restarting the product, I get an IllegalStateException:
java.lang.IllegalStateException: RootResourceID is null; is the repository not yet initialized?
	at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getRootResource(AbstractCDOView.java:316)
	at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getRootResource(AbstractCDOView.java:1)
	at org.eclipse.emf.ecp.cdo.internal.core.CDOProjectData.getRootResource(CDOProjectData.java:100)
	at org.eclipse.emf.ecp.cdo.internal.core.CDOProvider.fillChildren(CDOProvider.java:148)
	at org.eclipse.emf.ecp.internal.core.ECPProviderRegistryImpl$ProviderDescriptor.fillChildren(ECPProviderRegistryImpl.java:216)
	at org.eclipse.emf.ecp.internal.ui.model.ECPContentProvider.fillChildren(ECPContentProvider.java:50)
	at org.eclipse.emf.ecp.internal.ui.model.ModelContentProvider.fillChildren(ModelContentProvider.java:65)
	at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.fillChildrenDetectError(TreeContentProvider.java:193)
	at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.getChildrenList(TreeContentProvider.java:185)
	at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.hasChildren(TreeContentProvider.java:59)
	at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2146)
	at org.eclipse.jface.viewers.TreeViewer.isExpandable(TreeViewer.java:588)
	at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2176)
	at org.eclipse.jface.viewers.AbstractTreeViewer.optionallyPruneChildren(AbstractTreeViewer.java:2808)
	at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2608)
	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1923)
	at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1930)
	at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1898)
	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1855)
	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1841)
	at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1508)
	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
	at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1506)
	at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:544)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465)
	at org.eclipse.jface.viewers.ContentViewer.setLabelProvider(ContentViewer.java:311)
	at org.eclipse.jface.viewers.StructuredViewer.setLabelProvider(StructuredViewer.java:2215)
	at org.eclipse.jface.viewers.ColumnViewer.setLabelProvider(ColumnViewer.java:372)
	at org.eclipse.emf.ecp.spi.common.ui.TreeViewerFactory.createTreeViewer(TreeViewerFactory.java:66)
	at org.eclipse.emf.ecp.spi.common.ui.TreeViewerFactory.createTreeViewer(TreeViewerFactory.java:36)
	at org.eclipse.emf.ecp.ui.common.ECPViewerFactory.createModelExplorerViewer(ECPViewerFactory.java:52)
	at org.eclipse.emf.ecp.ui.views.ModelExplorerView.createViewer(ModelExplorerView.java:148)
	at org.eclipse.emf.ecp.ui.views.TreeView.createPartControl(TreeView.java:113)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:174)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
	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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
	at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:526)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:511)
	at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:61)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
	at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:581)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1042)
	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.emf.ecp.application3x.Application.start(Application.java:36)
	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)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

The project is added in the Project Tree now. Expanding the created project shows only an Error as Element... Here also adding model elements produces a NullPointerException...

I'm sorry for this long post :/
Re: [ECP][CDO] Use CDO Provider for EMFStore in ECP [message #1470580 is a reply to message #1463164] Wed, 12 November 2014 13:04 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Hi Felix,

I don't see an actual question in your long post but the stack traces indicate that the CDO Provider in ECP is not
working as expected for you. It's very long ago that I worked on this provider and right now (and most likely in the
coming months) I won't find time to work on it. Maybe this helps you to work around some problems:

1) The ECPProperties (IIRC.) in this case are set on the ECPRepository (either through a rightclick in the Repository
Explorer or programmatically).
2) I guess most problems would be in either the CDOProvider for ECP or in CDOWorkspaceImpl.
3) CDO is best tested by us with H2.

I fear if you want more help you need to ask more specific questions.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 06.11.2014 um 14:50 schrieb Felix S:
> Hi,
>
> I'm trying to use the CDO Provider in ECP. I run a CDO Server (I followed descriptions from http:/ /www.rcp-vision.com/?p=1285&lang=en). Also I installed the CDO Model Repository 4.2 from Market Place as well as MySQL Connector/J and also Net4j DB Framework MYSQL Adapter (and the H2 Adapter) from their update sites.
>
> A simple headless Unit test runs successful for H2. When I provide the functionality of the Unit Test in my product via a Menu Command, everything is fine for H2, too. But for MySQL I get a nested Exception: org.eclipse.e4.core.di.InjectionException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: 1 (Das System kann die angegebene Datei nicht finden). It is thrown, when I request a resource from the transaction. (The same code runs with H2 without any problems). The test is basically this:
>
> CDONet4jSession session = new CdoTestHandler().openSession("launch");
> CDOTransaction transaction = session.openTransaction();
> CDOResource resource = transaction.createResource("TestRes");
>
> Nevertheless I tried working with H2. When I start the product, I get a NumberFormatException:
>
> java.lang.NumberFormatException: null
> at java.lang.Long.parseLong(Unknown Source)
> at java.lang.Long.parseLong(Unknown Source)
> at org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceImpl.loadProperties(CDOWorkspaceImpl.java:964)
> at org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceImpl.<init>(CDOWorkspaceImpl.java:160)
> at org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceConfigurationImpl.open(CDOWorkspaceConfigurationImpl.java:131)
> at org.eclipse.emf.ecp.cdo.internal.core.CDOProjectData.getWorkspace(CDOProjectData.java:62)
> at org.eclipse.emf.ecp.cdo.internal.core.CDOProjectData.getTransaction(CDOProjectData.java:87)
> at org.eclipse.emf.ecp.cdo.internal.core.CDOProvider.getElements(CDOProvider.java:182)
> at org.eclipse.emf.ecp.internal.core.ECPProviderRegistryImpl$ProviderDescriptor.getElements(ECPProviderRegistryImpl.java:247)
> at org.eclipse.emf.ecp.internal.core.ECPProjectImpl.getContents(ECPProjectImpl.java:564)
> at org.eclipse.emf.ecp.internal.validation.ValidationServiceProvider.getAllChildEObjects(ValidationServiceProvider.java:73)
> at org.eclipse.emf.ecp.internal.validation.ValidationServiceProvider.getValidationService(ValidationServiceProvider.java:62)
> at org.eclipse.emf.ecp.validation.connector.Activator.getValidationService(Activator.java:101)
> at org.eclipse.emf.ecp.validation.connector.ValidationFailedDecorator.decorate(ValidationFailedDecorator.java:52)
> at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
> at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
> at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
> at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
> at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
> To avoid the NumberFormatException, in org.eclipse.emf.cdo.internal.workspace.CDOWorkspaceImpl I bypassed in loadProperties() the assignment of the timestamp property and set instead new Date().getTime(). It's a rough quickfix but it works...
>
> After this fix and after adding a CDO Repository everything ssems to be fine. Collasping a repository, produces the following:
>
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found: org.eclipse.net4j.connectors[null]
> at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
> at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:562)
> at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
> at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:81)
> at org.eclipse.net4j.Net4jUtil.getConnector(Net4jUtil.java:98)
> at org.eclipse.emf.ecp.cdo.internal.core.CDORepositoryData.createSessionConfiguration(CDORepositoryData.java:60)
> at org.eclipse.emf.ecp.cdo.internal.core.CDOProvider.fillChildren(CDOProvider.java:162)
> at org.eclipse.emf.ecp.internal.core.ECPProviderRegistryImpl$ProviderDescriptor.fillChildren(ECPProviderRegistryImpl.java:216)
> at org.eclipse.emf.ecp.internal.ui.model.ECPContentProvider.fillChildren(ECPContentProvider.java:50)
> at org.eclipse.emf.ecp.internal.ui.model.RepositoriesContentProvider.fillChildren(RepositoriesContentProvider.java:90)
> at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.fillChildrenDetectError(TreeContentProvider.java:193)
> at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider$SlowChildrenList.run(TreeContentProvider.java:290)
> at java.lang.Thread.run(Unknown Source)
>
> I can fix this issue, when I pass in org.eclipse.emf.ecp.cdo.core.createSessionConfiguration() my own properties. The ECPProperties are null and I'm not sure, where to define them.
>
> String connectorType = properties.getValue(CDOProvider.PROP_CONNECTOR_TYPE);
> String connectorDescription = properties.getValue(CDOProvider.PROP_CONNECTOR_DESCRIPTION);
> String repositoryName = properties.getValue(CDOProvider.PROP_REPOSITORY_NAME);
>
>
> Adding a Model Element to the project runs into several NPEs
>
> Caused by: java.lang.NullPointerException
> at org.eclipse.emf.ecp.editor.e3.MEEditorInput.equals(MEEditorInput.java:95)
> at org.eclipse.ui.internal.NavigationHistory.createEntry(NavigationHistory.java:643)
> at org.eclipse.ui.internal.NavigationHistory.addEntry(NavigationHistory.java:371)
> at org.eclipse.ui.internal.NavigationHistory.access$10(NavigationHistory.java:352)
> at org.eclipse.ui.internal.NavigationHistory$2.run(NavigationHistory.java:199)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
> ... 24 more
>
>
> I also tried the way with MySQL, here I have also some errors. The RegistryNotFoundException occurs also with MySQL, here my Quickfix works also. The NumberFormatException occurs not. But additionally I get a StringOutOfBoundsException, when I try to checkout a repository (after confirming the name of the new project). The exception occurs even for names with more then 80 characters.
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -80
> at java.lang.String.substring(Unknown Source)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getName(AbstractMappingStrategy.java:397)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getTableName(AbstractMappingStrategy.java:354)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractListTableMapping.initTable(AbstractListTableMapping.java:93)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractListTableMapping.<init>(AbstractListTableMapping.java:87)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AuditListTableMapping.<init>(AuditListTableMapping.java:47)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalAuditMappingStrategy.doCreateListMapping(HorizontalAuditMappingStrategy.java:54)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.createListMapping(AbstractMappingStrategy.java:758)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractHorizontalClassMapping.initFields(AbstractHorizontalClassMapping.java:169)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.AbstractHorizontalClassMapping.<init>(AbstractHorizontalClassMapping.java:106)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalAuditClassMapping.<init>(HorizontalAuditClassMapping.java:94)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalAuditMappingStrategy.doCreateClassMapping(HorizontalAuditMappingStrategy.java:48)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.createClassMapping(AbstractMappingStrategy.java:636)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getClassMapping(AbstractMappingStrategy.java:684)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.createAllClassMappings(AbstractMappingStrategy.java:734)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.doGetClassMappings(AbstractMappingStrategy.java:710)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getClassMappings(AbstractMappingStrategy.java:699)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.getClassMappings(AbstractMappingStrategy.java:694)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappingStrategy.handleRevisions(AbstractMappingStrategy.java:199)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalMappingStrategy.handleRevisions(HorizontalMappingStrategy.java:210)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.handleRevisions(DBStoreAccessor.java:1085)
> at org.eclipse.emf.cdo.internal.server.Repository.handleRevisions(Repository.java:1509)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.HandleRevisionsIndication.responding(HandleRevisionsIndication.java:96)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndication.responding(CDOServerIndication.java:134)
> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:98)
> at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:298)
> at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:67)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerReadIndication.execute(CDOServerReadIndication.java:36)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> In Project Navigator are no changes. After restarting the product, I get an IllegalStateException:
>
> java.lang.IllegalStateException: RootResourceID is null; is the repository not yet initialized?
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getRootResource(AbstractCDOView.java:316)
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getRootResource(AbstractCDOView.java:1)
> at org.eclipse.emf.ecp.cdo.internal.core.CDOProjectData.getRootResource(CDOProjectData.java:100)
> at org.eclipse.emf.ecp.cdo.internal.core.CDOProvider.fillChildren(CDOProvider.java:148)
> at org.eclipse.emf.ecp.internal.core.ECPProviderRegistryImpl$ProviderDescriptor.fillChildren(ECPProviderRegistryImpl.java:216)
> at org.eclipse.emf.ecp.internal.ui.model.ECPContentProvider.fillChildren(ECPContentProvider.java:50)
> at org.eclipse.emf.ecp.internal.ui.model.ModelContentProvider.fillChildren(ModelContentProvider.java:65)
> at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.fillChildrenDetectError(TreeContentProvider.java:193)
> at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.getChildrenList(TreeContentProvider.java:185)
> at org.eclipse.emf.ecp.internal.ui.model.TreeContentProvider.hasChildren(TreeContentProvider.java:59)
> at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2146)
> at org.eclipse.jface.viewers.TreeViewer.isExpandable(TreeViewer.java:588)
> at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2176)
> at org.eclipse.jface.viewers.AbstractTreeViewer.optionallyPruneChildren(AbstractTreeViewer.java:2808)
> at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2608)
> at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1923)
> at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
> at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1930)
> at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
> at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1898)
> at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1855)
> at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1841)
> at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1508)
> at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
> at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
> at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
> at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1506)
> at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:544)
> at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465)
> at org.eclipse.jface.viewers.ContentViewer.setLabelProvider(ContentViewer.java:311)
> at org.eclipse.jface.viewers.StructuredViewer.setLabelProvider(StructuredViewer.java:2215)
> at org.eclipse.jface.viewers.ColumnViewer.setLabelProvider(ColumnViewer.java:372)
> at org.eclipse.emf.ecp.spi.common.ui.TreeViewerFactory.createTreeViewer(TreeViewerFactory.java:66)
> at org.eclipse.emf.ecp.spi.common.ui.TreeViewerFactory.createTreeViewer(TreeViewerFactory.java:36)
> at org.eclipse.emf.ecp.ui.common.ECPViewerFactory.createModelExplorerViewer(ECPViewerFactory.java:52)
> at org.eclipse.emf.ecp.ui.views.ModelExplorerView.createViewer(ModelExplorerView.java:148)
> at org.eclipse.emf.ecp.ui.views.TreeView.createPartControl(TreeView.java:113)
> at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
> at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:174)
> at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
> 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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
> at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
> at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
> at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
> at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
> at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
> at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
> at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:526)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:511)
> at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:61)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147)
> at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
> at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
> at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:96)
> at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:649)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:62)
> at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:581)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1042)
> 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.emf.ecp.application3x.Application.start(Application.java:36)
> 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)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>
> The project is added in the Project Tree now. Expanding the created project shows only an Error as Element... Here also adding model elements produces a NullPointerException...
>
> I'm sorry for this long post :/


Previous Topic:[CDO] Import from XMI throws DanglingReferenceException
Next Topic:Concurrent access on EMF model
Goto Forum:
  


Current Time: Mon Jul 22 13:47:20 GMT 2019

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

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

Back to the top