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 72496 - org.openide.util.Mutex blocking AWT event queue
Summary: org.openide.util.Mutex blocking AWT event queue
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 20:27 UTC by shemnon
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ctrl-break stack trace of locked threads (14.00 KB, text/plain)
2006-02-09 20:28 UTC, shemnon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shemnon 2006-02-09 20:27:49 UTC
AWT Event Dispatch thread is blockend on an Object.wait() call.  

I would recommend uwing wait(long) in a loop and using some synced block to
verify that it should exit the wait or re-wait.  This happens a bit too often
Comment 1 shemnon 2006-02-09 20:28:34 UTC
Created attachment 28817 [details]
ctrl-break stack trace of locked threads
Comment 2 Antonin Nebuzelsky 2006-03-15 21:29:13 UTC
AntProjectChildren.refreshKeys tries to take the mutex and is waiting for
someone to drop it? The one holding it is the JavaEditor thread? Or the Hints
thread? Putting Mila and Honza on CC. Any idea?
Comment 3 Petr Nejedly 2006-04-14 19:21:15 UTC
Nothing is wrong with Mutex, it behaves exactly as designed and as expected.
There might be something wrong with ExclusiveMutex or one of its users and no
smartness in Mutex would prevent it w/o breaking Mutex contract (i.e. breaking
the lock).

Yes, JavaEditor holds the Children.MUTEX and tries to acquire javamodel
transaction lock (ExclusiveMutex), which is held by? Who knows, but I have seen
several instances of staled ExclusiveMutex w/o any holder before.
Reassigning to javacore.
Comment 4 Jan Becicka 2006-10-26 16:26:37 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 5 Quality Engineering 2007-09-20 09:45:33 UTC
Reorganization of java component