Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Error while generating Diagram Editor Gen Model
Error while generating Diagram Editor Gen Model [message #1458064] Sat, 01 November 2014 01:12 Go to next message
Ersel Aker is currently offline Ersel AkerFriend
Messages: 2
Registered: November 2014
Junior Member
Hi I was following the mindmap GMF example, but when I try to create Diagram Editor GMF Gen Model using the GMF Dashboard. I get the following error:

Unhandled event loop exception

java.lang.NoSuchMethodError: org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.createCompilerWithHistory(Lorg/eclipse/m2m/internal/qvt/oml/compiler/UnitResolver;Lorg/eclipse/emf/ecore/resource/ResourceSet;)Lorg/eclipse/m2m/internal/qvt/oml/compiler/QVTOCompiler;
	at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.getQvtCompiler(ResourceManagerImpl.java:97)
	at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(ResourceManagerImpl.java:75)
	at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(ResourceManagerImpl.java:63)
	at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(ResourceManagerImpl.java:46)
	at org.eclipse.gmf.internal.xpand.model.Scope.findExtension(Scope.java:148)
	at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(ExecutionContextImpl.java:293)
	at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(ExecutionContextImpl.java:254)
	at org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(TypeHelper.java:35)
	at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:231)
	at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:167)
	at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:54)
	at org.eclipse.gmf.graphdef.codegen.FigureGenerator.go(FigureGenerator.java:99)
	at org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.createViewmap(InnerClassViewmapProducer.java:128)
	at org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.create(InnerClassViewmapProducer.java:76)
	at org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTransformer.process(DiagramGenModelTransformer.java:413)
	at org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer.transform(MappingTransformer.java:31)
	at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation$2.process(TransformToGenModelOperation.java:435)
	at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation.executeTransformation(TransformToGenModelOperation.java:265)
	at org.eclipse.gmf.internal.bridge.ui.dashboard.actions.TransformMap2GenModelAction.run(TransformMap2GenModelAction.java:65)
	at org.eclipse.gmf.internal.bridge.ui.dashboard.HyperlinkFigure$1.mousePressed(HyperlinkFigure.java:63)
	at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:935)
	at org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed(SWTEventDispatcher.java:242)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)



Session Data:

eclipse.buildId=4.4.1.M20140925-0400
java.version=1.7.0_67
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.modeling.product -keyring /Users/er/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.modeling.product -keyring /Users/er/.eclipse_keyring -showlocation


