Bug 72200 - Exceptions while debugging
Summary: Exceptions while debugging
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-08-18 14:33 EDT by Venkat Balabhadrapatruni CLA
Modified: 2009-08-30 02:09 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 Venkat Balabhadrapatruni CLA 2004-08-18 14:33:28 EDT
I have installed Eclipse 3.0 GA version and EMF 2.0 plugins on top of it. 
Generated some Model code from a Rose Model, and then invoked the runtime 
workbench in debug mode to instantiate the models. The generated model code was 
throwing a Null Pointer exception, and hence I set a break point to catch the 
Null Pointer exception, and then repeat the process of instantiating the model, 
the debugger stopped at the line where the error has occured, and when I run 
it, my runtime workbench and Eclipse workbench are hung and this is what I see 
in the logs of the base Eclipse workbench:

!ENTRY org.eclipse.core.runtime 4 2 Aug 18, 2004 11:08:04.218
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
java.lang.IncompatibleClassChangeError: class java.lang.ThreadLocal does not 
implement interface java.util.Map
	at org.eclipse.jdt.internal.core.JavaModelManager.putInfos
(JavaModelManager.java(Compiled Code))
	at org.eclipse.jdt.internal.core.BinaryType.getChildren(BinaryType.java
(Compiled Code))
	at 
org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider.com
puteAdditions(DefaultJavaFoldingStructureProvider.java(Compiled Code))
	at 
org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider.com
puteAdditions(DefaultJavaFoldingStructureProvider.java:261)
	at 
org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider.ini
tialize(DefaultJavaFoldingStructureProvider.java:238)
	at 
org.eclipse.jdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider.pro
jectionEnabled(DefaultJavaFoldingStructureProvider.java:186)
	at 
org.eclipse.jface.text.source.projection.ProjectionViewer.fireProjectionEnabled
(ProjectionViewer.java:473)
	at 
org.eclipse.jface.text.source.projection.ProjectionViewer.enableProjection
(ProjectionViewer.java:521)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation
(ProjectionViewer.java:1325)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.doOperation
(JavaSourceViewer.java:152)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl
(JavaEditor.java:3333)
	at 
org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.createPartControl
(ClassFileEditor.java:666)
	at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java(Inlined Compiled Code))
	at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
	at org.eclipse.ui.internal.PartPane.createChildControl
(PartPane.java:133)
	at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:205)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection
(PartStack.java:939)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1020)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:290)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:110)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:59)
	at org.eclipse.ui.internal.EditorAreaHelper.openEditor
(EditorAreaHelper.java:266)
	at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:697)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java
(Compiled Code))
	at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:686)
	at org.eclipse.ui.internal.EditorManager.openInternalEditor
(EditorManager.java:782)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
(EditorManager.java:585)
	at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:573)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2201)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2134)
	at org.eclipse.ui.internal.WorkbenchPage.access$6
(WorkbenchPage.java:2126)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2113)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java
(Compiled Code))
	at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2108)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
(EditorUtility.java:149)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
(EditorUtility.java:119)
	at org.eclipse.jdt.internal.ui.actions.OpenTypeAction.run
(OpenTypeAction.java:76)
	at org.eclipse.jdt.internal.ui.actions.OpenTypeAction.run
(OpenTypeAction.java:89)
	at org.eclipse.ui.internal.PluginAction.runWithEvent
(PluginAction.java:276)
	at org.eclipse.ui.internal.WWinPluginAction.runWithEvent
(WWinPluginAction.java:206)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:915)
	at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:866)
	at org.eclipse.jface.action.ActionContributionItem$8.handleEvent
(ActionContributionItem.java:824)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined 
Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:41)
	at java.lang.reflect.Method.invoke(Method.java:386)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)

!ENTRY org.eclipse.core.runtime 4 2 Aug 18, 2004 11:08:05.940
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
java.lang.ClassCastException: org.eclipse.ui.internal.EditorPane$1
$ErrorEditorPart
	at 
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.activeJavaEditorChanged
(ASTProvider.java:218)
	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.access$0
(ASTProvider.java:213)
	at 
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$ActivationListener.partOpened
(ASTProvider.java:100)
	at org.eclipse.ui.internal.PartListenerList2$5.run
(PartListenerList2.java:101)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java(Inlined Compiled Code))
	at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
	at org.eclipse.ui.internal.PartListenerList2.firePartOpened
(PartListenerList2.java:99)
	at org.eclipse.ui.internal.WWinPartService$1.partOpened
(WWinPartService.java:62)
	at org.eclipse.ui.internal.PartListenerList2$5.run
(PartListenerList2.java:101)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java(Inlined Compiled Code))
	at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
	at org.eclipse.ui.internal.PartListenerList2.firePartOpened
(PartListenerList2.java:99)
	at org.eclipse.ui.internal.WorkbenchPage.firePartOpened
(WorkbenchPage.java:1431)
	at org.eclipse.ui.internal.PartPane.createChildControl
(PartPane.java:174)
	at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:205)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection
(PartStack.java:939)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:921)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1020)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:290)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:110)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:59)
	at org.eclipse.ui.internal.EditorAreaHelper.openEditor
(EditorAreaHelper.java:266)
	at org.eclipse.ui.internal.EditorManager$4.run(EditorManager.java:697)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java
(Compiled Code))
	at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:686)
	at org.eclipse.ui.internal.EditorManager.openInternalEditor
(EditorManager.java:782)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
(EditorManager.java:585)
	at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:573)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2201)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2134)
	at org.eclipse.ui.internal.WorkbenchPage.access$6
(WorkbenchPage.java:2126)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2113)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java
(Compiled Code))
	at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2108)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
(EditorUtility.java:149)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
(EditorUtility.java:119)
	at org.eclipse.jdt.internal.ui.actions.OpenTypeAction.run
(OpenTypeAction.java:76)
	at org.eclipse.jdt.internal.ui.actions.OpenTypeAction.run
(OpenTypeAction.java:89)
	at org.eclipse.ui.internal.PluginAction.runWithEvent
(PluginAction.java:276)
	at org.eclipse.ui.internal.WWinPluginAction.runWithEvent
(WWinPluginAction.java:206)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:915)
	at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:866)
	at org.eclipse.jface.action.ActionContributionItem$8.handleEvent
(ActionContributionItem.java:824)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined 
Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:41)
	at java.lang.reflect.Method.invoke(Method.java:386)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)


The stack for the Null Pointer that I was trying to debug was(not sure if this 
is required, this is in the runtime workbench's .log file):

!ENTRY org.eclipse.core.runtime 4 2 Aug 18, 2004 11:12:17.342
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.emf.ecore.impl.EFactoryImpl.createFromString
(EFactoryImpl.java:369)
	at 
com.ibm.ftt.resources.core.zresource.impl.ZresourceFactoryImpl.createIFileDataty
peFromString(ZresourceFactoryImpl.java:369)
	at 
com.ibm.ftt.resources.core.zresource.impl.ZresourceFactoryImpl.createFromString
(ZresourceFactoryImpl.java:95)
	at 
org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeCellEditor.doGetVal
ue(PropertyDescriptor.java:167)
	at org.eclipse.jface.viewers.CellEditor.getValue(CellEditor.java:421)
	at org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue
(PropertySheetEntry.java:117)
	at org.eclipse.ui.views.properties.PropertySheetViewer.applyEditorValue
(PropertySheetViewer.java:236)
	at org.eclipse.ui.views.properties.PropertySheetViewer.setInput
(PropertySheetViewer.java:795)
	at org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged
(PropertySheetPage.java:370)
	at org.eclipse.ui.views.properties.PropertySheet.selectionChanged
(PropertySheet.java:185)
	at org.eclipse.ui.internal.AbstractSelectionService$3.run
(AbstractSelectionService.java:153)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:747)
	at org.eclipse.ui.internal.AbstractSelectionService.fireSelection
(AbstractSelectionService.java:151)
	at org.eclipse.ui.internal.AbstractSelectionService.partActivated
(AbstractSelectionService.java:242)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated
(WorkbenchPage.java:1373)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart
(WorkbenchPage.java:2695)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation
(WorkbenchPage.java:2372)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:304)
	at org.eclipse.ui.internal.EditorPane.requestActivation
(EditorPane.java:127)
	at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:325)
	at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:154)
	at org.eclipse.ui.internal.presentations.PresentablePart.setFocus
(PresentablePart.java:129)
	at 
org.eclipse.ui.internal.presentations.DefaultPartPresentation$2.mouseDown
(DefaultPartPresentation.java:132)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:132)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:41)
	at java.lang.reflect.Method.invoke(Method.java:386)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)



please let me know if you need any more details. 

Since the workbenchs hung, I had to kill both using the Task Manager, and the 
logs above are before I killed them.

When I brought the Eclipse workbench up again then the workbench opened in the 
resource perspective while I was in the Java perspective before killing the 
workbench.
Comment 1 Olivier Thomann CLA 2004-08-18 16:02:15 EDT
Move to JDT/UI for comment on the ClassCastException.
Comment 2 Dirk Baeumer CLA 2004-08-20 06:47:39 EDT
ClassCastException happens in ASTProvider.activeJavaEditorChanged
Comment 3 Dani Megert CLA 2004-08-20 06:56:00 EDT
The CCE is the result of the first exception (see stack trace) and is covered by
bug 70838.

Not sure how you installed Eclipse. You might have run into 70853.

Moving to J Core to comment the first exception.
Comment 4 Jerome Lanneluc CLA 2004-08-23 11:07:09 EDT
Venkat, I cannot reproduce the first exception. Any more details ?
Comment 5 Frederic Fusier CLA 2004-10-28 12:46:12 EDT
Reopen bug when providing requested info, thanks
Comment 6 Frederic Fusier CLA 2005-02-17 10:00:51 EST
Closing as never got requested information in a long time
Comment 7 Denis Roy CLA 2009-08-30 02:09:20 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.