Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Using GMF database editor
Using GMF database editor [message #430150] Tue, 12 May 2009 14:35 Go to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
I am trying to use gmf database editor. When I try to open new mindmap
diagram I receive following error and log:



!ENTRY org.eclipse.ui 4 0 2009-05-12 16:33:28.532
!MESSAGE Unable to create editor ID
mindmap.diagram.part.MindmapDiagramEditorID: The editor class could not be
instantiated. This usually indicates a missing no-arg constructor or that
the editor's class name was mistyped in plugin.xml.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.gmf.examples.mindmap.diagram (2154).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
at
org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:233)
at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:846)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:30 6)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 08)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:779)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:678)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:639)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2817)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
at
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
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(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: org.osgi.framework.BundleException: Exception in
mindmap.diagram.part.MindmapDiagramEditorPlugin.start() of bundle
org.eclipse.gmf.examples.mindmap.diagram.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 95 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast
to org.eclipse.osgi.framework.internal.core.IBuddyPolicy
at
org.eclipse.osgi.framework.internal.core.PolicyHandler.getPo licyImplementation(PolicyHandler.java:119)
at
org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:147)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
at
org.eclipse.osgi.framework.internal.core.DependentPolicy.loa dResource(DependentPolicy.java:79)
at
org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
at
org.eclipse.osgi.framework.internal.core.DependentPolicy.loa dResource(DependentPolicy.java:79)
at
org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
at
org.eclipse.osgi.framework.internal.core.DependentPolicy.loa dResource(DependentPolicy.java:79)
at
org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:558)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.get Resource(DefaultClassLoader.java:123)
at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceFileProv ider.getFileContent(PersistenceFileProvider.java:48)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:125)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:71)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:675)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:164)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:74)
at
mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:117)
at
mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 100 more


Can anybody help me figure it out?
Re: Using GMF database editor [message #430156 is a reply to message #430150] Tue, 12 May 2009 15:03 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
It is difficult to comment for me on this one. It fails here:
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to
org.eclipse.osgi.framework.internal.core.IBuddyPolicy
at org.eclipse.osgi.framework.internal.core.PolicyHandler.getPo licyImplementation(PolicyHandler.java:119)
at org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:147)

I don't know that part of Eclipse, my feel would say that a plugin has a buddy policy which is incorrect...
But that's all I can say about it I am afraid.

gr. Martin

