Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Error when moving from Kepler to Luna
Error when moving from Kepler to Luna [message #1368552] Tue, 20 May 2014 07:06 Go to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
Hi,

I'm currently maintaining a GMF project, that is working fine with Kepler.

By switching to Luna M7 (without any changes in the Ecore or other GMF files like .gmfgraph, .mgftool and .gmfmap), if I use the GMF dashboard to generate the .gmfgen file from the .gmfmap, I get

A) A popup with error
"Error parsing OCL expression:in Layout, line 29"
appears.

B) In the Error log, an empty message with following stack trace is logged by plugin org.eclipse.m2m.qvt.oml:
java.lang.NullPointerException
	at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtEnvironmentBase.getAllContextualOperations(QvtEnvironmentBase.java:369)
	at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtEnvironmentBase.getAdditionalOperations(QvtEnvironmentBase.java:340)
	at org.eclipse.m2m.internal.qvt.oml.runtime.util.OCLEnvironmentWithQVTAccessFactory$EnvImpl.getAdditionalOperations(OCLEnvironmentWithQVTAccessFactory.java:323)
	at org.eclipse.m2m.internal.qvt.oml.runtime.util.OCLEnvironmentWithQVTAccessFactory$EnvImpl.getAdditionalOperations(OCLEnvironmentWithQVTAccessFactory.java:1)
	at org.eclipse.ocl.AbstractEnvironment.getAdditionalOperations(AbstractEnvironment.java:481)
	at org.eclipse.m2m.internal.qvt.oml.runtime.util.OCLEnvironmentWithQVTAccessFactory$EnvImpl.getAdditionalOperations(OCLEnvironmentWithQVTAccessFactory.java:322)
	at org.eclipse.m2m.internal.qvt.oml.runtime.util.OCLEnvironmentWithQVTAccessFactory$EnvImpl.getAdditionalOperations(OCLEnvironmentWithQVTAccessFactory.java:1)
	at org.eclipse.ocl.AbstractTypeChecker.getOperations(AbstractTypeChecker.java:753)
	at org.eclipse.ocl.AbstractTypeChecker.getBestMatchingOperations(AbstractTypeChecker.java:1119)
	at org.eclipse.ocl.AbstractTypeChecker.findOperationMatching(AbstractTypeChecker.java:1082)
	at org.eclipse.ocl.util.TypeUtil.findOperationMatching(TypeUtil.java:100)
	at org.eclipse.ocl.AbstractEnvironment.doLookupOperation(AbstractEnvironment.java:633)
	at org.eclipse.ocl.AbstractEnvironment.lookupOperation(AbstractEnvironment.java:614)
	at org.eclipse.ocl.AbstractEnvironment.tryLookupOperation(AbstractEnvironment.java:1016)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalVisitorCS.lookupOperation(QvtOperationalVisitorCS.java:461)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalVisitorCS.genOperationCallExp(QvtOperationalVisitorCS.java:1300)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalVisitorCS.genOperationCallExp(QvtOperationalVisitorCS.java:1)
	at org.eclipse.ocl.parser.AbstractOCLAnalyzer.operationCallExpCS(AbstractOCLAnalyzer.java:4079)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalVisitorCS.operationCallExpCS(QvtOperationalVisitorCS.java:1236)
	at org.eclipse.ocl.parser.AbstractOCLAnalyzer.modelPropertyCallExpCS(AbstractOCLAnalyzer.java:3858)
	at org.eclipse.ocl.parser.AbstractOCLAnalyzer.propertyCallExpCS(AbstractOCLAnalyzer.java:3461)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalVisitorCS.propertyCallExpCS(QvtOperationalVisitorCS.java:1086)
	at org.eclipse.ocl.parser.AbstractOCLAnalyzer.oclExpressionCS(AbstractOCLAnalyzer.java:1979)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalVisitorCS.oclExpressionCS(QvtOperationalVisitorCS.java:768)
	at org.eclipse.gmf.internal.xpand.ocl.EmbeddedQVTAnalyzer.analyzeExpression(EmbeddedQVTAnalyzer.java:49)
	at org.eclipse.gmf.internal.xpand.ocl.ExpressionHelper.getOCLExpression(ExpressionHelper.java:119)
	at org.eclipse.gmf.internal.xpand.ocl.ExpressionHelper.evaluate(ExpressionHelper.java:78)
	at org.eclipse.gmf.internal.xpand.ast.IfStatement.evaluateInternal(IfStatement.java:76)
	at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
	at org.eclipse.gmf.internal.xpand.ast.LetStatement.evaluateInternal(LetStatement.java:66)
	at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
	at org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evaluate(AbstractDefinition.java:82)
	at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:68)
	at org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:139)
	at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
	at org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evaluate(AbstractDefinition.java:82)
	at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:68)
	at org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:139)
	at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
	at org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evaluate(AbstractDefinition.java:82)
	at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:68)
	at org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:139)
	at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
	at org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evaluate(AbstractDefinition.java:82)
	at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:68)
	at org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:139)
	at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statement.java:29)
	at org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evaluate(AbstractDefinition.java:82)
	at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:68)
	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:446)
	at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation.executeTransformation(TransformToGenModelOperation.java:272)
	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:4353)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1152)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1033)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:635)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:578)
	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:379)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:233)
	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.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)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)


Any suggestion welcome ...

Best regards,
Bernard.
Re: Error when moving from Kepler to Luna [message #1397383 is a reply to message #1368552] Wed, 09 July 2014 16:42 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Bernard,

The problem stems from the bug in QVTo. It was introduced in milestone M7 and was fixed in RC1.
I suggest to update QVTo to bits from Luna release.

Regards,
Sergey.
Previous Topic:java.lang.IllegalArgumentException: can't find ID print
Next Topic:org.eclipse.gmf.* bundles cannot be found after moving to Luna
Goto Forum:
  


Current Time: Tue Jan 16 23:45:12 GMT 2018

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

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