This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145975

Summary: [65cat] Error: Cannot call invokeAndWait from the event dispatcher thread
Product: contrib Reporter: ranbato <ranbato>
Component: CodeAssignee: _ tball <tball>
Status: RESOLVED FIXED    
Severity: blocker CC: mentlicher, tor
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=104069
Issue Type: DEFECT Exception Reporter: 104069
Attachments: stacktrace

Description ranbato 2008-09-02 22:47:20 UTC
Build: NetBeans IDE Dev (Build 200809020201)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 
I hit retry in the debugger after making code changes (Apply changes was disabled)

Stacktrace: 
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:980)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)
        at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.doMethodSelection(StepIntoActionProvider.java:134)
        at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.runAction(StepIntoActionProvider.java:110)
        at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.doAction(StepIntoActionProvider.java:93)
        at org.netbeans.api.debugger.ActionsManager.doAction(ActionsManager.java:168)
Comment 1 ranbato 2008-09-02 22:47:25 UTC
Created attachment 68909 [details]
stacktrace
Comment 2 Martin Entlicher 2008-09-03 10:37:21 UTC
A bug of org.netbeans.contrib.debuggerretry.RetryAction
It should call ActionsManager.postAction() instead of doAction().
Comment 3 Torbjorn Norbye 2008-09-10 15:50:08 UTC
Hi Martin,
I've changed the code to postAction (and added a tasklistener such that I can serialize the two actions it invokes). 
However, Step Into doesn't "work" anymore - it asks the user which method to step into. Is there an action I can invoke
to get the old step-into semantics (step into last method), noninteractively?

Fixed in d459af916816 - but again, the feature doesn't work quite as well as before because after invoking Retry you
have to press Enter or F7 to complete the step.