Skip to main content



      Home
Home » Modeling » EMF » How to store gmf diagrams in CDO (Connected Data Objects) server ?(How to store gmf diagrams derived from emf model in CDO (Connected Data Objects) server ?)
How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #759643] Tue, 29 November 2011 07:45 Go to next message
Eclipse UserFriend
Hi,

I am developing an RCP Application, As I want to store GMF diagrams which is derived from EMF model, I observe that CDO (Connected Data Objects) server would be helpful in storing diagrams but I am not sure how exactly I can acheive that ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #759667 is a reply to message #759643] Tue, 29 November 2011 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

Have a look at http://wiki.eclipse.org/Dawn


On 29/11/2011 1:45 PM, vinny503 wrote:
> Hi,
>
> I am developing an RCP Application, As I want to store GMF diagrams
> which is derived from EMF model, I observe that CDO (Connected Data
> Objects) server would be helpful in storing diagrams but I am not sure
> how exactly I can acheive that ?
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #759884 is a reply to message #759667] Wed, 30 November 2011 08:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

Is it possible to install Dawn for Eclipse 3.6.1 version ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #759890 is a reply to message #759884] Wed, 30 November 2011 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

I'm not sure. Did you try it?


On 30/11/2011 2:34 PM, vinny503 wrote:
> Hi Ed,
>
> Is it possible to install Dawn for Eclipse 3.6.1 version ?
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #759905 is a reply to message #759890] Wed, 30 November 2011 09:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I tried with the download url mentioned in the following site..
wiki.eclipse.org/Getting_Started_with_Dawn but it did not work, probably it is made for Eclipse Indigo release.

Can you provide the download link of Dawn ?

Regards,
Vinay

[Updated on: Wed, 30 November 2011 09:40] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #759955 is a reply to message #759905] Wed, 30 November 2011 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

comments below


Am 30.11.2011 15:29, schrieb vinny503:
> Hi,
>
> I tried with the download url mentioned in the following site..
> http://wiki.eclipse.org/Getting_Started_with_Dawn but it did not work,
> probably it is made for Eclipse Indigo release.

Yes, it is. It points to the current release. What does "did not work"
mean? Any exceptions?

Actually Dawn 1.0 from the Indigo Release should work on Helios if you
have CDO 4.0 and EMF 2.6 installed. But you might experience trouble
with the Dawn generator due to some changes in GMF. I would recommend to
update to Eclipe 3.7 if possible.

Cheers,

Martin

>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760003 is a reply to message #759955] Wed, 30 November 2011 16:23 Go to previous messageGo to next message
Eclipse UserFriend
I tried Dawn briefly. I think it is mostly for model editing, right? Can we use it for model instance editing? That would be cool...
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760045 is a reply to message #760003] Thu, 01 December 2011 00:32 Go to previous messageGo to next message
Eclipse UserFriend
Simon,

Yes it works for any EMF model instances.

On 30/11/2011 10:23 PM, Simon Chen wrote:
> I tried Dawn briefly. I think it is mostly for model editing, right?
> Can we use it for model instance editing? That would be cool...
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760066 is a reply to message #760003] Thu, 01 December 2011 02:26 Go to previous messageGo to next message
Eclipse UserFriend
Simon,

Can you provide me the steps that you followed to work with Dawn ?
I have already GMF Diagrams created now In order to store this for later use, I just need to use Dawn.


Regards,
Vinay

[Updated on: Thu, 01 December 2011 02:29] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760110 is a reply to message #760066] Thu, 01 December 2011 05:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I am facing problem in starting the CDO server. Shows the following error

Variable references non-existent resource : ${resource_loc:<path>}


I have the cdo-server.xml in the eclipse folder.

D:\eclipse-SDK-3.7.1-win32\eclipse

Regards,
Vinay

[Updated on: Thu, 01 December 2011 07:18] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760168 is a reply to message #760110] Thu, 01 December 2011 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

Here is a pretty good instruction on how to get CDO working:
http://www.rcp-vision.com/?p=1285&lang=en

It seems that you didn't specify the path to cdo-server.xml correctly.

For Dawn, all I did was following the regular steps here:
http://wiki.eclipse.org/Getting_Started_with_Dawn

-Simon
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760198 is a reply to message #760168] Thu, 01 December 2011 10:16 Go to previous messageGo to next message
Eclipse UserFriend
Simon,

I have 2 Queries...

