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 189460 - Matisse GUI builder hangs in deadlock when opening in NB6.9.1 with configs imported from 6.8
Summary: Matisse GUI builder hangs in deadlock when opening in NB6.9.1 with configs im...
Status: RESOLVED DUPLICATE of bug 187697
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 18:27 UTC by tkhh
Modified: 2010-08-17 08:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tkhh 2010-08-12 18:27:43 UTC
I'm trying to create a new form and Netbeans 6.9.1 runs into a deadlock.
When running from a completely unmodified install with plain default config, it works.

Looking at the Netbeans process with JConsole tells me that there is a Thread deadlock between AWT-EventQueue-1 and GUI Builder. Please see stack traces below (copied from Deadlock tab in JConsole):

Name: AWT-EventQueue-1
State: BLOCKED on java.lang.Object@156ff34d owned by: GUI Builder
Total blocked: 185  Total waited: 131

Stack trace: 
java.beans.Introspector.getBeanInfo(Introspector.java:157)
org.openide.util.Utilities.getBeanInfo(Utilities.java:426)
org.netbeans.modules.form.FormUtils.getBeanInfo(FormUtils.java:1771)
org.netbeans.modules.form.RADComponent.getBeanInfo(RADComponent.java:427)
org.netbeans.modules.form.RADComponent.initInstance(RADComponent.java:187)
org.netbeans.modules.form.FormModel.setFormBaseClass(FormModel.java:169)
org.netbeans.modules.form.GandalfPersistenceManager.loadForm(GandalfPersistenceManager.java:424)
org.netbeans.modules.form.GandalfPersistenceManager.loadForm(GandalfPersistenceManager.java:298)
   - locked org.netbeans.modules.form.GandalfPersistenceManager@25a02403
org.netbeans.modules.form.FormEditor$3.run(FormEditor.java:336)
org.netbeans.modules.form.FormLAF$2.run(FormLAF.java:293)
   - locked javax.swing.MultiUIDefaults@349c5441
   - locked java.lang.Class@3c296bfe
org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
org.openide.util.Mutex.readAccess(Mutex.java:320)
org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:276)
org.netbeans.modules.form.FormEditor.loadFormData(FormEditor.java:333)
org.netbeans.modules.form.FormEditor.loadFormDesigner(FormEditor.java:231)
org.netbeans.modules.form.FormDesigner.finishComponentShowing(FormDesigner.java:1897)
org.netbeans.modules.form.FormDesigner.access$1100(FormDesigner.java:107)
org.netbeans.modules.form.FormDesigner$PreLoadTask$1.run(FormDesigner.java:1862)
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Name: GUI Builder
State: BLOCKED on java.lang.Class@3c296bfe owned by: AWT-EventQueue-1
Total blocked: 127  Total waited: 72

Stack trace: 
java.beans.Introspector.findExplicitBeanInfo(Introspector.java:426)
java.beans.Introspector.<init>(Introspector.java:377)
java.beans.Introspector.getBeanInfo(Introspector.java:164)
   - locked java.lang.Object@156ff34d
org.openide.util.Utilities.getBeanInfo(Utilities.java:426)
org.netbeans.modules.form.FormUtils.getBeanInfo(FormUtils.java:1771)
org.netbeans.modules.form.palette.PaletteItem.getBeanDescriptor(PaletteItem.java:296)
org.netbeans.modules.form.palette.PaletteItem.getDisplayName(PaletteItem.java:227)
org.netbeans.modules.form.palette.PaletteItemDataObject$ItemNode.getDisplayName(PaletteItemDataObject.java:323)
org.openide.nodes.FilterNode.getDisplayName(FilterNode.java:533)
org.openide.nodes.FilterNode.getDisplayName(FilterNode.java:533)
org.netbeans.modules.form.palette.PaletteUtils$1.run(PaletteUtils.java:242)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Comment 1 tkhh 2010-08-12 19:51:25 UTC
I can add, that the problem went away after removing the config settings under
<userdir>/config/FormDesignerPalette.

I had an additional palette defined (which is still valid), but the config entries for that don't seem to work anymore.
Comment 2 Tomas Pavek 2010-08-16 17:09:07 UTC
What is your JDK version? You might have run into bug 187697.
Comment 3 tkhh 2010-08-16 17:20:52 UTC
Thanks for pointing me to that bug.

Yes it is jdk6u21, and probably the palette contained a SwingX component.
The workaround (remove/rebuild the additional palette) is OK for us right now.
But a fix in the JDK would of course eventually help. 

It sounds like jdk6u20 would still work? This could help to survive if we need SwingX.
Comment 4 Tomas Pavek 2010-08-17 08:28:20 UTC
Yes, jdk6u20 should work. Let us know if it does not in your case.

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