Alireza wrote:
>
> I am trying to use gmf database editor. When I try to open new mindmap
> diagram I receive following error and log:
>
>
> !ENTRY org.eclipse.ui 4 0 2009-05-12 16:33:28.532
> !MESSAGE Unable to create editor ID
> mindmap.diagram.part.MindmapDiagramEditorID: The editor class could not
> be instantiated. This usually indicates a missing no-arg constructor or
> that the editor's class name was mistyped in plugin.xml.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.gmf.examples.mindmap.diagram (2154).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
>
> at
> org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:233)
>
> at
> org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:846)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:30 6)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 08)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:779)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:678)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:639)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2817)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> 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(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: org.osgi.framework.BundleException: Exception in
> mindmap.diagram.part.MindmapDiagramEditorPlugin.start() of bundle
> org.eclipse.gmf.examples.mindmap.diagram.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> ... 95 more
> Caused by: java.lang.ClassCastException: java.lang.String cannot be cast
> to org.eclipse.osgi.framework.internal.core.IBuddyPolicy
> at
> org.eclipse.osgi.framework.internal.core.PolicyHandler.getPo licyImplementation(PolicyHandler.java:119)
>
> at
> org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:147)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
>
> at
> org.eclipse.osgi.framework.internal.core.DependentPolicy.loa dResource(DependentPolicy.java:79)
>
> at
> org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:149)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
>
> at
> org.eclipse.osgi.framework.internal.core.DependentPolicy.loa dResource(DependentPolicy.java:79)
>
> at
> org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:149)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
>
> at
> org.eclipse.osgi.framework.internal.core.DependentPolicy.loa dResource(DependentPolicy.java:79)
>
> at
> org.eclipse.osgi.framework.internal.core.PolicyHandler.doBud dyResourceLoading(PolicyHandler.java:149)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:626)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findRe source(BundleLoader.java:558)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.get Resource(DefaultClassLoader.java:123)
>
> at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceFileProv ider.getFileContent(PersistenceFileProvider.java:48)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:125)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:71)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:675)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:164)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:74)
>
> at
> mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:117)
>
> at
> mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
>
> ... 100 more
>
>
> Can anybody help me figure it out?
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430158 is a reply to message #430156] Tue, 12 May 2009 15:06 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
the Eclipse-BuddyPolicy in my model project is true (Eclipse-BuddyPolicy:
true), is it the case or some other buddy policy?
Re: Using GMF database editor [message #430159 is a reply to message #430158] Tue, 12 May 2009 15:34 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Afaik this value is incorrect, a valid value is 'dependent' but there are more, if you search the
internet/eclipse.org/eclipse help then I think you can find the list of values with their meaning.

gr. Martin

Alireza wrote:
> the Eclipse-BuddyPolicy in my model project is true
> (Eclipse-BuddyPolicy: true), is it the case or some other buddy policy?
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430160 is a reply to message #430159] Tue, 12 May 2009 15:43 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Ya, you are right, I should set it dependent and I did but I received the
error mentioned in the tutorial:

!ENTRY org.eclipse.equinox.registry 4 1 2009-05-12 17:37:25.704
!MESSAGE Plug-in org.eclipse.gmf.examples.mindmap.diagram was unable to
load class mindmap.diagram.db.OpenMindmapDBEditor.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.gmf.examples.mindmap.diagram (2161).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
at
org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:122)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:223)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
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(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: org.osgi.framework.BundleException: Exception in
mindmap.diagram.part.MindmapDiagramEditorPlugin.start() of bundle
org.eclipse.gmf.examples.mindmap.diagram.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 49 more
Caused by: org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType, for
columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:440)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1102)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1287)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:171)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:83)
at
mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:117)
at
mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 54 more