1. Can you please tell me how you were able to store GMF Diagrams and how you were able to retain that in RCP Application ?

2. VM arguments which I have given is shown below

-Dnet4j.config=${workspace_loc}/cdo-server.xml

my workspace is where I launch Eclipse.
cdo-server.xml is in eclipse folder


Now I am getting the following error

org.osgi.framework.BundleException: Exception in org.eclipse.equinox.internal.simpleconfigurator.Activator.start() of bundle org.eclipse.equinox.simpleconfigurator.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.IllegalStateException: The System Bundle was updated. The framework must be restarted to finalize the configuration change
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:71)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:129)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:143)
at org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:48)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 12 more
Root exception:
java.lang.IllegalStateException: The System Bundle was updated. The framework must be restarted to finalize the configuration change

at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:71)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:129)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:143)
at org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:48)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.osgi 4 0 2011-12-01 18:06:51.781
!MESSAGE Bundle org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955 [1] is not active.

!ENTRY org.eclipse.osgi 4 0 2011-12-01 18:06:51.796
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
An error has occurred. See the log file
D:\eclipse-SDK-3.7.1-win32\eclipse\.metadata\.plugins\org.eclipse.pde.core\CDO_Server\1322743010890.log.





Regards,
Vinay

[Updated on: Thu, 01 December 2011 10:39] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760204 is a reply to message #760198] Thu, 01 December 2011 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

to get Dawn working with your GMF editor you need to generate a Dawn UI
Extension. This is an OSGI fragment which has to be deployed with your
GMF bundles.

This tutorial describes how to use the generator.

http://wiki.eclipse.org/Dawn_Codegen

Cheers,

Martin

Am 01.12.2011 16:16, schrieb vinny503:
> Simon,
>
> Can you please tell me how you were able to store GMF Diagrams and how
> you were able to retain that in RCP Application ?
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760363 is a reply to message #760204] Fri, 02 December 2011 02:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I was following the steps provided in Dawn CodeGen site but when I reached the step to install CDO Dawn CodeGen GMF mentioned in the site https://hudson.eclipse.org/hudson/job/emf-cdo-integration/lastStableBuild/artifact/result/site.p2/, but founds error in this site, I am not able to proceed, Is this plugin really required ?

Regards,
vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760423 is a reply to message #760363] Fri, 02 December 2011 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I am able to find the CDO Dawn Codegen GMF from the Available Software Sites, But though half an hour completed but still it is showing 0% installed, what could be the reason ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760429 is a reply to message #760423] Fri, 02 December 2011 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

Networks can be very slow.

On 02/12/2011 11:40 AM, vinny503 wrote:
> Hi,
>
> I am able to find the CDO Dawn Codegen GMF from the Available Software
> Sites, But though half an hour completed but still it is showing 0%
> installed, what could be the reason ?
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760452 is a reply to message #760429] Fri, 02 December 2011 07:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Now CDO Dawn Codegen GMF is installed, After that when I try to generate the GMF diagram plug-in, I get the error saying that java.lang.NullPointer Exception, And also I noticed that acore.gmfgen, acore.genmodel,acore.ecore and so on... has not changed to acore.gmfgen 1.1, acore.genmodel 1.1,acore.ecore 1.1 and so on....

Regards,
Vinay

[Updated on: Fri, 02 December 2011 08:12] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760453 is a reply to message #760363] Fri, 02 December 2011 07:38 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

comments below...

Am 02.12.2011 08:41, schrieb vinny503:
> Hi,
>
> I was following the steps provided in Dawn CodeGen site but when I
> reached the step to install CDO Dawn CodeGen GMF mentioned in the site
> https://hudson.eclipse.org/hudson/job/emf-cdo-integration/lastStableBuild/artifact/result/site.p2/,
> but founds error in this site, I am not able to proceed,

The update site was indeed outdated. I fixed it.

> Is this plugin
> really required ?

If you want to generate an extension for GMF, then "CDO Dawn CodeGen
*GMF*" is needed.

Cheers,

Martin

>
> Regards,
> vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760463 is a reply to message #760452] Fri, 02 December 2011 08:17 Go to previous messageGo to next message
Eclipse UserFriend
Am 02.12.2011 13:40, schrieb vinny503:
> Hi,
>
> Now CDO Codegen GMF is installed, After that when I try to generate the
> GMF diagram plug-in, I get the error saying that java.lang.NullPointer
> Exception,

