Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EVL] NoSuchMethodError in exported plugin
[EVL] NoSuchMethodError in exported plugin [message #659445] Mon, 14 March 2011 01:58 Go to next message
Christian  is currently offline Christian Friend
Messages: 14
Registered: February 2011
Junior Member

I have built a GMF Editor, enabled validation and added the Epsilon Validation Framework.
So far everything worked fine. When i start my Editor as an Eclipse Application (Project opened in Eclipse, right-click -> Run As Eclipse Application) my written Constraints get checked and displayed as expected.

However, when i package my project as a (feature) plugin and export it it into a fresh Eclipse Installation I get the following exception after running the validation:
java.lang.NoSuchMethodError: geock.diagram.providers.MindmapValidationDecoratorProvider$StatusDecorator.getDecoration()Lorg/eclipse/gmf/runtime/diagram/ui/internal/services/decorator/Decoration;)

The plugins I installed are: GMF Runtime 1.4.2, Epsilon Core 0.9.0, and my projects plugin.
Adding the Epsilon Live Validation plugin, doesn't help.

At least the editor desn't crash anymore after commenting out the getDecoration() call.. but i still get the following exception in the error log:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoSuchMethodError: mindmap.diagram.providers.MindmapValidationDecoratorProvider$StatusDecorator.getDecoration()Lorg/eclipse/gmf/runtime/diagram/ui/internal/services/decorator/Decoration;)
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.SWT.error(
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.runAsyncMessages(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.ui.internal.Workbench.runEventLoop(
	at org.eclipse.ui.internal.Workbench.runUI(
	at org.eclipse.ui.internal.Workbench.access$4(
	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(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: java.lang.NoSuchMethodError: mindmap.diagram.providers.MindmapValidationDecoratorProvider$StatusDecorator.getDecoration()Lorg/eclipse/gmf/runtime/diagram/ui/internal/services/decorator/Decoration;
	at mindmap.diagram.providers.MindmapValidationDecoratorProvider$StatusDecorator.refresh(
	at mindmap.diagram.providers.MindmapValidationDecoratorProvider$1$
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(
	at mindmap.diagram.providers.MindmapValidationDecoratorProvider$
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(

 * @generated
public void refresh() {
	// add decoration
	if (editPart instanceof org.eclipse.gef.GraphicalEditPart) {
		if (view instanceof Edge) {
			setDecoration(getDecoratorTarget().addConnectionDecoration(getImage(severity), 50, true));
		} else {
			int margin = -1;
			if (editPart instanceof org.eclipse.gef.GraphicalEditPart) {
				margin = MapModeUtil.getMapMode(((org.eclipse.gef.GraphicalEditPart) editPart).getFigure()).DPtoLP(margin);
			setDecoration(getDecoratorTarget().addShapeDecoration(getImage(severity),IDecoratorTarget.Direction.NORTH_EAST, margin, true));

		if (getDecoration() != null) {

Help would be appreciated!


[Updated on: Mon, 14 March 2011 01:59]

Report message to a moderator

Re: [EVL] NoSuchMethodError in exported plugin [message #659620 is a reply to message #659445] Mon, 14 March 2011 20:10 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Christian,

Hmm, this seems like it might be a GMF problem, and more specifically it is possibly a version problem. Some suggestions:

- Double-check that the versions of the GMF, EMF, etc plugins are the same in your plugin development and target workspaces

- Try posting your question on the GMF forum: 16

Sorry for the somewhat unsatisfactory answer; I often find exceptions thrown deep in the bowels of EMF/GMF tricky to understand Sad

Best regards,
Previous Topic:Epsilon, Eugenia with GMF
Next Topic:ETL - How to Handle Metamodel Extensions
Goto Forum:

Current Time: Sun Apr 22 14:10:35 GMT 2018

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

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