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 175883 - [68cat] IllegalStateException: Should not acquire Children.MUTEX while holding ProjectManager.mutex()
Summary: [68cat] IllegalStateException: Should not acquire Children.MUTEX while holdin...
Status: RESOLVED DUPLICATE of bug 189854
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-01 20:55 UTC by giorgio42
Modified: 2011-10-26 13:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161329


Attachments
stacktrace (11.41 KB, text/plain)
2009-11-01 20:55 UTC, giorgio42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description giorgio42 2009-11-01 20:55:35 UTC
Build: NetBeans IDE Dev (Build 091030)
VM: Java HotSpot(TM) Client VM, 17.0-b03, Java(TM) SE Runtime Environment, 1.7.0-ea-b74
OS: Windows Vista, 6.0, x86

User Comments:
giorgio42: Edited maven-based project (changed encoding to UTF-8), then clicked save...



Stacktrace: 
java.lang.IllegalStateException: Should not acquire Children.MUTEX while holding ProjectManager.mutex()
        at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1809)
        at org.openide.util.Mutex.doWrapperAccess(Mutex.java:1320)
        at org.openide.util.Mutex.readAccess(Mutex.java:351)
        at org.openide.explorer.view.TreeView$TreePropertyListener.propertyChange(TreeView.java:1209)
        at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:188)
        at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
Comment 1 giorgio42 2009-11-01 20:55:40 UTC
Created attachment 90390 [details]
stacktrace
Comment 2 Milos Kleint 2009-11-03 14:25:28 UTC
1. project customizer insfrastructure creates a project write mutex for saving the customizer.
2. xam transactions are thread-based, so I have to both start and end transaction on the same thread - AWT one.
3. when saving the xml file, a chain of listeners can eventually kick into the Child mutex.

I'm currently using one long transaction for the customizer which I was told it wrong but there is currently no way to
rollback changes done to the model that would span multiple transaction. only one can be rollbacked within xam as far as
I know.

reassigning to xml.
Comment 3 Svata Dedic 2011-10-26 13:24:50 UTC

*** This bug has been marked as a duplicate of bug 189854 ***