Could you paste the whole exception?

> And also I noticed that acore.gmfgen,
> acore.genmodel,acore.ecore and so on... has not changed to acore.gmfgen
> 1.1, acore.genmodel 1.1,acore.ecore 1.1 and so on....

Why should they?

>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760470 is a reply to message #760463] Fri, 02 December 2011 08:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Please find the Generate Diagram code error image attached..

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760586 is a reply to message #760470] Sat, 03 December 2011 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Am 02.12.2011 14:51, schrieb vinny503:
> Hi,
>
> Please find the Generate Diagram code error image attached..
One of the few cases where an image does not say more than text :P

Please check your Error Log view or the .metadata/.log file for the exact stack trace and paste it here as text.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760588 is a reply to message #760470] Sat, 03 December 2011 04:02 Go to previous messageGo to next message
Eclipse UserFriend
Am 02.12.2011 14:51, schrieb vinny503:
> Hi,
>
> Please find the Generate Diagram code error image attached..

From you picture I can see that the first step of the generation worked
properly since the *.dawngenmodel and the generator models for EMF and
GMF are generated.

You also already succeeded in generating the EMF extension. I guess that
the exception occurs when you try to regenerate GMF diagram plug-in.
This is actually something you need to ask the GMF guys. Why do you
regenerate the GMF plugin?

What happens when you generate the Dawn Extension for GMF (context menu
on the acore-dawngenmodel_gmf)?

Cheers,

Martin

>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760756 is a reply to message #760588] Mon, 05 December 2011 01:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

when I try to generate Dawn Extension of GMF, I can see only 4 packages-- org.eclipse.emf.cdo.dawn.examples.acore.diagram.edit.parts, org.eclipse.emf.cdo.dawn.examples.acore.diagram.edit.policies, org.eclipse.emf.cdo.dawn.examples.acore.diagram.part, org.eclipse.emf.cdo.dawn.examples.acore.diagram.providers...And when I launch an Eclipse Application in Fragment.xml, I get error which I have attached with this.

Regards,
Vinay

[Updated on: Mon, 05 December 2011 01:17] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760764 is a reply to message #760756] Mon, 05 December 2011 02:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin,

One more thing is that I have already created GMF Editor Application and the projects are omsbuilder, omsbuilder.diagram, omsbuilder.edit. In omsbuilder project there is omsbuilder.gmfgen model when I do a right click on it and when I try to Generate Dawn Genmodel nothing happens what could be the reason ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760768 is a reply to message #760756] Mon, 05 December 2011 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

"The System Bundle was updated. The framework must be restarted to finalize the configuration change"

This error can occur if you somehow mixed different versions of the system bundles in your target platform. Try to update your target platform.

4 bundles are o.k. in the Dawn fragment. Dawn only changes those.

Cheers,

Martin
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760780 is a reply to message #760768] Mon, 05 December 2011 04:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin,

I updated Target Platform, Now I could run Fragment.xml and can create diagram.
Since I am developing an RCP Application, Is it possible to generate RCP for org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn plugin.

And My Aim was to retain all GMF Diagrams. What is the difference between running plugin.xml from xxx.diagram project and running fragment.xml from xxx.diagram.dawn project.

Regards,
Vinay

[Updated on: Mon, 05 December 2011 04:19] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760787 is a reply to message #760780] Mon, 05 December 2011 04:44 Go to previous messageGo to next message
Eclipse UserFriend


> I updated Target Platform, Now I could run Fragment.xml and can create diagram.

Great! Smile

> Since I am developing an RCP Application, Is it possible to generate RCP for
> org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn plugin.

I am not sure what you means. You only need to deploy teh generated fragment and the CDO/Dawn bundles in your RCP.


> And My Aim was to retain all GMF Diagrams.

Does this mean that you have alreasy existing diagrams stored as XMI and youo want to store these in CDO?

> What is the difference between running
> plugin.xml from xxx.diagram project and running fragment.xml from xxx.diagram.dawn
> project.

Again, I am not sure what you mean. If you choose "Run as Eclipse Application" the specific runtime will be started. Actually you cannot "run" a fragment.

Cheers,

Martin

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #760805 is a reply to message #760787] Mon, 05 December 2011 05:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin,

Like I have told before, I have developed an RCP application and Everytime I draw Diagrams On GMF Editor, I want that to be stored so that can be retained back and can do necessary changes.

