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 185892 - IllegalStateException: Should not acquire Children.MUTEX while holding ProjectManager.mutex()
Summary: IllegalStateException: Should not acquire Children.MUTEX while holding Projec...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2010-05-11 11:40 UTC by zolta
Modified: 2010-05-20 06:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169405


Attachments
stacktrace (7.05 KB, text/plain)
2010-05-11 11:40 UTC, zolta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zolta 2010-05-11 11:40:29 UTC
This bug was originally marked as duplicate of bug 153244, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201005101712)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
zolta: trying to make lucene available to Parsing API platform module by adding lucene as wrapped jar




Stacktrace: 
java.lang.IllegalStateException: Should not acquire Children.MUTEX while holding ProjectManager.mutex()
   at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1829)
   at org.openide.util.Mutex.doWrapperAccess(Mutex.java:1323)
   at org.openide.util.Mutex.readAccess(Mutex.java:351)
   at org.openide.explorer.view.VisualizerNode$QP.run(VisualizerNode.java:685)
   at org.openide.util.Mutex.doEvent(Mutex.java:1338)
   at org.openide.util.Mutex.writeAccess(Mutex.java:452)
Comment 1 zolta 2010-05-11 11:40:33 UTC
Created attachment 98754 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-05-11 11:55:34 UTC
Project customizer calls via apisupport to nodes while holding project mutex. Such calls are forbidden as they lead to deadlocks.
Comment 3 Jesse Glick 2010-05-11 17:17:05 UTC
There is nothing wrong with the project customizer. The problem is in PackageView$RootNode.propertyChange, which needs to call changeOriginal asynch.
Comment 4 Tomas Zezula 2010-05-18 09:14:02 UTC
Fixed jet-main aa536643bce4
Comment 5 Quality Engineering 2010-05-20 06:14:42 UTC
Integrated into 'main-golden', will be available in build *201005192201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/aa536643bce4
User: Tomas Zezula <tzezula@netbeans.org>
Log: #185892:IllegalStateException: Should not acquire Children.MUTEX while holding ProjectManager.mutex()