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 133073

Summary: deadlock in source.usages.ClassPathRootsListener
Product: java Reporter: David Konecny <dkonecny>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

Description David Konecny 2008-04-17 08:13:32 UTC
I've seen it once; I do not know how to reproduce it; after IDE startup I expanded project node.

The problem seems to be that  "Java Source Worker Thread" holds source.usages.ClassPathRootsListener lock and waits for
project.readAccess and "Load Open Projects" holds project.writeAccess and waits on source.usages.ClassPathRootsListener.
A solution could be (although I'm not sure it logically make sense because I have no idea what java.source module does)
for RepositoryUpdater.registerClassPath to request project.readAccess first.
Comment 1 David Konecny 2008-04-17 08:14:08 UTC
Created attachment 60319 [details]
thread dump
Comment 2 dyegoleal 2008-06-02 14:53:14 UTC
I want do see the progress of this thread
Comment 3 Jan Lahoda 2008-06-05 08:15:38 UTC
*** Issue 136001 has been marked as a duplicate of this issue. ***
Comment 4 Quality Engineering 2008-06-19 04:30:35 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #268 build
Changeset: http://hg.netbeans.org/main/rev/22a47ce74ef8
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #133073(fixed): preventing deadlock.
Comment 5 Jan Lahoda 2008-06-19 13:58:33 UTC
See above.