Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Starter error
Starter error [message #5882] Fri, 05 December 2008 11:19 Go to next message
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
Hi,
I've eclipse Ganymede with GMF, EMF, EuGENia... lastest plugins. I've
tried to lunch an EuGENia project, but when I try to "Generate GMF tool,
graph and map models", I get the follow internal error trace:


org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:276)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:365)
at org.eclipse.jface.window.Window.createShell(Window.java:487)
at org.eclipse.jface.window.Window.create(Window.java:430)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at
org.eclipse.jface.dialogs.MessageDialog.openError(MessageDia log.java:322)
at
org.eclipse.epsilon.eugenia.EolTransformationActionDelegate$ 1.run(EolTransformationActionDelegate.java:57)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Any idea?

Thanks.
Re: Starter error [message #5898 is a reply to message #5882] Fri, 05 December 2008 11:27 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Jose,

Could you please attach your annotated ECore metamodel so that I can try
to reproduce the problem?

Cheers,
Dimitrios

Jose Salazar wrote:
> Hi, I've eclipse Ganymede with GMF, EMF, EuGENia... lastest plugins.
> I've tried to lunch an EuGENia project, but when I try to "Generate GMF
> tool, graph and map models", I get the follow internal error trace:
>
>
> org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:3777)
> at org.eclipse.swt.SWT.error(SWT.java:3695)
> at org.eclipse.swt.SWT.error(SWT.java:3666)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:276)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:365)
> at org.eclipse.jface.window.Window.createShell(Window.java:487)
> at org.eclipse.jface.window.Window.create(Window.java:430)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
> at org.eclipse.jface.window.Window.open(Window.java:790)
> at
> org.eclipse.jface.dialogs.MessageDialog.openError(MessageDia log.java:322)
> at
> org.eclipse.epsilon.eugenia.EolTransformationActionDelegate$ 1.run(EolTransformationActionDelegate.java:57)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> Any idea?
>
> Thanks.
>
Re: Starter error [message #5914 is a reply to message #5898] Fri, 05 December 2008 11:55 Go to previous messageGo to next message
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
This is my simple ecore model:


<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmi:id="_kYgXoMK0Ed2Sc7hIeGvFPw" name="eugeniasample"
nsURI="http://eugeniasample" nsPrefix="http://eugeniasample">
<eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSoMK1Ed2Sc7hIeGvFPw"
name="ClassDiagram">
<eStructuralFeatures xsi:type="ecore:EReference"
xmi:id="_9SqSocK1Ed2Sc7hIeGvFPw" name="composition" upperBound="-1"
eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSosK1Ed2Sc7hIeGvFPw"
name="Class">
<eStructuralFeatures xsi:type="ecore:EAttribute"
xmi:id="_9SqSo8K1Ed2Sc7hIeGvFPw" name="name">
<eType xsi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
xmi:id="_9SqSpcK1Ed2Sc7hIeGvFPw" name="children" upperBound="-1"
eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference"
xmi:id="_9SqSp8K1Ed2Sc7hIeGvFPw" name="father"
eType="_9SqSosK1Ed2Sc7hIeGvFPw"/>
</eClassifiers>
</ecore:EPackage>

It's a tree structure model.

The emfatic sample post in the main project page give me the same error
(deleting tags that shows errors like the @gm or @compartment). A first
valid preview was:

@namespace(
uri="filesystem",
prefix="filesystem")
package filesystem;

class Filesystem {
val Drive[*] drives;
val Sync[*] syncs;
}
class Drive extends Folder {
}
class Folder extends File {
val File[*] contents;
}
class Shortcut extends File {
@gmf.link(target.decoration="arrow", style="dash")
ref File target;
}
@gmf.link(source="source", target="target", style="dot", width="2")
class Sync {
ref File source;
ref File target;
}
@gmf.node(label = "name")
class File {
attr String name;
}



Thanks.
Re: Starter error [message #5931 is a reply to message #5914] Fri, 05 December 2008 12:13 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Jose,

Your metamodel doesn't have any GMF-specific annotations and therefore
Eugenia can't generate anything out of it (of course even in this case
it should fail more gracefully but this is another issue which I will
look into shortly). Similarly, the annotations you've removed from the
filesystem metamodel are also essential.

You mentioned that you have deleted those annotations because they were
highlighted as erroneous. I suspect this has to do with the version of
Emfatic you are using (the latest version doesn't support detail-less
annotations - but this should be fixed soon). To overcome this issue
please do not delete the annotations but instead add a dummy detail so
that Emfatic doesn't complain any more. For example:

@gmf.diagram(dummy="dummyValue")
class Filesystem {
val Drive[*] drives;
val Sync[*] syncs;
}

Cheers,
Dimitris

Jose Salazar wrote:
> This is my simple ecore model:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmi:id="_kYgXoMK0Ed2Sc7hIeGvFPw" name="eugeniasample"
> nsURI="http://eugeniasample" nsPrefix="http://eugeniasample">
> <eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSoMK1Ed2Sc7hIeGvFPw"
> name="ClassDiagram">
> <eStructuralFeatures xsi:type="ecore:EReference"
> xmi:id="_9SqSocK1Ed2Sc7hIeGvFPw" name="composition" upperBound="-1"
> eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSosK1Ed2Sc7hIeGvFPw"
> name="Class">
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> xmi:id="_9SqSo8K1Ed2Sc7hIeGvFPw" name="name">
> <eType xsi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> xmi:id="_9SqSpcK1Ed2Sc7hIeGvFPw" name="children" upperBound="-1"
> eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference"
> xmi:id="_9SqSp8K1Ed2Sc7hIeGvFPw" name="father"
> eType="_9SqSosK1Ed2Sc7hIeGvFPw"/>
> </eClassifiers>
> </ecore:EPackage>
>
> It's a tree structure model.
> The emfatic sample post in the main project page give me the same error
> (deleting tags that shows errors like the @gm or @compartment). A first
> valid preview was:
>
> @namespace(
> uri="filesystem", prefix="filesystem")
> package filesystem;
> class Filesystem { val Drive[*] drives; val Sync[*] syncs; }
> class Drive extends Folder {
> } class Folder extends File { val File[*] contents;
> } class Shortcut extends File {
> @gmf.link(target.decoration="arrow", style="dash") ref File
> target; } @gmf.link(source="source", target="target", style="dot",
> width="2") class Sync { ref File source; ref File target; }
> @gmf.node(label = "name") class File { attr String name; }
>
>
>
> Thanks.
>
Re: Starter error [message #5950 is a reply to message #5931] Fri, 05 December 2008 12:32 Go to previous message
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
Thanks, it works
Re: Starter error [message #562805 is a reply to message #5882] Fri, 05 December 2008 11:27 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Jose,

Could you please attach your annotated ECore metamodel so that I can try
to reproduce the problem?

Cheers,
Dimitrios

Jose Salazar wrote:
> Hi, I've eclipse Ganymede with GMF, EMF, EuGENia... lastest plugins.
> I've tried to lunch an EuGENia project, but when I try to "Generate GMF
> tool, graph and map models", I get the follow internal error trace:
>
>
> org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:3777)
> at org.eclipse.swt.SWT.error(SWT.java:3695)
> at org.eclipse.swt.SWT.error(SWT.java:3666)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:276)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:365)
> at org.eclipse.jface.window.Window.createShell(Window.java:487)
> at org.eclipse.jface.window.Window.create(Window.java:430)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
> at org.eclipse.jface.window.Window.open(Window.java:790)
> at
> org.eclipse.jface.dialogs.MessageDialog.openError(MessageDia log.java:322)
> at
> org.eclipse.epsilon.eugenia.EolTransformationActionDelegate$ 1.run(EolTransformationActionDelegate.java:57)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> Any idea?
>
> Thanks.
>
Re: Starter error [message #562829 is a reply to message #5898] Fri, 05 December 2008 11:55 Go to previous message
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
This is my simple ecore model:


<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmi:id="_kYgXoMK0Ed2Sc7hIeGvFPw" name="eugeniasample"
nsURI="http://eugeniasample" nsPrefix="http://eugeniasample">
<eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSoMK1Ed2Sc7hIeGvFPw"
name="ClassDiagram">
<eStructuralFeatures xsi:type="ecore:EReference"
xmi:id="_9SqSocK1Ed2Sc7hIeGvFPw" name="composition" upperBound="-1"
eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSosK1Ed2Sc7hIeGvFPw"
name="Class">
<eStructuralFeatures xsi:type="ecore:EAttribute"
xmi:id="_9SqSo8K1Ed2Sc7hIeGvFPw" name="name">
<eType xsi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
xmi:id="_9SqSpcK1Ed2Sc7hIeGvFPw" name="children" upperBound="-1"
eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference"
xmi:id="_9SqSp8K1Ed2Sc7hIeGvFPw" name="father"
eType="_9SqSosK1Ed2Sc7hIeGvFPw"/>
</eClassifiers>
</ecore:EPackage>

It's a tree structure model.

The emfatic sample post in the main project page give me the same error
(deleting tags that shows errors like the @gm or @compartment). A first
valid preview was:

@namespace(
uri="filesystem",
prefix="filesystem")
package filesystem;

class Filesystem {
val Drive[*] drives;
val Sync[*] syncs;
}
class Drive extends Folder {
}
class Folder extends File {
val File[*] contents;
}
class Shortcut extends File {
@gmf.link(target.decoration="arrow", style="dash")
ref File target;
}
@gmf.link(source="source", target="target", style="dot", width="2")
class Sync {
ref File source;
ref File target;
}
@gmf.node(label = "name")
class File {
attr String name;
}



Thanks.
Re: Starter error [message #562853 is a reply to message #5914] Fri, 05 December 2008 12:13 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Jose,

Your metamodel doesn't have any GMF-specific annotations and therefore
Eugenia can't generate anything out of it (of course even in this case
it should fail more gracefully but this is another issue which I will
look into shortly). Similarly, the annotations you've removed from the
filesystem metamodel are also essential.

You mentioned that you have deleted those annotations because they were
highlighted as erroneous. I suspect this has to do with the version of
Emfatic you are using (the latest version doesn't support detail-less
annotations - but this should be fixed soon). To overcome this issue
please do not delete the annotations but instead add a dummy detail so
that Emfatic doesn't complain any more. For example:

@gmf.diagram(dummy="dummyValue")
class Filesystem {
val Drive[*] drives;
val Sync[*] syncs;
}

Cheers,
Dimitris

Jose Salazar wrote:
> This is my simple ecore model:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmi:id="_kYgXoMK0Ed2Sc7hIeGvFPw" name="eugeniasample"
> nsURI="http://eugeniasample" nsPrefix="http://eugeniasample">
> <eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSoMK1Ed2Sc7hIeGvFPw"
> name="ClassDiagram">
> <eStructuralFeatures xsi:type="ecore:EReference"
> xmi:id="_9SqSocK1Ed2Sc7hIeGvFPw" name="composition" upperBound="-1"
> eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" xmi:id="_9SqSosK1Ed2Sc7hIeGvFPw"
> name="Class">
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> xmi:id="_9SqSo8K1Ed2Sc7hIeGvFPw" name="name">
> <eType xsi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> xmi:id="_9SqSpcK1Ed2Sc7hIeGvFPw" name="children" upperBound="-1"
> eType="_9SqSosK1Ed2Sc7hIeGvFPw" containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference"
> xmi:id="_9SqSp8K1Ed2Sc7hIeGvFPw" name="father"
> eType="_9SqSosK1Ed2Sc7hIeGvFPw"/>
> </eClassifiers>
> </ecore:EPackage>
>
> It's a tree structure model.
> The emfatic sample post in the main project page give me the same error
> (deleting tags that shows errors like the @gm or @compartment). A first
> valid preview was:
>
> @namespace(
> uri="filesystem", prefix="filesystem")
> package filesystem;
> class Filesystem { val Drive[*] drives; val Sync[*] syncs; }
> class Drive extends Folder {
> } class Folder extends File { val File[*] contents;
> } class Shortcut extends File {
> @gmf.link(target.decoration="arrow", style="dash") ref File
> target; } @gmf.link(source="source", target="target", style="dot",
> width="2") class Sync { ref File source; ref File target; }
> @gmf.node(label = "name") class File { attr String name; }
>
>
>
> Thanks.
>
Re: Starter error [message #562879 is a reply to message #5931] Fri, 05 December 2008 12:32 Go to previous message
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
Thanks, it works
Previous Topic:Starter error
Next Topic:ETL and UML Stereotypes
Goto Forum:
  


Current Time: Tue Apr 23 16:48:54 GMT 2024

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

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

Back to the top