my model manifest is as follow:






Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: mindmap,
mindmap.impl,
mindmap.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
org.hibernate.eclipse.jdt.ui;bundle-version="3.2.4";visibility:=reexport,
org.hibernate.eclipse.mapper;bundle-version="3.2.4";visibility:=reexport,
org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
Bundle-ActivationPolicy: lazy
Eclipse-BuddyPolicy: dependent
Eclipse-LazyStart: true
Re: Using GMF database editor [message #430162 is a reply to message #430160] Tue, 12 May 2009 16:39 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes and afaik this is a classloading issue. Did you set the dependency on the teneo.hibernate plugin as reexport?

gr. Martin

Alireza wrote:
> Ya, you are right, I should set it dependent and I did but I received
> the error mentioned in the tutorial:
>
> !ENTRY org.eclipse.equinox.registry 4 1 2009-05-12 17:37:25.704
> !MESSAGE Plug-in org.eclipse.gmf.examples.mindmap.diagram was unable to
> load class mindmap.diagram.db.OpenMindmapDBEditor.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.gmf.examples.mindmap.diagram (2161).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:427)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:193)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:446)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:315)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1274)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
>
> at
> org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:122)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:223)
> at
> org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
>
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> 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(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: org.osgi.framework.BundleException: Exception in
> mindmap.diagram.part.MindmapDiagramEditorPlugin.start() of bundle
> org.eclipse.gmf.examples.mindmap.diagram.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> ... 49 more
> Caused by: org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:440)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1102)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1287)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:171)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:83)
>
> at
> mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:117)
>
> at
> mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
>
> ... 54 more
>
>
>
>
>
> my model manifest is as follow:
>
>
>
>
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: .
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Export-Package: mindmap,
> mindmap.impl,
> mindmap.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
>
> org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
>
> org.hibernate.eclipse.jdt.ui;bundle-version="3.2.4";visibility:=reexport,
> org.hibernate.eclipse.mapper;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
> Bundle-ActivationPolicy: lazy
> Eclipse-BuddyPolicy: dependent
> Eclipse-LazyStart: true
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430164 is a reply to message #430162] Tue, 12 May 2009 17:32 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Ya, I did:

Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
Re: Using GMF database editor [message #430166 is a reply to message #430164] Tue, 12 May 2009 17:40 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
And the eclipse buddy policy of the plugin with hibernate libraries is set to dependent?

gr. Martin

Alireza wrote:
> Ya, I did:
>
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
>
> org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
>
> org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430167 is a reply to message #430166] Tue, 12 May 2009 18:00 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Yes:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: mindmap,
mindmap.impl,
mindmap.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
Bundle-ActivationPolicy: lazy
Eclipse-BuddyPolicy: dependent
Eclipse-LazyStart: true
Re: Using GMF database editor [message #430169 is a reply to message #430167] Tue, 12 May 2009 18:29 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Is this the manifest.mf of the plugin containing the hibernate3.jar file?
This manifest has a dependency on org.eclipse.emf.teneo.hibernate.libraries, what does this plugin contain?
Which plugin has the hibernate3.jar file?

gr. Martin

Alireza wrote:
> Yes:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: .
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Export-Package: mindmap,
> mindmap.impl,
> mindmap.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.0.1";visibility:=reexport,
>
> org.hibernate.eclipse;bundle-version="3.2.4";visibility:=reexport,
> org.eclipse.emf.teneo.hibernate.libraries;bundle-version="1.0.1 ";visibility:=reexport,
>
> org.eclipse.osgi.util;bundle-version="3.1.300";visibility:=reexport
> Bundle-ActivationPolicy: lazy
> Eclipse-BuddyPolicy: dependent
> Eclipse-LazyStart: true
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430171 is a reply to message #430169] Tue, 12 May 2009 18:42 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
ya this manifest has hibernate3.jar in referenced jars.
I do not know about org.eclipse.emf.teneo.hibernate.libraries, but if i
remove it nothing will change (is it a problem to add extra jars?).
Re: Using GMF database editor [message #430173 is a reply to message #430171] Tue, 12 May 2009 19:12 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Another reason can be that you don't have all the jars on which hibernate depends. Can you list all the jars you have in
this plugin?
I would also expect that the hibernate.jar (and the other jars) are on the bundle classpath of the plugin.

gr. Martin

Alireza wrote:
> ya this manifest has hibernate3.jar in referenced jars. I do not know
> about org.eclipse.emf.teneo.hibernate.libraries, but if i remove it
> nothing will change (is it a problem to add extra jars?).
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430186 is a reply to message #430173] Wed, 13 May 2009 06:38 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Yes, I also think there is something wrong with my hibernate or its
setting. I have install my hibernate from
http://download.jboss.org/jbosstools/updates/stable/. Now I have following
folders and jar files:

1- org.hibernate.eclipse_3.2.4.GA-R200903141626-H5 : antlr-2.7.6, asm,
asm-attrs, c3p0-0.9.1, cglib-2.1.3, commons-collections-2.1.1,
commons-logging-1.0.4, concurrent-1.3.2, connector, dom4j-1.6.1,
ehcache-1.2.3, hibernate3, jaas, javassist, jboss-cache, jboss-common,
jboss-jmx, jboss-system, jdbc2_0-stdext, jgroups-2.2.8, jta, log4j-1.2.15,
oscache-2.1, proxool-0.8.3, swarmcache-1.0rc2, org.hibernate.eclipse (and
and annotations folder with several jars on it such as: ejb3-persistence,
hibernate-annotations, ...)

2- org.hibernate.eclipse.console_3.2.4.GA-R200903141626-H5:
org.hibernate.eclipse.console

3- org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5:
org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5: help

4- org.hibernate.eclipse.mapper_3.2.4.GA-R200903141626-H5:
org.hibernate.eclipse.mapper
Re: Using GMF database editor [message #430187 is a reply to message #430173] Wed, 13 May 2009 06:40 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
BTW, I did not have a plugin for hibernate and I add them to dependencies
from eclipse plugin folder. Is it right? Do I need to set buddy policy to
dependent? ...
Re: Using GMF database editor [message #430188 is a reply to message #430186] Wed, 13 May 2009 06:41 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Okay, the org.hibernate.eclipse plugin should have Eclipse-BuddyPolicy set to dependent. If that's not possible then you
need to create your own hibernate plugin.
Then the model plugin needs to depend on this hibernate plugin (probably with reexport).

gr. Martin

Alireza wrote:
> Yes, I also think there is something wrong with my hibernate or its
> setting. I have install my hibernate from
> http://download.jboss.org/jbosstools/updates/stable/. Now I have
> following folders and jar files:
>
> 1- org.hibernate.eclipse_3.2.4.GA-R200903141626-H5 : antlr-2.7.6, asm,
> asm-attrs, c3p0-0.9.1, cglib-2.1.3, commons-collections-2.1.1,
> commons-logging-1.0.4, concurrent-1.3.2, connector, dom4j-1.6.1,
> ehcache-1.2.3, hibernate3, jaas, javassist, jboss-cache, jboss-common,
> jboss-jmx, jboss-system, jdbc2_0-stdext, jgroups-2.2.8, jta,
> log4j-1.2.15, oscache-2.1, proxool-0.8.3, swarmcache-1.0rc2,
> org.hibernate.eclipse (and and annotations folder with several jars on
> it such as: ejb3-persistence, hibernate-annotations, ...)
>
> 2- org.hibernate.eclipse.console_3.2.4.GA-R200903141626-H5:
> org.hibernate.eclipse.console
>
> 3- org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5:
> org.hibernate.eclipse.help_3.2.4.GA-R200903141626-H5: help
>
> 4- org.hibernate.eclipse.mapper_3.2.4.GA-R200903141626-H5:
> org.hibernate.eclipse.mapper
>
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430189 is a reply to message #430187] Wed, 13 May 2009 06:55 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
What do you mean: add them to dependencies from eclipse plugin folder?

Have you read this:
http://www.elver.org/hibernate/installation.html#Hibernate+L ibraries

gr. Martin

Alireza wrote:
> BTW, I did not have a plugin for hibernate and I add them to
> dependencies from eclipse plugin folder. Is it right? Do I need to set
> buddy policy to dependent? ...
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430190 is a reply to message #430189] Wed, 13 May 2009 07:39 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
I do not have a Hibernate Library plugin and I import them to dependency
from eclipse/plugins folder.
Now, I am trying to build a Hibernate Library plugin and test the system
again.
I have added all the file in eclipse/plugins folder to my Hibernate
Library plugin. I will test it in few minutes and will back to you.
Re: Using GMF database editor [message #430191 is a reply to message #430190] Wed, 13 May 2009 07:55 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Now, I am using with JDBC. I am using postgresql and I put the
corresponding jar file in a folder (name lib) and I have added it as a
external jar to the mindmap diagram project. Is it right?


....

Caused by: org.hibernate.HibernateException: JDBC Driver class not found:
org.postgresql.Driver
at
org.hibernate.connection.DriverManagerConnectionProvider.con figure(DriverManagerConnectionProvider.java:66)
at
org.hibernate.connection.ConnectionProviderFactory.newConnec tionProvider(ConnectionProviderFactory.java:124)
at
org.hibernate.connection.ConnectionProviderFactory.newConnec tionProvider(ConnectionProviderFactory.java:56)
at
org.hibernate.cfg.SettingsFactory.createConnectionProvider(S ettingsFactory.java:414)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFact ory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration. java:2009)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1292)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:171)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:83)
at
mindmap.diagram.db.StoreController.initializeDataStore(Store Controller.java:116)
at
mindmap.diagram.part.MindmapDiagramEditorPlugin.start(Mindma pDiagramEditorPlugin.java:73)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 63 more
Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:483)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper. java:100)
at
org.hibernate.connection.DriverManagerConnectionProvider.con figure(DriverManagerConnectionProvider.java:61)
... 76 more
Re: Using GMF database editor [message #430192 is a reply to message #430191] Wed, 13 May 2009 08:17 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Dear Martin,

It works!! Finally, we did it!! I made another plugin and put postgres
jars in it. I really appreciate your patient and I am sorry for my stupid
and naive questions sometimes :)

