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 204911 - IllegalStateException: This function should be called while holding treeLock
Summary: IllegalStateException: This function should be called while holding treeLock
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 03:44 UTC by brettryan
Modified: 2011-11-24 16:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182754


Attachments
stacktrace (2.94 KB, text/plain)
2011-11-10 03:44 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2011-11-10 03:44:12 UTC
Build: NetBeans IDE Dev (Build 201111070600)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
brettryan: Attempting to use the new Layout designer for netbeans platform applications.




Stacktrace: 
java.lang.IllegalStateException: This function should be called while holding treeLock
   at java.awt.Component.checkTreeLock(Component.java:1195)
   at java.awt.Container.validateTree(Container.java:1682)
   at org.netbeans.modules.apisupport.project.ui.wizard.winsys.LayoutLaunchingPanel.run(LayoutLaunchingPanel.java:262)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
   at java.awt.EventQueue.access$000(EventQueue.java:101)
Comment 1 brettryan 2011-11-10 03:44:16 UTC
Created attachment 113066 [details]
stacktrace
Comment 2 Jesse Glick 2011-11-15 20:55:33 UTC
In JDK 7 there is a check for synch on treeLock in validateTree(). Not sure whether this call is important - if so, I guess either replace with validate(), or manually synchronized (getTreeLock()) {...}.
Comment 3 Jaroslav Tulach 2011-11-21 14:08:16 UTC
ergonomics#55169b4cdd02
Comment 4 Jaroslav Tulach 2011-11-21 14:10:39 UTC

*** This bug has been marked as a duplicate of bug 204849 ***
Comment 5 Jesse Glick 2011-11-21 17:29:31 UTC
I think you meant FIXED? Surely this is not a dupe of "AssertionError: Should be a folder: ..."
Comment 6 Quality Engineering 2011-11-24 16:01:48 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/55169b4cdd02
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #204911: Call public method, not protected one