| Summary: | simple EAttribute drag/drop triggers "Unhandled Event Loop" exception in standard ECore tree editor | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Philipp W. Kutter <kutter> |
| Component: | Edit | Assignee: | Ed Merks <Ed.Merks> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | blocker | ||
| Priority: | P3 | ||
| Version: | 2.7.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 359043 *** |
With the minimal ECore example you can think of, package P class C attribute a: EString attribute b: EString just open it in the standard ECore tree editor, and drag the b one position up, such that b would be first and a second -> Unhandled Event Loop exception. This very basic standard use case did work perfectly under Eclipse 3.5.2 and 3.6.2 I especially downloaded Eclipse 3.6.2, and I can download 3.7.Mx and 3..0, 3.7.1 versions and test where the error was exactly introduced, if this helps. The ECore to test is attached (but you can take any ECore I assume), and the event loop exception is below. This bug is breaking for us, and makes a very bad impression even on the simplest demo. Any chance to get that fixed ASAP? Regards, Philipp eclipse.buildId=M20110909-1335 java.version=1.6.0_29 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH Framework arguments: -product org.eclipse.epp.package.modeling.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product Error Tue Nov 01 07:58:03 CET 2011 Unhandled event loop exception java.lang.NullPointerException at org.eclipse.emf.ecore.impl.EClassImpl.getFeatureID(EClassImpl.java:1466) at org.eclipse.emf.ecore.util.BasicExtendedMetaData.getAffiliation(BasicExtendedMetaData.java:1339) at org.eclipse.emf.edit.command.SetCommand.prepare(SetCommand.java:525) at org.eclipse.emf.common.command.AbstractCommand.canExecute(AbstractCommand.java:114) at org.eclipse.emf.edit.command.AbstractOverrideableCommand.doCanExecute(AbstractOverrideableCommand.java:120) at org.eclipse.emf.edit.command.AbstractOverrideableCommand.canExecute(AbstractOverrideableCommand.java:113) at org.eclipse.emf.edit.command.DragAndDropCommand.prepareDropLinkOn(DragAndDropCommand.java:801) at org.eclipse.emf.edit.command.DragAndDropCommand.prepareDropOn(DragAndDropCommand.java:707) at org.eclipse.emf.edit.command.DragAndDropCommand.prepare(DragAndDropCommand.java:307) at org.eclipse.emf.common.command.AbstractCommand.canExecute(AbstractCommand.java:114) at org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.helper(EditingDomainViewerDropAdapter.java:301) at org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.dragEnter(EditingDomainViewerDropAdapter.java:143) at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:60) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774) at org.eclipse.swt.dnd.DropTarget.DragEnter(DropTarget.java:297) at org.eclipse.swt.dnd.DropTarget$3.method3(DropTarget.java:243) at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:92) at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363) at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289) at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)