| Summary: | [Sync View] NPE in log | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Darin Wright <darin.eclipse> |
| Component: | Team | Assignee: | Platform Team Inbox <platform-team-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P5 | CC: | daniel_megert, dirk_baeumer, martinae, Tod_Creasey |
| Version: | 3.2 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Darin Wright
This is caused by a race condition during the creation of an UnchangedResourceModelElement. A superclass constructor is adding the object to a list of childen. This is then queryed by anothe rthread before the resource valriable is set. Since we can't modify the constructor, we need to make sure the race condition does not occur. *** Bug 120834 has been marked as a duplicate of this bug. *** The default sync view page is now the model-based sync. We have left the old sync code in for now but will remove it at some point in the future. *** Bug 122887 has been marked as a duplicate of this bug. *** Version: 3.3.0 Build id: I20061003-0800 I just got this today when commiting code. Note that I have had several workspace crashes (for other reasons) today. !ENTRY org.eclipse.jface 4 2 2006-10-05 23:12:09.954 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.eclipse.team.internal.ui.synchronize.UnchangedResourceModelElement.getName(UnchangedResourceModelElement.java:42) at org.eclipse.team.internal.ui.synchronize.SynchronizeModelElement.hashCode(SynchronizeModelElement.java:231) at org.eclipse.jface.viewers.CustomHashtable.hashCode(CustomHashtable.java:265) at org.eclipse.jface.viewers.CustomHashtable.get(CustomHashtable.java:237) at org.eclipse.jface.viewers.StructuredViewer.mapElement(StructuredViewer.java:1231) at org.eclipse.jface.viewers.TreeViewer.mapElement(TreeViewer.java:893) at org.eclipse.jface.viewers.StructuredViewer.associate(StructuredViewer.java:604) at org.eclipse.jface.viewers.AbstractTreeViewer.associate(AbstractTreeViewer.java:695) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:882) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:465) 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:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1977) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:797) at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:775) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:749) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:783) at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1352) at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:962) at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1339) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1326) at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1328) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:250) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1564) at org.eclipse.team.internal.ui.synchronize.TreeViewerAdvisor.setInput(TreeViewerAdvisor.java:230) at org.eclipse.team.internal.ui.synchronize.SynchronizeModelManager.setInput(SynchronizeModelManager.java:170) at org.eclipse.team.internal.ui.synchronize.SynchronizeModelManager.setInput(SynchronizeModelManager.java:151) at org.eclipse.team.internal.ui.synchronize.SynchronizeModelManager.initialize(SynchronizeModelManager.java:229) at org.eclipse.team.internal.ui.synchronize.SynchronizePageConfiguration$2.run(SynchronizePageConfiguration.java:263) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.team.internal.ui.synchronize.SynchronizePageConfiguration.initialize(SynchronizePageConfiguration.java:258) at org.eclipse.team.internal.ui.synchronize.SynchronizePageConfiguration.fillActionBars(SynchronizePageConfiguration.java:320) at org.eclipse.team.internal.ui.synchronize.StructuredViewerAdvisor.fillActionBars(StructuredViewerAdvisor.java:363) at org.eclipse.team.internal.ui.synchronize.StructuredViewerAdvisor.setActionBars(StructuredViewerAdvisor.java:216) at org.eclipse.team.internal.ui.synchronize.AbstractSynchronizePage.setActionBars(AbstractSynchronizePage.java:146) at org.eclipse.team.ui.synchronize.ParticipantPagePane.createPartControl(ParticipantPagePane.java:126) at org.eclipse.team.internal.ccvs.ui.wizards.CommitWizardCommitPage.createChangesPage(CommitWizardCommitPage.java:149) at org.eclipse.team.internal.ccvs.ui.wizards.CommitWizardCommitPage.createChangesArea(CommitWizardCommitPage.java:133) at org.eclipse.team.internal.ccvs.ui.wizards.CommitWizardCommitPage.createControl(CommitWizardCommitPage.java:85) at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170) at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:617) at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:502) at org.eclipse.jface.window.Window.create(Window.java:426) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1111) at org.eclipse.jface.window.Window.open(Window.java:785) at org.eclipse.team.internal.ccvs.ui.wizards.ResizableWizard.open(ResizableWizard.java:47) at org.eclipse.team.internal.ccvs.ui.wizards.CommitWizard.run(CommitWizard.java:356) at org.eclipse.team.internal.ccvs.ui.wizards.CommitWizard.run(CommitWizard.java:306) at org.eclipse.team.internal.ccvs.ui.mappings.CommitAction.execute(CommitAction.java:116) at org.eclipse.team.internal.ccvs.ui.mappings.CVSModelProviderAction.run(CVSModelProviderAction.java:129) at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3398) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3022) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1916) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1880) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) 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:348) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:341) at org.eclipse.core.launcher.Main.basicRun(Main.java:285) at org.eclipse.core.launcher.Main.run(Main.java:987) at org.eclipse.core.launcher.Main.main(Main.java:962) This is happening in the old sync view framework which remains for backwards compatablity purposes. We'll leave this open to track the issue but we don't plan on addressing it. *** Bug 171508 has been marked as a duplicate of this bug. *** *** Bug 181598 has been marked as a duplicate of this bug. *** *** Bug 186387 has been marked as a duplicate of this bug. *** This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |