Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 62641

Summary: NPE occurs randomly when running as run-time workbench
Product: [Eclipse Project] Platform Reporter: Ines Khelifi <ines>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ines Khelifi CLA 2004-05-18 10:18:53 EDT
I am posting this to core to start with since that's where the NPE occurs.

This bug is not reproducible and it occurs every once in a while when I run as
“run-time workbench”. When this particular NPE occurred, I had 4 projects
loaded. I ran as “run-time workbench” and the trace displayed on the console as
the second workbench was launching. The latter workbench loaded correctly and I
was able to keep working. There was also a stack trace in the log file. I am not
sure if it is related to this bug. The log’s timestamp seems to indicate that
they occurred at similar times.

I am using Build id: 200405171219.


Console Trace:
java.lang.NullPointerException
	at
org.eclipse.core.internal.preferences.EclipsePreferences.internalGet(EclipsePreferences.java:479)
	at
org.eclipse.core.internal.preferences.EclipsePreferences.get(EclipsePreferences.java:349)
	at
org.eclipse.core.internal.preferences.PreferenceForwarder.contains(PreferenceForwarder.java:181)
	at
org.eclipse.ui.plugin.AbstractUIPlugin$CompatibilityPreferenceStore.contains(AbstractUIPlugin.java:277)
	at
org.eclipse.ui.texteditor.ChainedPreferenceStore.getVisibleStore(ChainedPreferenceStore.java:525)
	at
org.eclipse.ui.texteditor.ChainedPreferenceStore.getBoolean(ChainedPreferenceStore.java:166)
	at
org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover.getHoverInfo(AbstractAnnotationHover.java:83)
	at
org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:102)
	at
org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo(JavaEditorTextHoverProxy.java:69)
	at
org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:161)

Log Trace (in run-time workbench):
!SESSION May 18, 2004 09:57:07.418 ---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.core.runtime 4 2 May 18, 2004 09:57:07.428
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.RuntimeException: The workbench should handle hostile pulldown delegates.
	at
org.eclipse.ui.tests.menus.BrokenWorkbenchWindowPulldownDelegate.getMenu(BrokenWorkbenchWindowPulldownDelegate.java:34)
	at
org.eclipse.ui.internal.WWinPluginPulldown$MenuProxy$MenuLoader.run(WWinPluginPulldown.java:125)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:608)
	at org.eclipse.core.runtime.Platform.run(Platform.java:668)
	at
org.eclipse.ui.internal.WWinPluginPulldown$MenuProxy.getMenu(WWinPluginPulldown.java:153)
	at
org.eclipse.jface.action.ActionContributionItem.fill(ActionContributionItem.java:611)
	at org.eclipse.jface.action.SubContributionItem.fill(SubContributionItem.java:58)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:603)
	at org.eclipse.jface.action.MenuManager.updateAll(MenuManager.java:697)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:622)
	at org.eclipse.jface.action.MenuManager.updateAll(MenuManager.java:697)
	at
org.eclipse.ui.internal.WorkbenchWindow.updateActionBars(WorkbenchWindow.java:2111)
	at
org.eclipse.ui.internal.WorkbenchWindow.updateActionSets(WorkbenchWindow.java:2133)
	at org.eclipse.ui.internal.WorkbenchWindow$7.run(WorkbenchWindow.java:1921)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:1896)
	at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1464)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1216)
	at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1183)
	at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1094)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:608)
	at org.eclipse.core.runtime.Platform.run(Platform.java:668)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1027)
	at
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:167)
	at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:652)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:817)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1311)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:97)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:299)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:256)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:184)
	at org.eclipse.core.launcher.Main.run(Main.java:637)
	at org.eclipse.core.launcher.Main.main(Main.java:621)
Comment 1 DJ Houghton CLA 2004-05-18 11:02:08 EDT

*** This bug has been marked as a duplicate of 62612 ***