I have questions:

1- This program only keeps one gmf diagram? Is it right? How can we extent
it to more than one?

2- This program in each run create the db again, so the previous diagram
will be disappeared. How can we prevent this?

In general how can we save and load several diagram from db and keep them
for long time?
Re: Using GMF database editor [message #430193 is a reply to message #430192] Wed, 13 May 2009 08:29 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
It should keep the database. You have to set the hibernate property: hibernate.hbm2ddl.auto, to one of the values:
update, create or validate. Maybe you have set it as create-drop now? Can you check the hibernate manual for more details?

Regarding storing more than one diagram. I think this is related to how gmf loads and stores the diagram (maybe always
uses the same name/url/id?). The database itself should be capable of storing more than one diagram. I don't really know
GMF good enough to help you out here.

gr. Martin

Alireza wrote:
> Dear Martin,
> It works!! Finally, we did it!! I made another plugin and put postgres
> jars in it. I really appreciate your patient and I am sorry for my
> stupid and naive questions sometimes :)
> I have questions:
>
> 1- This program only keeps one gmf diagram? Is it right? How can we
> extent it to more than one?
> 2- This program in each run create the db again, so the previous diagram
> will be disappeared. How can we prevent this?
>
> In general how can we save and load several diagram from db and keep
> them for long time?
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430194 is a reply to message #430193] Wed, 13 May 2009 08:48 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Hi Martin,