And you said deploying fragment to my RCP Application, I want to know which fragment ?
How can I deploy those ? Is it adding those plugins in the Dependency tab of plugin.xml of xxx.diagram project

regards,
vinay

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761288 is a reply to message #760787] Tue, 06 December 2011 03:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin,

Though I followed thw Dawn Codegen Tutorial but still it is not clear that how GMF Diagrams can be stored and how it can be retained.
I am stuck at this point of time, Looking forward to your reply.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761297 is a reply to message #761288] Tue, 06 December 2011 03:53 Go to previous messageGo to next message
Eclipse UserFriend
Am 06.12.2011 09:47, schrieb vinny503:
> Hi Martin,
>
> Though I followed thw Dawn Codegen Tutorial but still it is not clear that how GMF Diagrams can be stored and how it
> can be retained. I am stuck at this point of time, Looking forward to your reply.
Have you read/followed http://wiki.eclipse.org/Getting_Started_with_Dawn ? If there are problems with it please report
here exactly what you've done/not done and which of the described steps do not lead to the expected results.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761309 is a reply to message #761297] Tue, 06 December 2011 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

In Getting started to Dawn Tutorial, Beginning they say that we need CDO running. when I followed the tutorial that tells to start CDO server, I had a problem in adding the following entry to the VM Arguments:

-Dnet4j.config=${resource_loc:<path>}, It was not finding the resource.

cdo-server.xml file is in D:\eclipse-SDK-3.7.1-win32\eclipse\configuration directory. And Workspace location is D:\eclipse-SDK-3.7.1-win32\eclipse\.

what am I suposed to enter it to VM Arguments

Regards,
Vinay

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761342 is a reply to message #761309] Tue, 06 December 2011 05:25 Go to previous messageGo to next message
Eclipse UserFriend
Am 06.12.2011 10:20, schrieb vinny503:
> Hi,
> In Getting started to Dawn Tutorial, Beginning they say that we need CDO running. when I followed the tutorial that
> tells to start CDO server, I had a problem in adding the following entry to the VM Arguments:
>
> -Dnet4j.config=${resource_loc:<path>}, It was not finding the resource.
>
> cdo-server.xml file is in D:\eclipse-SDK-3.7.1-win32\eclipse\configuration directory. And Workspace location is
> D:\eclipse-SDK-3.7.1-win32\eclipse\.
>
> what am I suposed to enter it to VM Arguments
Well, where is your cdo-server.xml located? Let net4j.config point to the *folder* of that file.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761356 is a reply to message #761342] Tue, 06 December 2011 05:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi Vinny,

the default location is eclipse/config and not eclipse/configuration.
If you don't change the location via VM arguments, you need to put the cdo-server.xml
in the "config" folder in your eclipse directory. It might not exist so you have to create it.

Regards,
Tim
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761360 is a reply to message #761342] Tue, 06 December 2011 05:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

cdo-server.xml is located in configuration folder D:/eclipse-SDK-3.7.1-win32/eclipse/configuration/, So is it the following mentioned VM arguments is correct ?

-Dnet4j.config=D:/eclipse-SDK-3.7.1-win32/eclipse/configuration/

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761376 is a reply to message #761360] Tue, 06 December 2011 06:31 Go to previous messageGo to next message
Eclipse UserFriend
Am 06.12.2011 11:51, schrieb vinny503:
> Hi,
>
> cdo-server.xml is located in configuration folder D:/eclipse-SDK-3.7.1-win32/eclipse/configuration/, So is it the
> following mentioned VM arguments is correct ?
>
> -Dnet4j.config=D:/eclipse-SDK-3.7.1-win32/eclipse/configuration/
Most probably. Try it and you'll see it.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761434 is a reply to message #761376] Tue, 06 December 2011 08:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I tried and it is working, Now CDO server started.
Then I followed "Getting Started with Dawn" tutorial. In this is it Dawn Explorer will hold all the GMF Diagrams ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761454 is a reply to message #761434] Tue, 06 December 2011 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Am 06.12.2011 14:26, schrieb vinny503:
> Hi,
> I tried and it is working, Now CDO server started.
> Then I followed "Getting Started with Dawn" tutorial. In this is it Dawn Explorer will hold all the GMF Diagrams ?
I think so.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761466 is a reply to message #761454] Tue, 06 December 2011 09:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

