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 159183 - Deadlock invoking Validate XML
Summary: Deadlock invoking Validate XML
Status: RESOLVED DUPLICATE of bug 160206
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-26 03:14 UTC by _ tboudreau
Modified: 2009-03-20 19:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (32.58 KB, text/plain)
2009-02-26 03:15 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2009-02-26 03:14:26 UTC
Steps to reproduce:
Open http://java.sun.com/xml/ns/javacard/applet-app_3_0.xsd in a browser
In a NB module project, Go to New File > Other > Empty File and make the filename applet-app_3_0.xsd
Copy the content from the browser into the file
Immediately right click and select validate XML
IDE hangs

The culprit is a RequestProcessor thread manipulating the AWT hierarchy.  This work needs to be done in the AWT thread.

        at java.awt.Container.addImpl(Container.java:1039)
        - locked <0x1c88a700> (a java.awt.Component$AWTTreeLock)
        at java.awt.Container.add(Container.java:896)
        at org.netbeans.modules.xml.schema.multiview.SchemaColumnViewMultiViewElement.recreateUI(Sch
emaColumnViewMultiViewElement.java:357)

See attached thread dump.
Comment 1 _ tboudreau 2009-02-26 03:15:45 UTC
Created attachment 77386 [details]
Thread dump
Comment 2 Nikita Krjukov 2009-03-20 18:59:51 UTC
There is the issue #160206, which has the same deadlock in thread dump. The scenarios are a bit different, but I'm sure
it is the same deadlock. I tried reproduce it, but failed. So I'm going to close it like duplicate. 

*** This issue has been marked as a duplicate of 160206 ***
Comment 3 Nikita Krjukov 2009-03-20 19:05:11 UTC
Honestly, I wasn't able to reproduce the deadlock in trunk when I was fixing the 160206. 
So I suppose here can be mistake with NetBeans version. It is set to 6.7. See my comments in the issue #160206.