1- Did you ever consider the created tables? For example in this case it
created 41 tables! Is there any rule or description for this? Is it
related to teneo?

2- Suppose that we have a db that contains information about topics: one
tables shows what topics we have and the other one shows subtopics
relationship between topics in the first tables. How can we load this data
as a gmf diagram? Is it possible to do it?


3- about the annotations.xml, in case of this example we only have one
shape, what about a more complicated model with different shapes?


4- How can I get more information about gmf load and other staff, any
book, site or forum?


Best,
Ali
Re: Using GMF database editor [message #430195 is a reply to message #430194] Wed, 13 May 2009 08:56 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
See comments inline

Alireza wrote:
>
>
> Hi Martin,
>
> 1- Did you ever consider the created tables? For example in this case it
> created 41 tables! Is there any rule or description for this? Is it
> related to teneo?
MT>> the diagram itself uses several tables, in addition GMF extends Ecore, therefore the whole ecore package itself is
also persisted resulting in additional tables.

> 2- Suppose that we have a db that contains information about topics: one
> tables shows what topics we have and the other one shows subtopics
> relationship between topics in the first tables. How can we load this
> data as a gmf diagram? Is it possible to do it?
MT>> I am pretty sure you can, you can read the (sub)topics using teneo and then link them somehow to the gmf diagram,
but I don't know how, I don't know GMF really.

>
> 3- about the annotations.xml, in case of this example we only have one
> shape, what about a more complicated model with different shapes?
MT>> You should also add your own model to the list of epackages when initializing the datastore then tables are created
for your custom model also.

>
>
> 4- How can I get more information about gmf load and other staff, any
> book, site or forum?
MT>> Gmf has a separate newsgroup: eclipse.modeling.gmf, their site:
http://www.eclipse.org/modeling/gmf/

>
> Best,
> Ali


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430198 is a reply to message #430195] Wed, 13 May 2009 09:35 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
About the third questions (annotations.xml) I could not understand, do we
need to change it? How? Suppose that I add thread entity to this model
with shape ellipse, how should I change the annotations.xml?
Re: Using GMF database editor [message #430201 is a reply to message #430198] Wed, 13 May 2009 09:50 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
The annotations.xml is required because of the following reason:
in emf it is possible to let an eclass extends multiple other eclasses (so multiple inheritance).
hibernate does not support this, so for the mapping as a standard the first super type is chosen. However for GMF this
did not work well, so therefore the annotations are used to influence the chosen super type.

If your model does not use multiple supertypes or if you take care that your supertypes are in the right order (the most
important one first) then you are fine and you don't need to add annotations (don't need to change the annotations.xml).

gr. Martin

Alireza wrote:
>
> About the third questions (annotations.xml) I could not understand, do
> we need to change it? How? Suppose that I add thread entity to this
> model with shape ellipse, how should I change the annotations.xml?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430206 is a reply to message #430201] Wed, 13 May 2009 12:05 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Hi Martin,

Thanks

I am going to gmf group :)

