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 147939 - applying any design pattern popped up "java.lang.Error: Cannot call invokeAndWait"
Summary: applying any design pattern popped up "java.lang.Error: Cannot call invokeAnd...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Design Center (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords: REGRESSION
: 148666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-22 23:29 UTC by Peter Lam
Modified: 2008-09-30 06:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (35.08 KB, text/plain)
2008-09-22 23:30 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-09-22 23:29:56 UTC
build 20080922

This is a regression since this action was working before.
- create a uml project
- create a package from project tree
- right click on the package and select Apply Design Pattern...
- follow thru the wizard to select any design pattern
- once Finish button is clicked, the following error popped up. See attached ide log file.

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.uml.designpattern.ApplyPatternAction.applyPattern(ApplyPatternAction.java:183)
	at org.netbeans.modules.uml.designpattern.ApplyPatternAction.apply(ApplyPatternAction.java:161)
	at org.netbeans.modules.uml.designpattern.ApplyPatternAction.performAction(ApplyPatternAction.java:112)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
...
Comment 1 Peter Lam 2008-09-22 23:30:40 UTC
Created attachment 70240 [details]
ide log file
Comment 2 Sergey Petrov 2008-09-23 07:00:37 UTC
look like there was no changes in 4 months,
fix http://hg.netbeans.org/uml-main/rev/c0e637b25a54
Comment 3 Sergey Petrov 2008-09-23 19:30:11 UTC
http://hg.netbeans.org/uml-main/rev/1b6f919eddb2 alternative fix
Comment 4 Trey Spiva 2008-09-23 21:25:45 UTC
Reviewed.  The changes have been implemented.
Comment 5 Peter Lam 2008-09-23 21:38:19 UTC
verified in build 20080923.
Comment 6 Quality Engineering 2008-09-24 05:46:45 UTC
Integrated into 'main-golden', will be available in build *200809240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c0e637b25a54
User: sergeyp@netbeans.org
Log: fix #147939 new thread for design pattern applying
Comment 7 Quality Engineering 2008-09-25 06:34:33 UTC
Integrated into 'main-golden', will be available in build *200809250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1b6f919eddb2
User: sergeyp@netbeans.org
Log: fix #147939 fix without creation of new thread
Comment 8 Sergey Petrov 2008-09-30 06:35:13 UTC
*** Issue 148666 has been marked as a duplicate of this issue. ***