Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360475 - Exception java.util.Collections$EmptyMap incompatible with java.lang.Number
Summary: Exception java.util.Collections$EmptyMap incompatible with java.lang.Number
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Michael Rennie CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 13:40 EDT by Leopoldo (Polo) Miranda CLA
Modified: 2012-01-10 14:40 EST (History)
1 user (show)

See Also:


Attachments
exception guard (5.61 KB, patch)
2011-11-03 16:36 EDT, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.