Bug 267739

Summary: NPE in WorkbenchMenuService
Product: [RT] RAP Reporter: Jordi Boehme Lopez <jboehme>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P2 CC: ivan
Version: 1.2Keywords: needinfo
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jordi Boehme Lopez CLA 2009-03-09 18:01:56 EDT
I found multiple stacktraces like this in my tomcat catalina.out log file:

java.lang.NullPointerException
	at org.eclipse.ui.internal.menus.WorkbenchMenuService.<init>(WorkbenchMenuService.java:265)
	at org.eclipse.ui.internal.Workbench.initializeDefaultServices(Workbench.java:1668)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2404)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2295)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:514)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at com.yoxos.yim.ui.rap.YODWorkbench.createUI(YODWorkbench.java:30)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:228)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:116)
	at java.lang.Thread.run(Thread.java:595)
Comment 1 Ivan Furnadjiev CLA 2009-04-24 08:58:06 EDT
Jordi, can you provide a snippet to reproduce it?
Comment 2 Benjamin Muskalla CLA 2009-07-30 06:32:34 EDT
Stumbled across this while playing with workbench restarts.
This happens if you try to start the workbench twice. Not sure we should support this scenario or if RCP supports it (need to check against RCP 3.4)

Entrypint:

Display display = PlatformUI.createDisplay();
PlatformUI.createAndRunWorkbench( display, worbenchAdvisor );
PlatformUI.createAndRunWorkbench( display, worbenchAdvisor );
Comment 3 RĂ¼diger Herrmann CLA 2010-01-27 09:29:09 EST
I don't consider the use case described in comment #2 as valid. If the exception is caused by something else, please reopen and provide information how it can be provoked.