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 112765 - Project (on NFS) cannot be cleaned when using some user bean from the project
Summary: Project (on NFS) cannot be cleaned when using some user bean from the project
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 16:17 UTC by Jana Maleckova
Modified: 2008-03-05 15:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-08-14 16:17:54 UTC
Product Version: NetBeans IDE Dev (Build 070814) Java: 1.5.0_13-ea; Java HotSpot(TM) Client VM 1.5.0_13-ea-b01 System:
SunOS version 5.10 running on sparc; ISO646-US; en (nb)

Description:
============
have j2se project with jpanel and jframe
jpanel contains some components like jbutton etc.
 1. clean&build project
 2. then try to insert jpanel into jframe - drag from project win and drop it in frame opened in design area
 3. do clean&build again ....
IDE warms that it's not possible to delete build directory and when frame is reopened, IDE warms user, form file is
corrupted...
the same case occurs when jpanel is imported into palette and finally inserted in frame

seems to be platform specific because mac, win and linux are OK
I hesitate if this issue should have P1 or P2 priority but this is common scenario and solaris users could use this
scenarion very often, thats why I chose P1
Comment 1 Jan Stola 2007-08-15 13:44:46 UTC
This issue is not related to Solaris. It is related to NFS. We probably forgot to close some stream while loading some 
user classes. The corresponding .class files can be deleted without problem usually. On NFS unfortunately such files 
are not deleted, but renamed to .nfsABCDEF So, the corresponding directory is not empty when all files are deleted => 
the directory cannot be deleted => clean fails. It is not possible to delete this .nfs because it is immediately 
renamed to another .nfs file. User have to restart the IDE to be able to get rid of this file.
Lowering priority because it happens only on disks mounted via NFS.
Comment 2 Jan Stola 2007-09-11 14:09:32 UTC
Fixed.

Modified files:
/cvs/form/src/org/netbeans/modules/form/project/FormClassLoader.java
new revision: 1.11; previous revision: 1.10
/cvs/form/src/org/netbeans/modules/form/project/ProjectClassLoader.java
new revision: 1.10; previous revision: 1.9
Comment 3 Jana Maleckova 2008-03-05 15:30:06 UTC
verified on

Product Version: NetBeans IDE 6.1 Beta (Build 200803050202)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 11.0-b11
System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)