Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 170205 - [WorkingSets] NPE in org.eclipse.ui.XMLMemento.getChildren(XMLMemento.java:235)
Summary: [WorkingSets] NPE in org.eclipse.ui.XMLMemento.getChildren(XMLMemento.java:235)
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Daniel Rolka CLA
URL:
Whiteboard:
Keywords:
: 182665 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-11 06:39 EST by Jörg von Frantzius CLA
Modified: 2014-07-02 06:08 EDT (History)
4 users (show)

See Also:


Attachments
MultiHandler.java (2.39 KB, text/plain)
2010-04-13 15:13 EDT, Paul Webster CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg von Frantzius CLA 2007-01-11 06:39:09 EST
Build ID: I20061214-1445

Steps To Reproduce:
using JDK 1.6.0, don't know exact steps to reproduce

More information:
eclipse.buildId=I20061214-1445
java.version=1.6.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments:  -os linux -ws gtk -arch x86_64 -data /home/jfrantzius/Documents/eclipse_workspaces/sgw2

Error
Thu Jan 11 12:28:01 CET 2007
An unexpected exception was thrown.

java.lang.NullPointerException
	at org.eclipse.ui.XMLMemento.getChildren(XMLMemento.java:235)
	at org.eclipse.ui.internal.WorkingSet.restoreWorkingSet(WorkingSet.java:144)
	at org.eclipse.ui.internal.AbstractWorkingSet.getElementsArray(AbstractWorkingSet.java:151)
	at org.eclipse.ui.internal.AbstractWorkingSet.getElements(AbstractWorkingSet.java:139)
	at org.eclipse.ui.internal.actions.ModifyWorkingSetDelegate.selectionChanged(ModifyWorkingSetDelegate.java:216)
	at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:208)
	at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:279)
	at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:301)
	at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)
	at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62)
	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:850)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:45)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:153)
	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2004)
	at org.eclipse.jface.viewers.StructuredViewer.handleInvalidSelection(StructuredViewer.java:1101)
	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1345)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1395)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1354)
	at org.eclipse.pde.internal.runtime.logview.LogView$20.run(LogView.java:665)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3203)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2901)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1945)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:425)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	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:597)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:522)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:147)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:170)
	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:597)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:339)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
	at org.eclipse.core.launcher.Main.run(Main.java:984)
	at org.eclipse.core.launcher.Main.main(Main.java:959)
Comment 1 Hitesh CLA 2009-07-14 09:48:30 EDT
*** Bug 182665 has been marked as a duplicate of this bug. ***
Comment 2 Paul Webster CLA 2010-04-13 15:13:30 EDT
Created attachment 164763 [details]
MultiHandler.java

I wasn't able to reproduce this by using multiple threads and brute force.  I also wasn't able to find a read only memento being used as a writeable memento.

I suspect that the structure of the working set code had changed by the 3.3 release to make this scenario unlikely (and also that it was something in the working set code that was causing the problem).

I'm not going to close it since I have no proof, however this has not been a common problem since then.

PW
Comment 3 Lars Vogel CLA 2014-07-02 06:08:34 EDT
I also have not seen this in the recent years. Marking as WORKSFORME.