Bug 267739 - NPE in WorkbenchMenuService
Summary: NPE in WorkbenchMenuService
Status: RESOLVED INVALID
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: 1.2   Edit
Hardware: All All
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-03-09 18:01 EDT by Jordi Boehme Lopez CLA
Modified: 2010-01-27 09:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.