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 140458 - Too much code executed under Children.MUTEX.readAccess
Summary: Too much code executed under Children.MUTEX.readAccess
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: t_h
URL: http://statistics.netbeans.org/except...
Keywords:
: 140673 140788 141018 141268 141363 141372 141947 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-17 08:43 UTC by Jaromir Uhrik
Modified: 2009-04-10 17:13 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 77637


Attachments
stacktrace (3.72 KB, text/plain)
2008-07-17 08:43 UTC, Jaromir Uhrik
Details
stacktrace (3.73 KB, text/plain)
2008-07-18 10:08 UTC, Marian Mirilovic
Details
stacktrace (3.73 KB, text/plain)
2008-07-18 14:54 UTC, Petr Dvorak
Details
stacktrace (3.73 KB, text/plain)
2008-07-21 12:30 UTC, rajivderas
Details
stacktrace (3.73 KB, text/plain)
2008-07-23 19:50 UTC, sunbiz
Details
stacktrace (3.08 KB, text/plain)
2008-07-24 15:46 UTC, jlaskowski
Details
stacktrace (3.73 KB, text/plain)
2008-07-24 21:30 UTC, Jesse Glick
Details
stacktrace (7.13 KB, text/plain)
2009-04-10 17:13 UTC, spaquet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2008-07-17 08:43:11 UTC
Build: NetBeans IDE Dev (Build 200807170007)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237
OS: Mac OS X, 10.5.4, i386

User Comments: 
-create new JPanel form
-click on the JPanel node in Inspector
-->>Exception dialog appears
Comment 1 Jaromir Uhrik 2008-07-17 08:43:18 UTC
Created attachment 64796 [details]
stacktrace
Comment 2 Jaromir Uhrik 2008-07-17 08:45:24 UTC
Here are the correct steps to reproduce, sorry for previous one:
-create new JPanel form
-rightclick on the JPanel node in Inspector
-->>Exception dialog appears
Comment 3 Marian Mirilovic 2008-07-18 10:07:56 UTC
Build: NetBeans IDE Dev (Build 200807170007)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.24-19-generic, amd64

User Comments: 
following steps in issue 140673
Comment 4 Marian Mirilovic 2008-07-18 10:08:11 UTC
Created attachment 64935 [details]
stacktrace
Comment 5 Marian Mirilovic 2008-07-18 10:10:37 UTC
It is not necessary to add anything into the container, just open JFrame and right-click over component node in Inspector.
Comment 6 Marian Mirilovic 2008-07-18 10:11:11 UTC
*** Issue 140673 has been marked as a duplicate of this issue. ***
Comment 7 Petr Dvorak 2008-07-18 14:54:35 UTC
Build: NetBeans IDE Dev (Build 200807170007)
VM: Java HotSpot(TM) Client VM, 10.0-b24, Java(TM) SE Runtime Environment, 1.6.0_07-rev-b07
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Clicked the item in the Inspector view, inspector showed content of a JFrame form created in s JavaApplication (not Java Desktop App)...
Comment 8 Petr Dvorak 2008-07-18 14:54:47 UTC
Created attachment 64970 [details]
stacktrace
Comment 9 rajivderas 2008-07-21 12:29:57 UTC
Build: NetBeans IDE Dev (Build 200807170007)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments: 
Comment 10 rajivderas 2008-07-21 12:30:15 UTC
Created attachment 65111 [details]
stacktrace
Comment 11 rajivderas 2008-07-21 12:55:20 UTC
I created a JFrame Form and added a JButton component to the JFrame Form and set the layout to free design.Then I
deleted the JButton which I previouly added to the JFrame Form and selected the JFrame Form Node through the Form
Inspector and Right Clicked on it where then I got the following error.
I closed the IDE and then again opened the same form and did the same steps previouly mentioned but still the same error
pops out.
Comment 12 Jaroslav Tulach 2008-07-22 12:13:41 UTC
changeset:   90856:3c9a013791d1
tag:         tip
parent:      90854:b444fceacce7
parent:      90855:7378d12568af
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Tue Jul 22 13:12:52 2008 +0200
summary:     Merge: Scenario described in #140458 works

