Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » java.lang.IllegalStateException: Root object of resource
java.lang.IllegalStateException: Root object of resource [message #103203] Mon, 12 February 2007 18:49 Go to next message
Eclipse UserFriend
Originally posted by: grekier.gmail.com

Hi everyone.

I have met an error when generating the gmfgen. (The error is following)
I must say that I am lost on that one. If someone could help me please.
He uses GMF1.


!ENTRY org.eclipse.ui 4 4 2007-02-12 18:05:10.335
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2007-02-12 18:05:10.335
!MESSAGE Root object of resource
platform:/resource/test/model/o1_1a_model.gmfmap is not GenModel
!STACK 0
java.lang.IllegalStateException: Root object of resource
platform:/resource/test/model/o1_1a_model.gmfmap is not GenModel
at
org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$GenModelDetector.get(TransformToGenModel.java:420)
at
org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel.run(TransformToGenModel.java
:132)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:254)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop (Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication
(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run (Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: java.lang.IllegalStateException: Root object of resource [message #103466 is a reply to message #103203] Tue, 13 February 2007 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Geoffrey Rekier,

Check the following link of the gmf newsgroup

Cheers biju
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg03593.html
Geoffrey Rekier wrote:
> Hi everyone.
>
> I have met an error when generating the gmfgen. (The error is following)
> I must say that I am lost on that one. If someone could help me please.
> He uses GMF1.
>
>
> !ENTRY org.eclipse.ui 4 4 2007-02-12 18:05:10.335
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2007-02-12 18:05:10.335
> !MESSAGE Root object of resource
> platform:/resource/test/model/o1_1a_model.gmfmap is not GenModel
> !STACK 0
> java.lang.IllegalStateException: Root object of resource
> platform:/resource/test/model/o1_1a_model.gmfmap is not GenModel
> at
> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$GenModelDetector.get(TransformToGenModel.java:420)
>
> at
> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel.run(TransformToGenModel.java
> :132)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:254)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at org.eclipse.jface.action.ActionContributionItem.access$2
> (ActionContributionItem.java:488)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop (Workbench.java:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication
> (EclipseAppLauncher.java:92)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run (Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: java.lang.IllegalStateException: Root object of resource [message #103475 is a reply to message #103466] Tue, 13 February 2007 11:56 Go to previous message
Eclipse UserFriend
Originally posted by: grekier.gmail.com

Thanks for your answer but (I should have said that in the first mail) I
already tried to reload the genmodel (and the others). Even generate it
anew from .ecore. It didn't help.

biju wrote:
> Hi Geoffrey Rekier,
>
> Check the following link of the gmf newsgroup
>
> Cheers biju
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg03593.html
> Geoffrey Rekier wrote:
>> Hi everyone.
>>
>> I have met an error when generating the gmfgen. (The error is
>> following) I must say that I am lost on that one. If someone could
>> help me please. He uses GMF1.
>>
>>
>> !ENTRY org.eclipse.ui 4 4 2007-02-12 18:05:10.335
>> !MESSAGE Unhandled event loop exception
>>
>> !ENTRY org.eclipse.ui 4 0 2007-02-12 18:05:10.335
>> !MESSAGE Root object of resource
>> platform:/resource/test/model/o1_1a_model.gmfmap is not GenModel
>> !STACK 0
>> java.lang.IllegalStateException: Root object of resource
>> platform:/resource/test/model/o1_1a_model.gmfmap is not GenModel
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel$GenModelDetector.get(TransformToGenModel.java:420)
>>
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.TransformToGe nModel.run(TransformToGenModel.java
>> :132)
>> at
>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:254)
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>
>> at org.eclipse.jface.action.ActionContributionItem.access$2
>> (ActionContributionItem.java:488)
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:928)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at org.eclipse.ui.internal.Workbench.runEventLoop (Workbench.java:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication
>> (EclipseAppLauncher.java:92)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> 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.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run (Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)
Previous Topic:Creating Bend Points for a Polyline
Next Topic:Making child figure's filled inside parent figure
Goto Forum:
  


Current Time: Thu Apr 25 15:52:07 GMT 2024

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

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

Back to the top