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 36103

Summary: [java-mdr] Deadlock in MDR
Product: java Reporter: Jan Becicka <jbecicka>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description Jan Becicka 2003-09-16 10:21:05 UTC
Beans module tests did not finished correctly due
to deadlock.
Comment 1 Jan Becicka 2003-09-16 10:21:33 UTC
Created attachment 11630 [details]
Thread dump
Comment 2 Pavel Flaska 2003-09-19 14:27:10 UTC
CodeGenerator running in transaction cannot finish its work because of
waiting for the document (prepareDocument() ) lock. -- Bridge is
trying to refresh its state (it is trying to start read transaction).
-- its thread holds document. Unfortunatelly, it cannot go into
because of generator holds it.
Fixing problem in generator (do not remove elemnts from removed
sources) will probably solve this problem. -- Will investigate
possible other scenarios which can cause the same problem.
Comment 3 Pavel Flaska 2003-09-25 10:21:53 UTC
Fixed. CodeGenerator does not generate elements, which are part of the
removed source. There is no need to obtain lock in prepareDocument(),
the thread should not lock each other.
Comment 4 ehucka 2003-12-05 09:51:35 UTC
Verified in build from 5.12.2003.