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 68289 - Deadlock at ProjectEar.getDeploymentDescriptor():76
Summary: Deadlock at ProjectEar.getDeploymentDescriptor():76
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 15:48 UTC by Martin Schovanek
Modified: 2006-05-16 12:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread Dump (11.72 KB, text/plain)
2005-11-08 15:49 UTC, Martin Schovanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2005-11-08 15:48:25 UTC
[#200511071900, jdk1.5.0]

J2EE qa-functional tests repeatedly freezes with following stack trace:
Comment 1 Martin Schovanek 2005-11-08 15:49:47 UTC
Created attachment 26712 [details]
Thread Dump
Comment 2 Jiri Skrivanek 2005-11-09 07:04:02 UTC
Thanks to Marek Fukala for evaluation. Error dialog was opened in Mutex lock.
Fix is to post it to RequestProcessor.

/cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/ProjectEar.java,v
 <--  ProjectEar.java
new revision: 1.14; previous revision: 1.13
Comment 3 Andrei Badea 2005-11-09 10:09:59 UTC
Slightly better and more effective would have been to schedule to the EDT:

    SwingUtilities.invokeLater(new Runnable()...);

or even better:

    Mutex.EVENT.writeAccess(new Runnable()...);

The latter is the best solution because it:

- either just runs the runnable if the current thread is the EDT

- or does SwingUtilities.invokeLater() otherwise
Comment 4 Martin Schovanek 2006-03-28 16:25:14 UTC
Verified in #200603280200.
Comment 5 Martin Schovanek 2006-05-16 12:44:22 UTC
Verified in #200605160200 build.