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 90009

Summary: Deadlock when generating a file from template
Product: java Reporter: Andrei Badea <abadea>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: blocker Keywords: THREAD
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description Andrei Badea 2006-11-24 13:35:24 UTC
The generator for JPA entity classes needs to create classes from the default
template for Java classes. During a run of the generator I got the attached
deadlock.
Comment 1 Andrei Badea 2006-11-24 13:35:59 UTC
Created attachment 36266 [details]
Thread dump
Comment 2 Tomas Zezula 2006-11-24 15:00:08 UTC
Deadlock among DataLoaders and Javac's lock. Thread (tid=0xa2604800) holds
DataLoader's lock and requires the javac's lock. The JS-Thread holds javac and
tries to acquire the DataLoader's lock.
Comment 3 Tomas Zezula 2006-11-27 17:19:15 UTC
Checking in src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.14; previous revision: 1.13
done
Comment 4 Tomas Zezula 2006-12-08 10:52:46 UTC
*** Issue 90747 has been marked as a duplicate of this issue. ***