How do I get Dawn Explorer window and CDO Session window in my RCP Application ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761619 is a reply to message #761466] Tue, 06 December 2011 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Am 06.12.2011 15:09, schrieb vinny503:
> Hi,
>
> How do I get Dawn Explorer window and CDO Session window in my RCP Application ?
What have you tried so far? Look for these classes:

org.eclipse.emf.cdo.internal.ui.views.CDOSessionsView
org.eclipse.emf.cdo.dawn.ui.views.DawnExplorer

Include the containing plugins into your deployment.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761868 is a reply to message #761619] Wed, 07 December 2011 02:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

I have deployed those plugins but when I try to Launch an Eclipse Application, I get the runtime Exception. Please find the attached log file.

Actually these projects were created in Eclipse 3.6.1 version, since CDO and Dawn plugins are in Eclipse 3.7.1 version, So I imported those projects. Is it the version is creating problem ?


Regards,
Vinay

[Updated on: Wed, 07 December 2011 03:38] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761881 is a reply to message #761868] Wed, 07 December 2011 03:13 Go to previous messageGo to next message
Eclipse UserFriend
Am 07.12.2011 08:54, schrieb vinny503:
> Hi Eike,
>
> I have deployed those plugins but when I try to Launch an Eclipse Application, I get the runtime Exception. Please
> find the attached log file.
There's nothing attached.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761890 is a reply to message #761881] Wed, 07 December 2011 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

Sorry I forgot to attach. Please find it now.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761896 is a reply to message #761890] Wed, 07 December 2011 03:49 Go to previous messageGo to next message
Eclipse UserFriend
Am 07.12.2011 09:40, schrieb vinny503:
> Hi Eike,
>
> Sorry I forgot to attach. Please find it now.
That looks like a fundamental problem with your RCP application. Please ask for advice in the platform or RCP forums.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #761963 is a reply to message #761896] Wed, 07 December 2011 06:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

I resolved that problem. Now after launching I see error on the DawnExplorer window, shown below...And also please find the Image that shows the plugin.xml attached, which has Extension tab for adding DawnExplorer view shown.


java.lang.ClassNotFoundException: org.eclipse.emf.cdo.dawn.ui.views.DawnExplorer
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:260)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:63)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:327)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:662)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:272)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:981)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2714)
at org.eclipse.ui.internal.WorkbenchWindow$27.run(WorkbenchWindow.java:3023)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3004)
at org.eclipse.ui.internal.WorkbenchWindow$20.runWithException(WorkbenchWindow.java:2290)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1595)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at omsbuilder.diagram.application.OmsbuilderApplication.start(OmsbuilderApplication.java:22)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)


Regards,
Vinay

[Updated on: Wed, 07 December 2011 06:19] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762130 is a reply to message #761896] Wed, 07 December 2011 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

DawnExplorer class not found Problem is resolved.

Now I was trying to generate Dawn GMF Fragment i.e xxx.diagram.dawn. After the generation I see error in MANIFEST.MF file, says that unsatisfied version constraint. Please find the image showing MANIFEST.MF file with error.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762157 is a reply to message #762130] Wed, 07 December 2011 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi Vinay,

We used GMF with CDO, but found that with decent sized repositories
(80.000 object) it was just too slow. I think someone said that GMF is
not optimised to use the lazy loading that CDO provides. We ended up
having to re write everything in GEF, which worked a treat and we could
take advantage of CDO 4.0's performance.

Worth looking into before you go too far.

Regards,

David

On 07/12/11 15:37, vinny503 wrote:
> Hi Eike,
>
> DawnExplorer class not found Problem is resolved.
>
> Now I was trying to generate Dawn GMF Fragment i.e xxx.diagram.dawn. After the generation I see error in MANIFEST.MF file, says that unsatisfied version constraint. Please find the image showing MANIFEST.MF file with error.
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762173 is a reply to message #762157] Wed, 07 December 2011 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Am 07.12.2011 17:16, schrieb David Wynter:
> Hi Vinay,
>
> We used GMF with CDO, but found that with decent sized repositories (80.000 object) it was just too slow.
The diagram resources could be prefetched with infinite depth. That's helped a lot in other cases.

> I think someone said that GMF is not optimised to use the lazy loading that CDO provides.
Well, that doesn't hit the point so well. To participate in CDO's advanced loading and unloading mechanisms a model must
be generated in CDO "native" format (as opposed to the normal "legacy" format). That's been problematic with GMF's
notation model in the past.

