Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [bug 362543] standard ECore tree editor crashes in 3.7.1: simple EAttribute drag/drop triggers &
[bug 362543] standard ECore tree editor crashes in 3.7.1: simple EAttribute drag/drop triggers & [message #754169] Tue, 01 November 2011 07:27 Go to next message
Philipp Kutter is currently offline Philipp KutterFriend
Messages: 306
Registered: July 2009
Senior Member
I run into an unexpected crash of the standard ECore tree editor!

IMHO I consider this as breaking, severe bug for the ECore core
components, and I cannot believe that I am the first detecting it. I
appologize if there is already a bugzilla.

However, searching for "unhandled" in open EMF bugs gave no match..
the last unhandled event loop bugs I found where from 2005..

I thus filed bug 362543, and hope it is appropriate.

DESCRIPTION

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)
  • Attachment: My.ecore
    (Size: 0.63KB, Downloaded 254 times)
Re: [bug 362543] standard ECore tree editor crashes in 3.7.1: simple EAttribute drag/drop triggers & [message #754286 is a reply to message #754169] Tue, 01 November 2011 19:31 Go to previous message
Philipp Kutter is currently offline Philipp KutterFriend
Messages: 306
Registered: July 2009
Senior Member
Resolved!

Was a duplicate of three other bugs, and was fixed 6 days ago.

Regards, Philipp
Previous Topic:How do I find the EClass from a plain interface type?
Next Topic:extending EObjects to include useful stuff like EImage and EFile?
Goto Forum:
  


Current Time: Thu Apr 25 00:01:51 GMT 2024

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

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

Back to the top