error while deleting [message #1123343] |
Wed, 02 October 2013 09:16  |
Eclipse User |
|
|
|
When deleting elements from my model, I get the following error msg. Is this a known error?
!ENTRY org.eclipse.ui 4 0 2013-10-02 15:13:51.055
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4397)
at org.eclipse.swt.SWT.error(SWT.java:4312)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.NullPointerException
at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.refresh(TabbedPropertySheetPage.java:761)
at pld.presentation.PldEditor$5$1.run(PldEditor.java:814)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 24 more
|
|
|
|
|
|
|
|
|
|
|
Re: error while deleting [message #1130333 is a reply to message #1130307] |
Wed, 09 October 2013 08:51  |
Eclipse User |
|
|
|
Phil,
It doesn't look like the exception you show in the image is really the
one from TabbedPropertySheetPage from previous stack traces you show. I
assume you have looked at the error log because I imagine the exception
you were trying to track down originally is being looked with a full
stack trace. Have you looked closely at the source code for
TabbedPropertySheetPage to see where the error there is?
On 09/10/2013 2:21 PM, Phil H wrote:
> Thx Ed for your hints. It's an NPE and setting the exception breakpoint gave me this:
>
>
>
> Regarding tracking the further processing of the error; it goes next to PartRenderingEgine.java to the method Object run(final MApplicationElement uiRoot, final IEclipseContext runContext), where it enter the catch(Exception ex) statement and afterwards stay at the while loop.
>
>
> while (((testShell != null && !testShell.isDisposed()) || (theApp != null && someAreVisible(theApp.getChildren()))) && !display.isDisposed()) {
> try {
> if (!display.readAndDispatch()) {
> runContext.processWaiting();
> if (spinOnce)
> return;
> advisor.eventLoopIdle(display);
> }
> } catch (ThreadDeath th) {
> throw th;
> } catch (Exception ex) {
> handle(ex, advisor);
> } catch (Error err) {
> handle(err, advisor);
> }
> }
>
>
> So, it's hard for me to see any reasons for the NPE..especially while deleting works at all..
>
> Cheers,
> Phil
|
|
|
Powered by
FUDForum. Page generated in 0.26359 seconds