I remember that Obeo has started an effort to come up with a CDO native version of the notation model:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336709

I've not had the chance to play with it, though.

> We ended up having to re write everything in GEF, which worked a treat and we could take advantage of CDO 4.0's
> performance.
Great ;-)

Cheers
/Eike

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


>
> Worth looking into before you go too far.
>
> Regards,
>
> David
>
> On 07/12/11 15:37, vinny503 wrote:
>> Hi Eike,
>>
>> DawnExplorer class not found Problem is resolved.
>>
>> Now I was trying to generate Dawn GMF Fragment i.e xxx.diagram.dawn. After the generation I see error in MANIFEST.MF
>> file, says that unsatisfied version constraint. Please find the image showing MANIFEST.MF file with error.
>>
>> Regards,
>> Vinay
>
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762507 is a reply to message #762173] Thu, 08 December 2011 03:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

Is it possible to generate RCP for Dawn GMF Fragment i.e xxx.diagram.dawn ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762523 is a reply to message #762507] Thu, 08 December 2011 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Am 08.12.2011 09:02, schrieb vinny503:
> Hi Eike,
>
> Is it possible to generate RCP for Dawn GMF Fragment i.e xxx.diagram.dawn ?
Please ask the RCP forum on how to generate RCP applications.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762566 is a reply to message #762523] Thu, 08 December 2011 05:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

I am able to generate Dawn GMF Fragment but when I Launch an Eclipse Application in Fragment.xml, In the runtime workbench I tried opening GMF Editor but I find the CDO Session Protocol Problem. Please find the Image attached.

Regards,
Vinay



Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762579 is a reply to message #762566] Thu, 08 December 2011 05:33 Go to previous messageGo to next message
Eclipse UserFriend
Am 08.12.2011 11:08, schrieb vinny503:
> Hi Eike,
>
> I am able to generate Dawn GMF Fragment but when I Launch an Eclipse Application in Fragment.xml, In the runtime workbench I tried opening GMF Editor but I find the CDO Session Protocol Problem. Please find the Image attached.
Seems you did not deploy your generated model plugin.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762581 is a reply to message #762566] Thu, 08 December 2011 05:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

If I click on abort button, shown in previous image, I get Resource$IOwrappedException.
Please find the image that shows the Exception.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762593 is a reply to message #762581] Thu, 08 December 2011 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Am 08.12.2011 11:37, schrieb vinny503:
> Hi Eike,
>
> If I click on abort button, shown in previous image, I get Resource$IOwrappedException.
> Please find the image that shows the Exception.
You must have done something wrong.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762606 is a reply to message #762593] Thu, 08 December 2011 06:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

I find 1 error in the DawnOmsBuilderDiagramEditorUtil.java which I am not able to rectify since it is a generated one. Probably this could be the reason why i am not able to open the GMF Editor. Please find the image attached.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762617 is a reply to message #762606] Thu, 08 December 2011 06:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

I resolved that error but still the same thing !

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762634 is a reply to message #762617] Thu, 08 December 2011 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

Can you tell me where it is expecting omsbuilder.OmsBuilderPackage Class from that image which I already sent you.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #762789 is a reply to message #762634] Thu, 08 December 2011 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Set a breakpoint.

On 08/12/2011 4:26 AM, vinny503 wrote:
> Hi Eike,
>
> Can you tell me where it is expecting omsbuilder.OmsBuilderPackage
> Class from that image which I already sent you.
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #763187 is a reply to message #762789] Fri, 09 December 2011 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

As I came across the following mentioned line on the console, but I did not get a clear idea on this, Can You tell what it is expecting

No file system is defined for scheme: cdo

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #763209 is a reply to message #763187] Fri, 09 December 2011 06:02 Go to previous messageGo to next message
Eclipse UserFriend
Am 09.12.2011 11:10, schrieb vinny503:
> Hi,
>
> As I came across the following mentioned line on the console, but I did not get a clear idea on this, Can You tell
> what it is expecting
>
> No file system is defined for scheme: cdo
Google is your best friend:
http://www.google.de/search?hl=de&site=&q=%22No+file+system+is+defined+for+scheme%3A+cdo+%22&oq=%22No+file+system+is+defined+for+scheme%3A+cdo+%22&aq=f&aqi=&aql=&gs_sm=e&gs_upl=2566l4960l0l5149l3l3l0l1l0l0l100l193l1.1l2l0

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #764478 is a reply to message #763209] Mon, 12 December 2011 04:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