may back to you if I have questions.

Good luck
Best,
Ali
Re: Using GMF database editor [message #430215 is a reply to message #430206] Wed, 13 May 2009 14:21 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Dear Martin,
I have send a post to gmf group, but have not receive any answer yet. What
does that mean? Does it mean that nobody interested in the topic or ...?
:(
Re: Using GMF database editor [message #430225 is a reply to message #430215] Wed, 13 May 2009 16:10 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
It means that they are busy with other things and/or that they don't know the answer right away, and/or that your
questions were not clear enough.

I checked out your post and I am not sure that they can answer your questions. I think that you have to dive in the
code, debug, understand what it does, analyse what happens, enable logging, check out what records are created in the
database. I think with that experience you are able to ask more detailed/focused questions which are maybe easier to
answer by others.

Regarding your second question in your post: Check out the elver.org website, check out the hibernate mapping generated
by teneo, also articles on ORM mapping in general can be of help.

gr. Martin

Alireza wrote:
> Dear Martin, I have send a post to gmf group, but have not receive any
> answer yet. What does that mean? Does it mean that nobody interested in
> the topic or ...? :(


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430243 is a reply to message #430225] Thu, 14 May 2009 09:12 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Dear Martin,

From yesterday, that we managed to run the program successfully, my
eclipse started to give following error:

Error occurred during initialization of VM
Could not reserve enough space for object heap

I have tried to fix it by changing the size of minimum and maximum memory,
but it can be solved. I tried other program, and they work successfully.
What do you think?
Re: Using GMF database editor [message #430244 is a reply to message #430243] Thu, 14 May 2009 09:19 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
It depends where you changed the min/max size. When you run your software from Eclipse (to debug/test) then you need to
set these values in the run configuration. Did you set them there?
For eclipse itself it is done in eclipse.ini in the eclipse installation folder (did you change it there?).

gr. Martin

Alireza wrote:
> Dear Martin,
> From yesterday, that we managed to run the program successfully, my
> eclipse started to give following error:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> I have tried to fix it by changing the size of minimum and maximum
> memory, but it can be solved. I tried other program, and they work
> successfully.
> What do you think?
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430245 is a reply to message #430244] Thu, 14 May 2009 09:25 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Now it works, it changed it from run configuration, but the problem was
related to upper-bound (I put 2048 but it did not work, it is fine with
1024). How can we manage it in general?
Re: Using GMF database editor [message #430246 is a reply to message #430245] Thu, 14 May 2009 09:26 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
It worked, but now it happened again :(
Re: Using GMF database editor [message #430248 is a reply to message #430246] Thu, 14 May 2009 09:31 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
It is somewhere in run configuration, you can add extra jvm arguments to get more insight in the memory usage. I don't
remember them directly but google is your friend here.

gr. Martin

Alireza wrote:
> It worked, but now it happened again :(
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430249 is a reply to message #430248] Thu, 14 May 2009 09:36 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
I found it, under the run configuration->arguments and then set
-Xmx1024m
-Xms64m

but working one time (loading diagram from db) it gives the same error
again.


I am trying to install GMF via update manager site in eclipse website on a
new eclipse, but I could not. I tried all of three link there. I did
general update and I update Mylyn and also I installed Mylyn extra
(http://download.eclipse.org/tools/mylyn/update/extras), but still the
same problem. I am using eclipse 3.4.2 and Build id: M20090211-1700.

The error that I received:

Cannot complete the request. See the details.
Cannot find a solution satisfying the following requirements
org.eclipse.swt [3.4.0.v3448f].
Re: Using GMF database editor [message #430251 is a reply to message #430249] Thu, 14 May 2009 09:51 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
I would advice to add more memory jvm arguments to check what is going on. The other question is more for the gmf
newsgroup, where you also asked it...

gr. Martin

Alireza wrote:
> I found it, under the run configuration->arguments and then set -Xmx1024m
> -Xms64m
>
> but working one time (loading diagram from db) it gives the same error
> again.
>
> I am trying to install GMF via update manager site in eclipse website on
> a new eclipse, but I could not. I tried all of three link there. I did
> general update and I update Mylyn and also I installed Mylyn extra
> (http://download.eclipse.org/tools/mylyn/update/extras), but still the
> same problem. I am using eclipse 3.4.2 and Build id: M20090211-1700.
>
> The error that I received:
>
> Cannot complete the request. See the details.
> Cannot find a solution satisfying the following requirements
> org.eclipse.swt [3.4.0.v3448f].
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430252 is a reply to message #430251] Thu, 14 May 2009 09:54 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Ya, I have asked it, but it seems nobody interested to this kind of
questions. I also google it, but there are few posts in some sites with no
solution.
Anyway, thank you.
Re: Using GMF database editor [message #430316 is a reply to message #430252] Thu, 14 May 2009 14:49 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Dear Martin,
Can you explain a little bit for me what happens when we press save button
(e.g., when we create a diagram in the first step how it is passed to db?)?
Re: Using GMF database editor [message #430322 is a reply to message #430316] Thu, 14 May 2009 21:11 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
I don't know GMF that well. For the EMF side what happens is this:
- the resource is saved
- the resource iterates over the root content of a resource and calls hibernate's save or update, as the root objects
are saved, the save/update automatically cascades to the children
- the resource iterates over the deleted objects of a resource and deletes them

Within hibernate the save or update walks over each object and creates insert/update sql statements, taking into account
object relations (so inserts/updates happen in the correct order). Hibernate accesses objects using EMF's dynamic api
(eGet, eSet).

gr. Martin

Alireza wrote:
> Dear Martin, Can you explain a little bit for me what happens when we
> press save button (e.g., when we create a diagram in the first step how
> it is passed to db?)?
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430325 is a reply to message #430322] Fri, 15 May 2009 09:21 Go to previous messageGo to next message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Dear Martin,

I do not know what happen to this code! I created a new mindmap db this
morning and I tried to save a mindmap digram, the save button works fine
(no error), but when I opened the diagram from menu, it is empty!! The
interesting point is, if I modify this empty db diagram and save it again,
it can see the modified digram in the next load. What do think that
happened to it?

Best,
Ali
Re: Using GMF database editor [message #430327 is a reply to message #430325] Fri, 15 May 2009 10:05 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ali,
I have no idea, I suggest you do some debugging to get some more detailed info.

gr. Martin

Alireza wrote:
>
> Dear Martin,
> I do not know what happen to this code! I created a new mindmap db this
> morning and I tried to save a mindmap digram, the save button works fine
> (no error), but when I opened the diagram from menu, it is empty!! The
> interesting point is, if I modify this empty db diagram and save it
> again, it can see the modified digram in the next load. What do think
> that happened to it?
>
> Best, Ali
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Using GMF database editor [message #430329 is a reply to message #430327] Fri, 15 May 2009 12:09 Go to previous message
Alireza Missing name is currently offline Alireza Missing nameFriend
Messages: 105
Registered: July 2009
Senior Member
Dear Martin,

I am trying to debug and trace to see what happens, but anyway I am new in
eclipse and this sort of modeling, and sometimes I just do not get what
happens :( for example when try to load diagram from database, it loads
the database info into a hibernate resource and then iterates through its
contents. I understands that it should contain Map but i do not get what
is Diagram in the resource :( ...

Sorry, disturbing you too much
Previous Topic:Migrate Datamodel with ecore2Ecore
Next Topic:EMF Query1.3, Validation1.3, Transaction1.3: when will M7 be available?
Goto Forum:
  


Current Time: Fri Apr 19 10:30:07 GMT 2024

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

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

Back to the top