Bug 6068 - Walkback during plugin import
Summary: Walkback during plugin import
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-19 10:51 EST by Jed Anderson CLA
Modified: 2002-06-03 06:54 EDT (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 Jed Anderson CLA 2001-11-19 10:51:44 EST
I was importing a large number of plugins and got the following walkback.

Eclipse appeared to have imported all of the plugins before this occured.

Log: Mon Nov 19 10:00:37 CST 2001
4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop.
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.ClassCastException: org.eclipse.core.internal.resources.Project)
	at org.eclipse.swt.SWT.error(SWT.java:1846)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:96)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1342)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at
org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:133)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:713)
	at
com.oti.eclipsetools.internal.create.PluginImportWizard.performFinish(PluginImportWizard.java:69)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:570)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:311)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:211)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.ui.internal.ImportResourcesAction.run(ImportResourcesAction.java:62)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:453)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
	at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:710)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Log: Mon Nov 19 10:00:37 CST 2001
4 org.eclipse.core.runtime 0 Failed to execute runnable
(java.lang.ClassCastException: org.eclipse.core.internal.resources.Project)
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.ClassCastException: org.eclipse.core.internal.resources.Project)
	at org.eclipse.swt.SWT.error(SWT.java:1846)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:96)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1342)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at
org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:133)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:713)
	at
com.oti.eclipsetools.internal.create.PluginImportWizard.performFinish(PluginImportWizard.java:69)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:570)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:311)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:211)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.ui.internal.ImportResourcesAction.run(ImportResourcesAction.java:62)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:453)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
	at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:710)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Log: Mon Nov 19 10:00:45 CST 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from
plug-in: org.eclipse.core.resources.
java.lang.ClassCastException: org.eclipse.core.internal.resources.Project
	at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath0(JavaProject.java:1814)
	at org.eclipse.jdt.internal.core.JavaProject.generateInfos(JavaProject.java:372)
	at org.eclipse.jdt.internal.core.Openable.buildStructure(Openable.java:61)
	at org.eclipse.jdt.internal.core.Openable.openWhenClosed(Openable.java:351)
	at org.eclipse.jdt.internal.core.JavaProject.openWhenClosed(JavaProject.java:1366)
	at org.eclipse.jdt.internal.core.JavaElement.openHierarchy(JavaElement.java:463)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:261)
	at
org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElementInfo(JavaProject.java:637)
	at org.eclipse.jdt.internal.core.JavaProject.getOutputLocation(JavaProject.java:665)
	at org.eclipse.jdt.core.JavaCore.create(JavaCore.java:202)
	at org.eclipse.jdt.core.JavaCore.create(JavaCore.java:266)
	at
org.eclipse.jdt.internal.core.DeltaProcessor.checkProjectPropertyFileUpdate(DeltaProcessor.java:131)
	at
org.eclipse.jdt.internal.core.DeltaProcessor.checkProjectPropertyFileUpdate(DeltaProcessor.java:221)
	at
org.eclipse.jdt.internal.core.DeltaProcessor.checkProjectPropertyFileUpdate(DeltaProcessor.java:221)
	at
org.eclipse.jdt.internal.core.JavaModelManager.resourceChanged(JavaModelManager.java:812)
	at
org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:125)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:812)
	at org.eclipse.core.runtime.Platform.run(Platform.java:395)
	at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:140)
	at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:43)
	at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:64)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:110)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:687)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1189)
	at
com.oti.eclipsetools.internal.create.PluginImportWizard$1.run(PluginImportWizard.java:74)
	at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
Log: Mon Nov 19 10:00:47 CST 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from
plug-in: org.eclipse.core.resources.
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:1846)
	at org.eclipse.swt.SWT.error(SWT.java:1778)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:366)
	at org.eclipse.swt.widgets.Control.getDisplay(Control.java:632)
	at
org.eclipse.ui.views.tasklist.TaskListContentProvider.resourceChanged(TaskListContentProvider.java:285)
	at
org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:125)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:812)
	at org.eclipse.core.runtime.Platform.run(Platform.java:395)
	at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:140)
	at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:43)
	at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:64)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:110)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:698)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1189)
	at
com.oti.eclipsetools.internal.create.PluginImportWizard$1.run(PluginImportWizard.java:74)
	at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
Comment 1 Martin Aeschlimann CLA 2001-11-19 11:39:20 EST
Looks like a problem in JavaProject.setRawClasspath0(JavaProject.java:1814).
Comment 2 Philipe Mulet CLA 2001-11-19 13:55:10 EST
What version of jdtcore are you using ?
Actually I would rather want the exact source line (1814) in the corresponding 
jdtcoresrc.zip in JavaProject.java.

Suspecting we have a library folder which matches a project directly...
Comment 3 Jed Anderson CLA 2001-11-19 14:17:53 EST
I am using stable build 20011107.

Line 1814 is the second line in this multi-line expression:
									indexManager.indexBinaryFolder(									(IFolder) root.getUnderlyingResource(),
	(IProject) this.getUnderlyingResource());
Comment 4 Jed Anderson CLA 2001-11-19 16:52:22 EST
For clarification, the multi-line expression is:

indexManager.indexBinaryFolder(
   (IFolder) root.getUnderlyingResource(),
   (IProject) this.getUnderlyingResource());
Comment 5 Philipe Mulet CLA 2001-11-21 04:57:01 EST
This would indicate that the resource associated witha a Java project wasn't a 
IProject ? Sounds scary.
Comment 6 Philipe Mulet CLA 2002-05-21 12:55:41 EDT
Closed, not reproduced in 6 months. Might have been a VM bug.
Comment 7 Jerome Lanneluc CLA 2002-06-03 06:54:36 EDT
Never reproduced