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

Bug 351745

Summary: [crossfire] CCE parsing variables
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Project Inbox <jsdt.debug-inbox>
Status: RESOLVED WONTFIX QA Contact: Michael Rennie <Michael_Rennie>
Severity: normal    
Priority: P3 CC: grant_gayed, philippe.marschall, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Rennie CLA 2011-07-11 15:12:58 EDT
using the latest from the o.3 branch and FF 5 I get the following when I suspend www.google.ca:

java.lang.ClassCastException: java.util.Collections$EmptyMap cannot be cast to java.lang.Number
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFStackFrame.parseVariables(CFStackFrame.java:127)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFObjectReference.<init>(CFObjectReference.java:72)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFStackFrame.createTypeValue(CFStackFrame.java:272)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFStackFrame.createValue(CFStackFrame.java:231)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFStackFrame.lookup(CFStackFrame.java:211)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFProperty.value(CFProperty.java:71)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptVariable.getValue(JavaScriptVariable.java:68)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptVariable.getReferenceTypeName(JavaScriptVariable.java:58)
	at org.eclipse.wst.jsdt.debug.internal.ui.actions.FunctionFilterAction.select(FunctionFilterAction.java:42)
	at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider.shouldFilter(ModelContentProvider.java:1682)
	at org.eclipse.debug.internal.ui.viewers.model.ChildrenUpdate.performUpdate(ChildrenUpdate.java:63)
	at org.eclipse.debug.internal.ui.viewers.model.ViewerUpdateMonitor$1.runInUIThread(ViewerUpdateMonitor.java:99)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Michael Rennie CLA 2011-07-12 10:04:47 EDT
the cause of this bug is: http://code.google.com/p/fbug/issues/detail?id=4635
Comment 2 Michael Rennie CLA 2012-03-02 10:30:19 EST

*** This bug has been marked as a duplicate of bug 373070 ***
Comment 3 Michael Rennie CLA 2012-03-02 10:31:06 EST
Gah! duped the wrong bug to the wrong bug...
Comment 4 Michael Rennie CLA 2012-03-02 10:31:32 EST
*** Bug 373070 has been marked as a duplicate of this bug. ***
Comment 5 Michael Rennie CLA 2013-11-12 14:00:03 EST
In a future release of Firebug, Crossfire support will be dropped completely in favour or JSD2 and RDP, as such no more bugs will be fixed for the Crossfire support.

See:
1. https://wiki.mozilla.org/Firebug/WeeklyUpdates/2013-11-05#Crossfire
2. https://getfirebug.com/wiki/index.php/JSD2_Adoption
3. https://wiki.mozilla.org/Debugger