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 67586 - Deadlock while setting the Java sources
Summary: Deadlock while setting the Java sources
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: EJB Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-10-26 13:56 UTC by Andrei Badea
Modified: 2005-10-26 15:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (13.71 KB, text/plain)
2005-10-26 13:57 UTC, Andrei Badea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2005-10-26 13:56:31 UTC
Just encountered a deadlock while settings the Java sources of an EJB freeform
project. Unable to reproduce again.
Comment 1 Andrei Badea 2005-10-26 13:57:10 UTC
Created attachment 26359 [details]
Thread dump
Comment 2 Andrei Badea 2005-10-26 14:07:04 UTC
Quite easy. The ProjectManager mutex is hold by APH.putConfigurationFragment()
in EDT and tries to acquire the EJBModules lock. On the other hand the RP thread
holds the EJBModules lock and tries to acquire the PM mutex.

EJBModules.findEjbJar() should not call external code (PM.findProject(), which
aqcuires the PM mutex) from a synchronized block.
Comment 3 Andrei Badea 2005-10-26 14:56:38 UTC
Hopefully fixed. No way to test, since I've seen the issue only once.

Checking in EJBModules.java;
/cvs/j2ee/ejbfreeform/src/org/netbeans/modules/j2ee/ejbfreeform/EJBModules.java,v
 <--  EJBModules.java
new revision: 1.5; previous revision: 1.4
done
Comment 4 Lukas Jungmann 2005-10-26 15:04:19 UTC
Andrei, can I ask you to look at issue #67595 if it is duplicate of this or not,
please? If it's a dup, i think i'll be able to verify this.
Comment 5 Andrei Badea 2005-10-26 15:49:25 UTC
Definitely not a duplicate. However, I posted a suggestion how to fix issue
67595 to that issue.
Comment 6 Lukas Jungmann 2005-10-26 15:58:15 UTC
thanks