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.
Summary: | File locking exception when trying to build comp app | ||
---|---|---|---|
Product: | soa | Reporter: | lpolycarpou <lpolycarpou> |
Component: | Composite Application | Assignee: | Jun Qian <jqian> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jqian, sustaining, tli |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
lpolycarpou
2008-05-30 18:16:26 UTC
*** Issue 136191 has been marked as a duplicate of this issue. *** Louis, After some testing of the problem this morning, I think we isolated its cause. There is a bug in CompApp that triggered a race condition between NetBeans XML model updating CASA and ant tasks modifying CASA when multiple new projects are added in certain combination of projects like this one. We will need to develop a more general design to avoid this type of problems. Before the fix for this problem is implemented, one can work around this problem by either: 1) doing a save of CompApp changes in CASA before build, or 2) build the project again if the first build failed to update SU in CASA Thanks, -- Tientien Li Thanks for the update. Fixed in trunk. Changeset: http://hg.netbeans.org/main?cmd=changeset;node=485939a82f62 Integrated into 'main-golden', available in NB_Trunk_Production #239 build Changeset: http://hg.netbeans.org/main/rev/485939a82f62 User: Jun Qian <jqian@netbeans.org> Log: #136190 Fix file lock issue when building compapp project immediately after dropping multiple SU projects into CASA. I think this should be included in 6.1 patches. According to Jun, the simplest test case was simply to add two SUs and then click Build Project to reproduce the race condition. I retested this test case using Product Version: NetBeans IDE Dev (Build 200806111204) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: SunOS version 5.10 running on x86; ISO646-US; en (nb) Userdir: /Users/lautz/.netbeans/dev I can no longer reproduce the test case. The fix has been ported into the release61_fixes repository. http://hg.netbeans.org/release61_fixes/rev/29c96a215209 |