can anyone help me resolve this issue, I am using Eclipse Luna with Modeling Tools.
Re: Error while generating Diagram Editor Gen Model [message #1459443 is a reply to message #1458064] Sun, 02 November 2014 13:53 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5395
Registered: July 2009
Senior Member
Hi

The problem is that a redundant argument was removed from
QVTOCompiler.createCompilerWithHistory in the Luna release; from Luna M2
actually. Since QVTOCompiler is in an internal package, there is no API
compatibility prohibition in this. Code such as
org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.getQvtCompiler
that exploit internal functionality must track the internal changes.

If you are sure that you are using both Luna GMF and QVTo you should
raise a bug against GMF. As a workaround you might try the Kepler QVTo.

Since I find it difficult to understand how GMF could fail to notice the
compilation error, I suggest that you fix your installation.

Regards

Ed Willink


On 02/11/2014 01:15, Ersel Aker wrote:
> Hi I was following the mindmap GMF example, but when I try to create
> Diagram Editor GMF Gen Model using the GMF Dashboard. I get the
> following error:
>
> Unhandled event loop exception
>
>
> java.lang.NoSuchMethodError:
> org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.createCompilerWithHistory(Lorg/eclipse/m2m/internal/qvt/oml/compiler/UnitResolver;Lorg/eclipse/emf/ecore/resource/ResourceSet;)Lorg/eclipse/m2m/internal/qvt/oml/compiler/QVTOCompiler;
>
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.getQvtCompiler(ResourceManagerImpl.java:97)
>
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(ResourceManagerImpl.java:75)
>
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(ResourceManagerImpl.java:63)
>
> at
> org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(ResourceManagerImpl.java:46)
>
> at
> org.eclipse.gmf.internal.xpand.model.Scope.findExtension(Scope.java:148)
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(ExecutionContextImpl.java:293)
>
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(ExecutionContextImpl.java:254)
>
> at
> org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(TypeHelper.java:35)
>
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:231)
>
> at
> org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:167)
>
> at
> org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:54)
> at
> org.eclipse.gmf.graphdef.codegen.FigureGenerator.go(FigureGenerator.java:99)
>
> at
> org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.createViewmap(InnerClassViewmapProducer.java:128)
>
> at
> org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.create(InnerClassViewmapProducer.java:76)
>
> at
> org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTransformer.process(DiagramGenModelTransformer.java:413)
>
> at
> org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer.transform(MappingTransformer.java:31)
>
> at
> org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation$2.process(TransformToGenModelOperation.java:435)
>
> at
> org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation.executeTransformation(TransformToGenModelOperation.java:265)
>
> at
> org.eclipse.gmf.internal.bridge.ui.dashboard.actions.TransformMap2GenModelAction.run(TransformMap2GenModelAction.java:65)
>
> at
> org.eclipse.gmf.internal.bridge.ui.dashboard.HyperlinkFigure$1.mousePressed(HyperlinkFigure.java:63)
>
> at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:935)
> at
> org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed(SWTEventDispatcher.java:242)
>
> at
> org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
>
>
>
> Session Data:
>
> eclipse.buildId=4.4.1.M20140925-0400
> java.version=1.7.0_67
> java.vendor=Oracle Corporation
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.modeling.product
> -keyring /Users/er/.eclipse_keyring -showlocation
> Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product
> org.eclipse.epp.package.modeling.product -keyring
> /Users/er/.eclipse_keyring -showlocation
>
>
> can anyone help me resolve this issue, I am using Eclipse Luna with
> Modeling Tools.
Re: Error while generating Diagram Editor Gen Model [message #1463135 is a reply to message #1458064] Thu, 06 November 2014 08:49 Go to previous messageGo to next message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 57
Registered: April 2011
Member
Maybe you stumbled over the problem that Eclipse Modeling Tools for Luna still ships with the Kepler QVTo.
Re: Error while generating Diagram Editor Gen Model [message #1463204 is a reply to message #1463135] Thu, 06 November 2014 10:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5395
Registered: July 2009
Senior Member
On 06/11/2014 08:49, Christopher Gerking wrote:> Maybe you stumbled over
the problem that Eclipse Modeling Tools for Luna
> still ships with the Kepler QVTo.

http://download.eclipse.org/releases/luna seems ok to me. It seems very
unlikely that it is wrong.

Sergey certainly updated the Luna aggregator for M6,M7,RC1,RC2,RC3,RC4.

David Williams moved the repo from milestones to luna/releases in
September presumably because the ongoing use of a milestones release was
unhelpful.

Are you suggesting that the Additional Modeling Packages is offering
Kepler? That seems much more likley it's happened more than once before
and just requires a poke to Amalgam?

Regards

Ed Willink
Re: Error while generating Diagram Editor Gen Model [message #1463324 is a reply to message #1463204] Thu, 06 November 2014 12:52 Go to previous message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 57
Registered: April 2011
Member
Ed Willink wrote on Thu, 06 November 2014 05:09
Are you suggesting that the Additional Modeling Packages is offering Kepler? That seems much more likley it's happened more than once before
and just requires a poke to Amalgam?

Yes, the Eclipse Modeling Components Discovery dialog did so. Can't reproduce today, so must have been fixed.
Previous Topic:QVT standard library extension
Next Topic:Transform qvto file standalone
Goto Forum:
  


Current Time: Sat Sep 23 05:47:24 GMT 2017

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

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