changeset:   90855:7378d12568af
parent:      90851:4cd3d544a677
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Tue Jul 22 12:07:34 2008 +0200
summary:     Wrong indexes in add events
Comment 13 Lukas Hasik 2008-07-23 15:22:55 UTC
*** Issue 141268 has been marked as a duplicate of this issue. ***
Comment 14 Lukas Hasik 2008-07-23 15:23:22 UTC
*** Issue 141363 has been marked as a duplicate of this issue. ***
Comment 15 Lukas Hasik 2008-07-23 15:38:46 UTC
*** Issue 141372 has been marked as a duplicate of this issue. ***
Comment 16 Jana Maleckova 2008-07-23 16:01:07 UTC
I found this issue on Build 20080723013823 where this should be already fixed at least according to time of commit but
the exception is always thrown :( I will test it once again on tomorrow build
Comment 17 t_h 2008-07-23 16:04:37 UTC
Still does not work, Children.MUTEX is held in TreeView$ExplorerTree.processEvent()
Comment 18 sunbiz 2008-07-23 19:50:10 UTC
Build: NetBeans IDE Dev (Build 200807221016)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.IllegalStateException: getNodes(true) called while holding the Children.MUTEX
Comment 19 sunbiz 2008-07-23 19:50:17 UTC
Created attachment 65424 [details]
stacktrace
Comment 20 Jaroslav Tulach 2008-07-24 12:27:50 UTC
We need a way for TreeView to _not_ acquire readAccess on each event processing. Tomáš is working on eliminating that 
need.


        at org.openide.util.Utilities.actionsToPopup(Utilities.java:2657)
        at org.openide.util.Utilities.actionsToPopup(Utilities.java:2737)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:913)
        at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1394)
        at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:182)
        at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:177)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
        at java.awt.Component.processMouseEvent(Component.java:6134)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5899)
        at java.awt.Container.processEvent(Container.java:2023)
        at org.openide.explorer.view.TreeView$ExplorerTree.doProcessEvent(TreeView.java:1643)
        at org.openide.explorer.view.TreeView$ExplorerTree.access$1900(TreeView.java:1499)
        at org.openide.explorer.view.TreeView$ExplorerTree$GuardedActions.run(TreeView.java:1996)
        at org.openide.util.Mutex.readAccess(Mutex.java:285)
        at org.openide.explorer.view.TreeView$ExplorerTree$GuardedActions.<init>(TreeView.java:1978)
        at org.openide.explorer.view.TreeView$ExplorerTree.processEvent(TreeView.java:1638)
    
Comment 21 jlaskowski 2008-07-24 15:46:51 UTC
Build: NetBeans IDE Dev (Build 200807231346)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 
While copying and pasting faces-config.xml to the same directory where original faces-config.xml was

Stacktrace: 
java.lang.IllegalStateException: getNodes(true) called while holding the Children.MUTEX
        at org.openide.loaders.FolderChildren.waitOptimalResult(FolderChildren.java:234)
        at org.openide.loaders.FolderChildren.getNodes(FolderChildren.java:214)
        at org.openide.actions.PasteAction$NodeSelector.<init>(PasteAction.java:621)
        at org.openide.actions.PasteAction$ActionPT.<init>(PasteAction.java:779)
        at org.openide.actions.PasteAction$ActSubMenuModel.performActionAt(PasteAction.java:510)
        at org.openide.actions.PasteAction$DelegateAction.actionPerformed(PasteAction.java:733)
Comment 22 jlaskowski 2008-07-24 15:46:55 UTC
Created attachment 65552 [details]
stacktrace
Comment 23 Jesse Glick 2008-07-24 21:30:02 UTC
Build: NetBeans IDE Dev (Build 080723)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Clicked on root component (JPanel) in Inspector.

Stacktrace: 
java.lang.IllegalStateException: getNodes(true) called while holding the Children.MUTEX
        at org.openide.loaders.FolderChildren.waitOptimalResult(FolderChildren.java:234)
        at org.openide.loaders.FolderChildren.getNodes(FolderChildren.java:214)
        at org.netbeans.modules.form.palette.PaletteUtils.getCategoryNodes(PaletteUtils.java:436)
        at org.netbeans.modules.form.palette.PaletteUtils.getCategoryNodes(PaletteUtils.java:412)
        at org.netbeans.modules.form.palette.PaletteMenuView.getSubNodes(PaletteMenuView.java:134)
        at org.netbeans.modules.form.palette.PaletteMenuView.<init>(PaletteMenuView.java:82)
Comment 24 Jesse Glick 2008-07-24 21:30:11 UTC
Created attachment 65586 [details]
stacktrace
Comment 25 t_h 2008-07-25 13:08:56 UTC
Fixed in ffc13d8cea6b.
Comment 26 _ pcw 2008-07-29 01:08:30 UTC
*** Issue 141018 has been marked as a duplicate of this issue. ***
Comment 27 t_h 2008-07-29 12:36:45 UTC
*** Issue 141947 has been marked as a duplicate of this issue. ***
Comment 28 Jaromir Uhrik 2008-07-30 16:52:35 UTC
Verified in build of 200807030
Comment 29 George Vasick 2008-07-30 20:26:02 UTC
*** Issue 140788 has been marked as a duplicate of this issue. ***
Comment 30 spaquet 2009-04-10 17:13:25 UTC
Build: NetBeans IDE Dev (Build 200904070200)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778 
        at org.openide.util.Mutex.enterImpl(Mutex.java:665)
        at org.openide.util.Mutex.enter(Mutex.java:630)
        at org.openide.util.Mutex.writeEnter(Mutex.java:608)
        at org.openide.util.Mutex$Privileged.enterWriteAccess(Mutex.java:1655)
        at org.openide.nodes.FilterNode$Children.changeOriginal(FilterNode.java:1362)
        at org.openide.nodes.FilterNode.changeOriginal(FilterNode.java:447)
Comment 31 spaquet 2009-04-10 17:13:45 UTC
Created attachment 79913 [details]
stacktrace