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

Bug 360475

Summary: Exception java.util.Collections$EmptyMap incompatible with java.lang.Number
Product: [WebTools] JSDT Reporter: Leopoldo (Polo) Miranda <polomm>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact: Michael Rennie <Michael_Rennie>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.4   
Target Milestone: 3.4 M5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
exception guard none

Description Leopoldo (Polo) Miranda CLA 2011-10-10 13:40:30 EDT
I'm getting this exception in a single debug session



java.lang.ClassCastException: java.util.Collections$EmptyMap incompatible with java.lang.Number
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFObjectReference.<init>(CFObjectReference.java:81)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFVariable.<init>(CFVariable.java:60)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFStackFrame.parseLocals(CFStackFrame.java:113)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFStackFrame.<init>(CFStackFrame.java:70)
	at org.eclipse.wst.jsdt.debug.internal.crossfire.jsdi.CFThreadReference.frames(CFThreadReference.java:112)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptThread.getStackFrames(JavaScriptThread.java:298)
	at org.eclipse.wst.jsdt.debug.internal.core.model.JavaScriptThread.getTopStackFrame(JavaScriptThread.java:331)
	at org.eclipse.debug.internal.ui.contexts.LaunchSuspendTrigger.notifySuspend(LaunchSuspendTrigger.java:109)
	at org.eclipse.debug.internal.ui.contexts.LaunchSuspendTrigger.handleDebugEvents(LaunchSuspendTrigger.java:91)
	at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1117)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1151)
	at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:415)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



Eclipse 3.7
JSDI, head version
FF 7.0.1
Crossfire latest from source
Frirebug 1.8.3


All default values for "Crossfire Remote Attach" and setting local project as well (any sample Static Web Project)
Comment 1 Michael Rennie CLA 2011-10-11 14:00:09 EDT
looks like it is caused by the Firebug bug: http://code.google.com/p/fbug/issues/detail?id=4635
Comment 2 Michael Rennie CLA 2011-11-03 16:36:15 EDT
Created attachment 206432 [details]
exception guard

The patch acts as a guard against the exception until the proper fix is applied to the Crossfire extension.
Comment 3 Michael Rennie CLA 2012-01-10 14:40:03 EST
Marking fixed. There is no need to keep this bug open, a fix has been applied to Eclipse to prevent the Crossfire bug.