I tried but still not able to solve. Please find the text file attached which shows the list of errors.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #764553 is a reply to message #764478] Mon, 12 December 2011 07:21 Go to previous messageGo to next message
Eclipse UserFriend
Am 12.12.2011 10:11, schrieb vinny503:
> Hi Eike,
>
> I tried but still not able to solve. Please find the text file attached which shows the list of errors.
Martin (cc'ed) may want to comment on problems in Dawn.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #764557 is a reply to message #764553] Mon, 12 December 2011 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

could you please tell me which versions you are using for:

- Eclipse Core
- EMF
- GMF
- CDO
- Dawn

Cheers,

Martin
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #764592 is a reply to message #764557] Mon, 12 December 2011 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin,

Please find the versions mentioned below

Eclipse Core - 3.7.1

GMF - 2.3

EMF - 2.7

CDO - 4.0

Dawn - 1.0

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #764602 is a reply to message #764592] Mon, 12 December 2011 09:06 Go to previous messageGo to next message
Eclipse UserFriend
The root cause seems to be the following line in your traces:

java.lang.ClassCastException: omsbuilder.impl.OmsbuilderFactoryImpl cannot be cast to omsbuilder.OmsbuilderFactory

It seems that there is somthing wrong with your generated EMF code. Please re-generate. If the error persists, although the ClassCastException disappeared, please file a bugzilla against Dawn 1.0.

Cheers,

Martin

[Updated on: Mon, 12 December 2011 09:07] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765131 is a reply to message #764602] Tue, 13 December 2011 08:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

In some previous conversation, David said that gef with CDO 4.0 would be feasible in storing the diagrams, Is it possible to convert gmf to gef ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765135 is a reply to message #765131] Tue, 13 December 2011 08:37 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

Why do you keep asking the same question over and over and over
endlessly? GEF is a framework for creating graphical displays. It
offers nothing in terms of persistent storage of diagrams. GMF uses
GEF and only GMF with its EMF Notation models supports persistence.


On 13/12/2011 2:26 PM, vinny503 wrote:
> Hi Eike,
>
> In some previous conversation, David said that gef with CDO 4.0 would
> be feasible in storing the diagrams, Is it possible to convert gmf to
> gef ?
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765642 is a reply to message #765135] Wed, 14 December 2011 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

May I know where does all GMF Diagrams are persisted ?

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765652 is a reply to message #765642] Wed, 14 December 2011 08:09 Go to previous messageGo to next message
Eclipse UserFriend
In files, or a CDO repository, if you use Dawn.

On 14/12/2011 1:51 PM, vinny503 wrote:
> Hi,
>
> May I know where does all GMF Diagrams are persisted ?
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765669 is a reply to message #765652] Wed, 14 December 2011 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

If it is stored in files, then when I browse for diagrams in the file where it is being stored, I cannot open it, It says
Cannot open an input element
Reason: Text Editor does not have a document provider.

Regards,
Vinay

[Updated on: Wed, 14 December 2011 08:46] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765681 is a reply to message #765669] Wed, 14 December 2011 09:15 Go to previous messageGo to next message
Eclipse UserFriend
Are you using CDO? A CDO resource isn't a text file and can't be opened
in a text editor.

On 14/12/2011 2:44 PM, vinny503 wrote:
> Hi,
>
> If it is stored in files, then when I browse for diagrams in the file
> where it is being stored, I cannot open it, It says Cannot open an
> input element Reason: Text Editor does not have a document provider.
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765695 is a reply to message #765681] Wed, 14 December 2011 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

No, this is with out CDO.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #765829 is a reply to message #765695] Wed, 14 December 2011 13:37 Go to previous messageGo to next message
Eclipse UserFriend
What's "It" in "It says..."?

On 14/12/2011 3:42 PM, vinny503 wrote:
> Hi,
>
> No, this is with out CDO.
>
> Regards,
> Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #766028 is a reply to message #765829] Thu, 15 December 2011 00:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

When I open a runtime workbench and try to open the GMF Diagrams that are saved in the disk, I get that problem. Please find the image attached.

Regards,
Vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #766034 is a reply to message #766028] Thu, 15 December 2011 00:33 Go to previous messageGo to next message
Eclipse UserFriend
Am 15.12.2011 06:21, schrieb vinny503:
> Hi,
>
> When I open a runtime workbench and try to open the GMF Diagrams that are saved in the disk, I get that problem. Please find the image attached.
What would you think if you'd receive a screenshot like this? Does it carry enough information for you to understand the
problem? Sure, you could complain that the error dialog does not contain sufficient technical information, you'd
probably be right. What it's probably missing is the sentence that the Error Log (view) contains more information about
this error. Usually you can find it there, most of the times even with stack traces. And you can easily copy all that
information *as text*. That could help to help you.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #766059 is a reply to message #766034] Thu, 15 December 2011 01:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

The error log view shown below


Could not open the editor: Editor could not be initialized.

java.lang.NullPointerException
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor$1.run(DiagramDocumentEditor.java:130)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.init(DiagramDocumentEditor.java:139)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)



