Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » TCS language project : Eclipse hangs when opening workspace
TCS language project : Eclipse hangs when opening workspace [message #380337] Mon, 12 November 2007 16:26 Go to next message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
This is my second attempt to get help on this topic: my previous message
has mysteriouly disappeared from the newsgroup.

I have built a language project (ANT-based) using the instructions given
in http://wiki.eclipse.org/TCS/Language_Project

Everything works fine: the parser for my DSL is correctly generated and I
can use it to inject models. The textual generic editor is usable too.

My problem occurs upon the following scenario:

1. I start editing some text in the generated textual generic editor
2. while the editor pane is open, I close Eclipse, or I switch workspace
3. I reopen Eclipse, or I switch back to the previous workspace

At this time, Eclipse hangs while loading plugin org.eclipse.am3.core
After several minutes, exception stacks are displayed in the console, with
the following error messages :

Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found
Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found

Finally, Eclipse opens, with my workbench in its previous state.

As I stated above, everything else works fine: it only seems that EMF is
trying to validate the XMI files of the generic editor, but fails to find
the appropriate namespace definitions at the above URIs.

Has anyone experienced the same problems?
Is it possible to disable this validation step?

Regards,

G. Savaton
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #380370 is a reply to message #380337] Fri, 16 November 2007 16:57 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hi Guillaume,

Could you please remember to prefix the subject of your TCS-related
posts with [TCS] as I did in this reply? Thanks.

> I have built a language project (ANT-based) using the instructions given
> in http://wiki.eclipse.org/TCS/Language_Project
>
> Everything works fine: the parser for my DSL is correctly generated and
> I can use it to inject models. The textual generic editor is usable too.
>
> My problem occurs upon the following scenario:
>
> 1. I start editing some text in the generated textual generic editor
> 2. while the editor pane is open, I close Eclipse, or I switch workspace
> 3. I reopen Eclipse, or I switch back to the previous workspace
>
> At this time, Eclipse hangs while loading plugin org.eclipse.am3.core
> After several minutes, exception stacks are displayed in the console,
> with the following error messages :
>
> Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found
> Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found
>
> Finally, Eclipse opens, with my workbench in its previous state.
>
> As I stated above, everything else works fine: it only seems that EMF is
> trying to validate the XMI files of the generic editor, but fails to
> find the appropriate namespace definitions at the above URIs.
>
> Has anyone experienced the same problems?
> Is it possible to disable this validation step?


Could you please give us more information about when this happens?
For instance: where does this error orrur? (e.g., with a stack trace, or
by debugging)

Thanks.


Best regards,

Frédéric Jouault
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #380374 is a reply to message #380370] Tue, 20 November 2007 12:55 Go to previous messageGo to next message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
Hi, Frédéric

> Could you please remember to prefix the subject of your TCS-related
> posts with [TCS] as I did in this reply? Thanks.

Well : I was not sure it was a TCS-related problem.

> Could you please give us more information about when this happens?
> For instance: where does this error orrur? (e.g., with a stack trace, or
> by debugging)

I'm not sure I understand what kind of additional information you need.
At least I will try to clarify a few details :
* The problem occurs during Eclipse startup : the splash screen shows
"loading org.eclipse.am3.core" and then freezes for several minutes.
* During this period, two stack traces are displayed in the terminal from
which I launched Eclipse
* Finally, the workbench opens and is fully usable

This problem occurs only if I have left a source file open in the textual
generic editor before leaving Eclipse the previous time.

I hope it is clearer.

Thanks for your help.

Guillaume
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #380375 is a reply to message #380370] Tue, 20 November 2007 12:59 Go to previous messageGo to next message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
And here is a copy of the stack traces shown in the console at startup :

ATL Console initiated
GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not
found. (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
(file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
at org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
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:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
at
org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
(file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
... 33 more
GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not
found. (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
(file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
at org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
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:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
at
org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
(file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
... 33 more
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #380376 is a reply to message #380375] Tue, 20 November 2007 14:27 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hi Guillaume,

It seems that the AM3 plugin is trying to load Outline and Editor models
as if they were megamodels.
Did you register the TGE/<your-language>-Outline.xmi and
TGE/<your-language>-Editor.xmi models as megamodels (i.e., using context
menu action "Add megamodel")?

If not, then we have to continue looking for the real cause of the problem.

If yes, the solution is to unregister these megamodels. You can simply
edit (with a text editor) the following file, and remove lines that
correspond to elements you want to unregister from the megamodel list:
<workspace> /.metadata/.plugins/org.eclipse.am3.core/am3Registry-Megamod elRegistry.ecore

Note that because the megamodel registry is associated to the workspace,
changing workspace is also a solution.

Please, let us know if it works.


Thanks,

Frédéric Jouault


Guillaume Savaton wrote:
> And here is a copy of the stack traces shown in the console at startup :
>
> ATL Console initiated
> GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline'
> not found. (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
> uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
> (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
>
> at
> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
>
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
>
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
> at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
> at
> org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
> at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
>
> 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:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
> (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
> ... 33 more
> GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not
> found. (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
> uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
> (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
>
> at
> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
>
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
>
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
> at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
> at
> org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
> at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
>
> 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:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
> (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
> ... 33 more
>
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #380377 is a reply to message #380376] Tue, 20 November 2007 15:15 Go to previous messageGo to next message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
Frédéric Jouault wrote:
> Did you register the TGE/<your-language>-Outline.xmi and
> TGE/<your-language>-Editor.xmi models as megamodels (i.e., using context
> menu action "Add megamodel")?

Yes, I did.

> Please, let us know if it works.

It works.

I remember that when I first tried the editor, I had a message like
"Please register the appropriate megamodel". Since it was not obvious
which file should be registered, I started registering XMI files, starting
from those related with the editor, until the editor was usable.

Thanks a lot,

Guillaume Savaton
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #380378 is a reply to message #380377] Tue, 20 November 2007 16:08 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

> It works.

Good to hear :-).

>
> I remember that when I first tried the editor, I had a message like
> "Please register the appropriate megamodel". Since it was not obvious
> which file should be registered, I started registering XMI files,
> starting from those related with the editor, until the editor was usable.

Right. The new plugin builder calls the megamodel file "megamodel.xmi",
which hopefully helps.

However, the ultimate goal is definitely to have the builder
automatically do megamodel registration.


Regards,

Frédéric Jouault
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #609277 is a reply to message #380337] Fri, 16 November 2007 16:57 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hi Guillaume,

Could you please remember to prefix the subject of your TCS-related
posts with [TCS] as I did in this reply? Thanks.

> I have built a language project (ANT-based) using the instructions given
> in http://wiki.eclipse.org/TCS/Language_Project
>
> Everything works fine: the parser for my DSL is correctly generated and
> I can use it to inject models. The textual generic editor is usable too.
>
> My problem occurs upon the following scenario:
>
> 1. I start editing some text in the generated textual generic editor
> 2. while the editor pane is open, I close Eclipse, or I switch workspace
> 3. I reopen Eclipse, or I switch back to the previous workspace
>
> At this time, Eclipse hangs while loading plugin org.eclipse.am3.core
> After several minutes, exception stacks are displayed in the console,
> with the following error messages :
>
> Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found
> Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found
>
> Finally, Eclipse opens, with my workbench in its previous state.
>
> As I stated above, everything else works fine: it only seems that EMF is
> trying to validate the XMI files of the generic editor, but fails to
> find the appropriate namespace definitions at the above URIs.
>
> Has anyone experienced the same problems?
> Is it possible to disable this validation step?


Could you please give us more information about when this happens?
For instance: where does this error orrur? (e.g., with a stack trace, or
by debugging)

Thanks.


Best regards,

Frédéric Jouault
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #609285 is a reply to message #380370] Tue, 20 November 2007 12:55 Go to previous message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
Hi, Frédéric

> Could you please remember to prefix the subject of your TCS-related
> posts with [TCS] as I did in this reply? Thanks.

Well : I was not sure it was a TCS-related problem.

> Could you please give us more information about when this happens?
> For instance: where does this error orrur? (e.g., with a stack trace, or
> by debugging)

I'm not sure I understand what kind of additional information you need.
At least I will try to clarify a few details :
* The problem occurs during Eclipse startup : the splash screen shows
"loading org.eclipse.am3.core" and then freezes for several minutes.
* During this period, two stack traces are displayed in the terminal from
which I launched Eclipse
* Finally, the workbench opens and is fully usable

This problem occurs only if I have left a source file open in the textual
generic editor before leaving Eclipse the previous time.

I hope it is clearer.

Thanks for your help.

Guillaume
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #609287 is a reply to message #380370] Tue, 20 November 2007 12:59 Go to previous message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
And here is a copy of the stack traces shown in the console at startup :

ATL Console initiated
GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not
found. (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
(file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
at org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
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:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
at
org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
(file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
... 33 more
GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not
found. (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
(file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
at org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
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:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
at
org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
(file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
... 33 more
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #609289 is a reply to message #380375] Tue, 20 November 2007 14:27 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hi Guillaume,

It seems that the AM3 plugin is trying to load Outline and Editor models
as if they were megamodels.
Did you register the TGE/<your-language>-Outline.xmi and
TGE/<your-language>-Editor.xmi models as megamodels (i.e., using context
menu action "Add megamodel")?

If not, then we have to continue looking for the real cause of the problem.

If yes, the solution is to unregister these megamodels. You can simply
edit (with a text editor) the following file, and remove lines that
correspond to elements you want to unregister from the megamodel list:
<workspace> /.metadata/.plugins/org.eclipse.am3.core/am3Registry-Megamod elRegistry.ecore

Note that because the megamodel registry is associated to the workspace,
changing workspace is also a solution.

Please, let us know if it works.


Thanks,

Frédéric Jouault


Guillaume Savaton wrote:
> And here is a copy of the stack traces shown in the console at startup :
>
> ATL Console initiated
> GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline'
> not found. (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
> uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
> (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
>
> at
> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
>
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
>
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
> at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
> at
> org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
> at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
>
> 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:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http://www.eclipse.org/gmt/tcs/2007/Outline' not found.
> (file:///home/gsavaton/HARMLESS-Outline.xmi, 2, 123)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
> ... 33 more
> GRAVE: Package with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not
> found. (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
> uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
> (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLL oadImpl.java:81)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:189)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1354)
>
> at
> org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel.loadASMEMFMo del(ASMEMFModel.java:335)
>
> at
> org.eclipse.m2m.atl.engine.AtlEMFModelHandler.loadModel(AtlE MFModelHandler.java:216)
>
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:129)
> at org.eclipse.am3.core.AM3Handler.mergeMegamodel(AM3Handler.ja va:121)
> at org.eclipse.am3.core.AM3Handler.initASMModel(AM3Handler.java :85)
> at
> org.eclipse.am3.core.AM3CorePlugin.createLoader(AM3CorePlugi n.java:118)
> at org.eclipse.am3.core.AM3CorePlugin.start(AM3CorePlugin.java: 51)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
>
> 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:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at org.eclipse.am3.tools.tge.Startup.earlyStartup(Startup.java: 22)
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http://www.eclipse.org/gmt/tcs/2007/Editor' not found.
> (file:///home/gsavaton/HARMLESS-Editor.xmi, 2, 137)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2453)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2285)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1239)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1336)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:970)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:953)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:684)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:167)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentSc annerImpl.java:779)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1794)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
> ... 33 more
>
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #609292 is a reply to message #380376] Tue, 20 November 2007 15:15 Go to previous message
Guillaume Savaton is currently offline Guillaume Savaton
Messages: 19
Registered: July 2009
Junior Member
Frédéric Jouault wrote:
> Did you register the TGE/<your-language>-Outline.xmi and
> TGE/<your-language>-Editor.xmi models as megamodels (i.e., using context
> menu action "Add megamodel")?

Yes, I did.

> Please, let us know if it works.

It works.

I remember that when I first tried the editor, I had a message like
"Please register the appropriate megamodel". Since it was not obvious
which file should be registered, I started registering XMI files, starting
from those related with the editor, until the editor was usable.

Thanks a lot,

Guillaume Savaton
Re: [TCS] TCS language project : Eclipse hangs when opening workspace [message #609294 is a reply to message #380377] Tue, 20 November 2007 16:08 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

> It works.

Good to hear :-).

>
> I remember that when I first tried the editor, I had a message like
> "Please register the appropriate megamodel". Since it was not obvious
> which file should be registered, I started registering XMI files,
> starting from those related with the editor, until the editor was usable.

Right. The new plugin builder calls the megamodel file "megamodel.xmi",
which hopefully helps.

However, the ultimate goal is definitely to have the builder
automatically do megamodel registration.


Regards,

Frédéric Jouault
Previous Topic:[TCS] Multiple "operatored" templates conflict
Next Topic:Re: How build DD Model with UML metamodel
Goto Forum:
  


Current Time: Tue Sep 23 06:37:20 GMT 2014

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

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