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

Bug 7760

Summary: Walkback in target when inspecting variable
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on: 1564    
Bug Blocks:    

Description Peter Burka CLA 2002-01-16 11:24:40 EST
I was debugging a new Eclipse editor.  I selected a variable in the text view 
of the debugger and selected 'Inspect' from the context menu.  The following 
walkback occurred in the debug target:

java.lang.ClassNotFoundException: org.eclipse.ui.part.CodeSnippet_1
	at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass
(DelegatingURLClassLoader.java:755)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
	at java.lang.Class.forName1(Native Method)
	at java.lang.Class.forName(Class.java:134)
	at org.eclipse.ui.part.MultiPageSelectionProvider.getSelection
(MultiPageSelectionProvider.java:75)
	at org.eclipse.ui.views.tasklist.TaskList.partActivated
(TaskList.java:630)
	at org.eclipse.ui.views.tasklist.TaskList$1.partActivated
(TaskList.java:134)
	at org.eclipse.ui.internal.PartListenerList$1.run
(PartListenerList.java:37)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:821)
	at org.eclipse.core.runtime.Platform.run(Platform.java:395)
	at org.eclipse.ui.internal.PartListenerList.firePartActivated
(PartListenerList.java:35)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated
(WorkbenchPage.java:637)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart
(WorkbenchPage.java:1427)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation
(WorkbenchPage.java:1231)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:222)
	at org.eclipse.ui.internal.EditorPane.requestActivation
(EditorPane.java:112)
	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:181)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:839)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:689)
	at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:979)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2627)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1116)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1155)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:71)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2662)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1155)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:71)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2662)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1155)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:71)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2662)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1155)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:71)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2662)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1155)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:71)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2662)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1155)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:71)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2662)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1794)
	at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:1519)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1195)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:815)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:798)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:821)
	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.UIMain.main(UIMain.java:52)
Comment 1 Darin Wright CLA 2002-01-16 11:30:42 EST
Require some more details:

* Eclispe version
* The stack frame you were in (source/binary/system package, etc)
* the exrepssion evaluated
Comment 2 Peter Burka CLA 2002-01-16 11:39:40 EST
Eclipse version: 20011219
Stack frame I was in: 
org.eclipse.ui.part.MultiPageSelectionProvider.getSelection
Target VM: HDK 1.3
Selection: 'activeEditor', a temporary variable

The debugger had stopped because of a NullPointerException breakpoint.

MultiPageSelectionProvider was not loaded in my workspace, but its source was 
displayed in the debugger.
Comment 3 Darin Wright CLA 2002-01-16 12:17:49 EST
Known problem. The current evaluation technology, when self-hosting, only works 
for projects that are "source projects"  (as opposed to imported binary 
projects). The reason for this is that the Eclipse class loader is unable to 
see the "temp eval file" we deploy to do the evaluation.
Comment 4 Darin Wright CLA 2002-01-24 15:54:38 EST

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