regards,
vinay
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #766086 is a reply to message #766059] Thu, 15 December 2011 03:01 Go to previous messageGo to next message
Eclipse UserFriend
You've set a breakpoint? What does the resource you're opening contain?

On 15/12/2011 7:43 AM, vinny503 wrote:
> Hi,
>
> The error log view shown below
>
>
> Could not open the editor: Editor could not be initialized.
>
> java.lang.NullPointerException
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor$1.run(DiagramDocumentEditor.java:130)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
> at
> org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
> at
> org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600)
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.init(DiagramDocumentEditor.java:139)
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254)
> at
> org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
> at
> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
> at
> org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
> 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:369)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:619)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
>
>
>
> regards,
> vinay
>
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #766093 is a reply to message #766059] Thu, 15 December 2011 03:19 Go to previous messageGo to next message
Eclipse UserFriend
Vinay,

if you set a breakpoint I am sure that you'll find the cause for the null pointer exception.

I guess your documentprovider is not initialized. May this has something to do with the various errors (likely compile errors) in your workspace. Could you make sure that all your GMF artifacts are generated correctly?

Cheers,

Martin
Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #780918 is a reply to message #766093] Thu, 19 January 2012 17:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin,

I face the same problem, while creating a Dawn Editor. I am sure, that there are no compile errors. The name of my model is School.ecore and when I create a new SchoolModel(.school metamodel), it works fine. But it gives me such problem, only when I am trying to creating a new DawnSchoolModel. I have given the stack trace here.....
I hope that the stack trace given here could be a good hint.
Could you please help?

at java.lang.Thread.run(Unknown Source)
Caused by: org.h2.jdbc.JdbcSQLException: Table DIAGRAM not found; SQL statement:
INSERT INTO Diagram(cdo_id, cdo_version, cdo_created, cdo_revised, cdo_resource, cdo_container, cdo_feature, school) VALUES (?, ?, ?, ?, ?, ?, ?, ?) [42102-117]
at org.h2.message.Message.getSQLException(Message.java:105)
at org.h2.message.Message.getSQLException(Message.java:116)
at org.h2.message.Message.getSQLException(Message.java:75)
at org.h2.command.Parser.readTableOrView(Parser.java:4265)
at org.h2.command.Parser.readTableOrView(Parser.java:4245)
at org.h2.command.Parser.parseInsert(Parser.java:888)
at org.h2.command.Parser.parsePrepared(Parser.java:368)
at org.h2.command.Parser.parse(Parser.java:290)
at org.h2.command.Parser.parse(Parser.java:262)
at org.h2.command.Parser.prepareCommand(Parser.java:234)
at org.h2.engine.Session.prepareLocal(Session.java:415)
at org.h2.engine.Session.prepareCommand(Session.java:376)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1049)
at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:74)
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:233)
at org.eclipse.emf.cdo.server.internal.db.SmartPreparedStatementCache.createCachedPreparedStatement(SmartPreparedStatementCache.java:79)
... 24 more

at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactionStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:85)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1109)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.save(CDOResourceImpl.java:1033)

[Updated on: Thu, 19 January 2012 19:08] by Moderator

Re: How to store gmf diagrams in CDO (Connected Data Objects) server ? [message #780919 is a reply to message #780918] Thu, 19 January 2012 17:32 Go to previous message
Eclipse UserFriend

[Updated on: Thu, 19 January 2012 17:57] by Moderator

Previous Topic:EMF with Teneo primary key problem with superclasses
Next Topic:Some thoughts on EMF intrefaces
Goto Forum:
  


Current Time: Mon Nov 10 05:03:08 EST 2025

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

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

Back to the top