Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » DelegatingUndoContext exception
DelegatingUndoContext exception [message #1593779] Fri, 30 January 2015 22:10 Go to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 387
Registered: March 2011
Senior Member
I'm getting a DelegatingUndoContext exception quite often in Papyrus, which is very annoying as it pops up a dialog every time. (See below)

I'm not 100% sure but it seems to occur every time I switch from a non-Papyrus editor to a Papyrus editor and click on a model element in the Model Explorer.

I didn't find this issue on bugzilla.

Any clues?

I'm on

Eclipse Platform

Version: Luna SR1 (4.4.1)
Build id: M20140925-0400

(Mac OS X Yosemite)

with

Papyrus 1.0.1.v201412190917

from the "releases" update site.

eclipse.buildId=unknown
java.version=1.7.0_72
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.platform.ide
Command-line arguments:  -product org.eclipse.platform.ide -data /Users/epp/Development/PapyrusRT/workspaces/papyrusrt-ws-4/../runtime-PapyrusUML-RT -dev file:/Users/epp/Development/PapyrusRT/workspaces/papyrusrt-ws-4/.metadata/.plugins/org.eclipse.pde.core/Papyrus UML-RT/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog

org.eclipse.ui.workbench
Error
Fri Jan 30 16:59:50 EST 2015
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".

java.lang.NoClassDefFoundError: org/eclipse/papyrus/infra/core/operation/DelegatingUndoContext
	at org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView.getPropertySheetPage(ModelExplorerPageBookView.java:96)
	at org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView.getAdapter(ModelExplorerPageBookView.java:107)
	at org.eclipse.ui.internal.views.ViewsPlugin.getAdapter(ViewsPlugin.java:103)
	at org.eclipse.ui.views.properties.PropertySheet.doCreatePage(PropertySheet.java:207)
	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:422)
	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:768)
	at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:325)
	at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1076)
	at org.eclipse.ui.internal.WorkbenchPage$17.run(WorkbenchPage.java:4870)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4867)
	at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:4846)
	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:210)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:236)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:233)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:684)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:615)
	at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:106)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$1.handleEvent(ContributedPartRenderer.java:61)
	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.Shell.setActiveControl(Shell.java:1577)
	at org.eclipse.swt.widgets.Control.sendMouseEvent(Control.java:3398)
	at org.eclipse.swt.widgets.Tree.sendMouseEvent(Tree.java:2659)
	at org.eclipse.swt.widgets.Control.mouseEvent(Control.java:2551)
	at org.eclipse.swt.widgets.Composite.mouseEvent(Composite.java:886)
	at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2559)
	at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:2012)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5627)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:221)
	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2105)
	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2329)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5691)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5128)
	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5277)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
	at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
	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)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.ClassNotFoundException: org.eclipse.papyrus.infra.core.operation.DelegatingUndoContext cannot be found by org.eclipse.papyrus.views.modelexplorer_1.0.1.v201412190917
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 66 more


Re: DelegatingUndoContext exception [message #1597777 is a reply to message #1593779] Mon, 02 February 2015 14:52 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi,

This kind of error is caused by an installation issue, of version mismatch between plug-ins. It shouldn't happen in a standard installation of Papyrus because everything is verified during the compilation. However it may happen in a developer environment (e.g. If you have some source plug-ins in your workspace).

Camille


Camille Letavernier
Re: DelegatingUndoContext exception [message #1597828 is a reply to message #1597777] Mon, 02 February 2015 15:37 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 387
Registered: March 2011
Senior Member
Thanks Camille. I do have a developer environment. Which plugins might cause this?
Re: DelegatingUndoContext exception [message #1597841 is a reply to message #1597828] Mon, 02 February 2015 15:49 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
oep.infra.core + oep.views.modelexplorer (At least)

You should ensure that the sources of these plug-ins are consistent with what is installed, e.g.:

Update site http://..../nightly/luna -> branch streams/1.0-maintenance
Update site http://.../nightly/mars -> branch master

Each time you update to the latest nightly build, you should also pull the latest sources from the git repository (And vice-versa). The "DelegatingUndoContext" is a new class from Luna SR1a

Camille


Camille Letavernier
Previous Topic:The Harmony SE-Toolkit from IBM
Next Topic:How to create new attribute in current class diagram programmatically
Goto Forum:
  


Current Time: Sat Jul 11 06:04:29 GMT 2020

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

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

Back to the top