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

Summary: IllegalStateException: This function should be called while holding treeLock
Product: apisupport Reporter: brettryan <brettryan>
Component: TemplatesAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: jglick
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 182754
Attachments: stacktrace

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