Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Error while generating Diagram Editor Gen Model in Luna SR2
Error while generating Diagram Editor Gen Model in Luna SR2 [message #1785857] Fri, 20 April 2018 17:16 Go to next message
Adalberto Jr is currently offline Adalberto JrFriend
Messages: 36
Registered: December 2017
I am a begginer user of GMF and 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(
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(
at org.eclipse.gmf.internal.xpand.model.Scope.findExtension(
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(
at org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(
at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(
at org.eclipse.gmf.graphdef.codegen.FigureGenerator.go(
at org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.createViewmap(
at org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.create(
at org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTransformer.process(
at org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer.transform(
at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation$2.process(
at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation.executeTransformation(
at org.eclipse.gmf.internal.bridge.ui.dashboard.HyperlinkFigure$1.mousePressed(
at org.eclipse.draw2d.Figure.handleMousePressed(
at org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed(
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Please, I don't know how to fix this problem. I tried to use Oxygen version, but I got problems too. I saw a topic that GMF is not compatible with Oxygen.

I'm using Luna.

Re: Error while generating Diagram Editor Gen Model in Luna SR2 [message #1785927 is a reply to message #1785857] Mon, 23 April 2018 08:30 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7492
Registered: July 2009
Senior Member

"NoSuchMethodError" is a strong clue that you have inconsistent versions.

"I'm using Luna" shows that you are Mars/Neon/Oxygen out of date so have ample opportunity for inconsistent versions.

Luna also predates the challenges that Java 8/9/10 introduces so you may also have a bad Java choice.

Without knowledge of your configuration, who knows? AFAIAA consistent versions of GMF work.

Reviewing the QVTo history, the signature of createCompilerWithHistory changed on 2013-08-26 18:26:08 before Luna M2. Luna was released on June 25, 2014, so it appears that you are using a pre-Luna M2 GMF and that GMF has not supplied narrow enough version bounds on QVTo dependence.)

(The createCompilerWithHistory is an internal method that GMF should not be using directly at all. GMF has been updated. raised to eliminate need for GMF to use internal API.)


Ed Willink
Re: Error while generating Diagram Editor Gen Model in Luna SR2 [message #1798080 is a reply to message #1785927] Mon, 12 November 2018 09:10 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7492
Registered: July 2009
Senior Member

Since GMF Tooling is clearly still in use, I was inspired to try and re-instate the internal APIs and avoid the need for an old QVTo. See [1]

If you download and try

you should find two API breakages re-instated. Once we have confirmation that this makes GMF Tooling useful again we can look to include the fixes in the next QVTo release.


Ed Willink

Previous Topic:Announce QVTo 3.9.0
Next Topic:Eclipse QVTo latest P2 repos
Goto Forum:

Current Time: Mon Jul 04 02:36:14 GMT 2022

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

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

Back to the top