Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » bug in PartRenderingEngine???
bug in PartRenderingEngine??? [message #1385034] Tue, 03 June 2014 19:54 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 143
Registered: July 2009
Senior Member
Hi all,
if try to exit my application, I get an Exception:

!ENTRY org.eclipse.osgi 4 0 2014-06-03 21:49:59.789
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$StylingPreferencesHandler.getPreferences(PartRenderingEngine.java:1500)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$StylingPreferencesHandler.resetOverriddenPreferences(PartRenderingEngine.java:1470)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$StylingPreferencesHandler$1.handleEvent(PartRenderingEngine.java:1458)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4346)
at org.eclipse.swt.widgets.Display.release(Display.java:3807)
at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
at
org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:179)
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:379)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:233)
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: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)

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-06-03 21:49:59.876
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTException:
Invalid thread access
at
org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
at
org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
at
org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:390)
at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:143)
at
org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:76)
at
org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:107)
at
org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:70)
at
org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:175)
at
org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:160)
at
org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:103)
at
org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:134)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
at
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)
at org.eclipse.osgi.container.Module.doStop(Module.java:624)
at org.eclipse.osgi.container.Module.stop(Module.java:488)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:186)
at
org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:160)
at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4441)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.SWT.error(SWT.java:4327)
at org.eclipse.swt.widgets.Display.error(Display.java:1258)
at org.eclipse.swt.widgets.Display.checkDevice(Display.java:764)
at org.eclipse.swt.widgets.Display.removeFilter(Display.java:4065)
at
org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.contextDisposed(MenuManagerRenderer.java:306)
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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
... 23 more




The error occurs in the getPreferences() method, if you try to get the
Workbench:

PlatformAdmin admin = WorkbenchSWTActivator.getDefault()
.getPlatformAdmin();

admin is null if you have dispose all the widgets. For exiting I've used
workbench.close().

Or have I overseen something?

Regards, Ralf.
Re: bug in PartRenderingEngine??? [message #1385057 is a reply to message #1385034] Wed, 04 June 2014 05:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5636
Registered: July 2009
Senior Member
You are missing a org.eclipse.osgi.compatibility.state in your launch
config but this has been fixed in RC4 see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=435888

Tom

On 03.06.14 21:54, Ralf Heydenreich wrote:
> Hi all,
> if try to exit my application, I get an Exception:
>
> !ENTRY org.eclipse.osgi 4 0 2014-06-03 21:49:59.789
> !MESSAGE Application error
> !STACK 1
> java.lang.NullPointerException
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$StylingPreferencesHandler.getPreferences(PartRenderingEngine.java:1500)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$StylingPreferencesHandler.resetOverriddenPreferences(PartRenderingEngine.java:1470)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$StylingPreferencesHandler$1.handleEvent(PartRenderingEngine.java:1458)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4346)
> at org.eclipse.swt.widgets.Display.release(Display.java:3807)
> at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:179)
> 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:379)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:233)
> 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: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)
>
> !ENTRY org.eclipse.e4.ui.workbench 4 0 2014-06-03 21:49:59.876
> !MESSAGE FrameworkEvent ERROR
> !STACK 0
> org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTException:
> Invalid thread access
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:390)
> at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:143)
> at
> org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:76)
> at
> org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:107)
> at
> org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:70)
> at
> org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:175)
> at
> org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:160)
> at
> org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:103)
> at
> org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:134)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
> at
> org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
> at
> org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
> at
> org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
> at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)
> at org.eclipse.osgi.container.Module.doStop(Module.java:624)
> at org.eclipse.osgi.container.Module.stop(Module.java:488)
> at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:186)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:160)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.SWT.error(SWT.java:4327)
> at org.eclipse.swt.widgets.Display.error(Display.java:1258)
> at org.eclipse.swt.widgets.Display.checkDevice(Display.java:764)
> at org.eclipse.swt.widgets.Display.removeFilter(Display.java:4065)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.contextDisposed(MenuManagerRenderer.java:306)
> 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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
> ... 23 more
>
>
>
>
> The error occurs in the getPreferences() method, if you try to get the
> Workbench:
>
> PlatformAdmin admin = WorkbenchSWTActivator.getDefault()
> .getPlatformAdmin();
>
> admin is null if you have dispose all the widgets. For exiting I've used
> workbench.close().
>
> Or have I overseen something?
>
> Regards, Ralf.
>
Previous Topic:CSS & Layouts
Next Topic:Goodies from o.e.ui.workbench
Goto Forum:
  


Current Time: Wed Apr 01 16:36:44 GMT 2015

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

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