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.
see jpeg; i have been dealing with this for sometime now; just now got around to focusing upon the issue; i have amd phenomII quad core running win7 64bit, 64bit java, 4gig ram; this seems like a synchronization issue within netbeans --i think? if i build the highlighted ejb in the jpeg -- clean/build; and wait less than about 3 seconds after completion -- 2nd build always gets error shown in jpeg. if i way longer than about 3 seconds the error never occurs.
Created attachment 92831 [details] show 2nd build errors
To Reporter: please attach messages.log.
Created attachment 92870 [details] ide messages.log same problem; worked 2nd time
It seems that system lock some file, so the ant is unable to delete it. Can you please paste the error line here, so we can determine which file is locked? It is not clear from the screen shot since the error line is too long Thanks
another example init: deps-clean: Updating property file: C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\OrderClient\build\built-clean.properties Order.init: Order.undeploy-clean: Undeploying ... Initializing... Order.deps-clean: Deleting directory C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\build Deleting directory C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\dist C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\OrderClient\nbproject\build-impl.xml:786: The following error occurred while executing this line: C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\OrderClient\nbproject\build-impl.xml:812: The following error occurred while executing this line: C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\nbproject\build-impl.xml:621: Unable to delete file C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\dist\Order.jar BUILD FAILED (total time: 1 second)
also init: undeploy-clean: deps-clean: Deleting directory C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\build Deleting directory C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\dist C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\nbproject\build-impl.xml:621: Unable to delete file C:\Sun\JavaProjects\nb601\j2eetutorial14NB4_1\examples\ejb\order\Order\dist\Order.jar BUILD FAILED (total time: 1 second)
Not a java compiler problem. Reassigning.
Created attachment 105540 [details] next "Clean&Build" failed I have the same bug on 7.0 latest dev version
I'm not able to reproduce that. emiddio are you facing still the same troubles? Could you let me know more information like which app. server and JDK do you use?
I'm CCing Jirka. Please could you try to reproduce that on any Windows platform? Not reproducible by me on linux. I opened some sample EJB application, set it as main project and then tried Shift+F11 (in ~1s intervals) but the problem with deletion never appeared to me. Thanks...
Yes, I am able to reproduce it: - create new project "Sample|Java EE|Lottery Annotation" with GlassFish server - run the project - call repeatedly "Clean and Build" on LotteryAnnotation-ejb and the task fails sometimes because it cannot delete LotteryAnnotation-ejb\dist\LotteryAnnotation-ejb.jar While trying this I've got exception in attachment. Maybe that is the cause. Product Version: NetBeans IDE Dev (Build 201109120600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Created attachment 110698 [details] FileNotFoudException stack trace.
Thanks Jirka for reproducing that. Just one notice, was you able to reproduce that with repeating Clean&Build action after finished Clean&Build? In other words, I'm able to reproduce that issue by invoking several C&B actions in line but it should be ok because I'm trying to delete and create build, dist directories and their content from more independent actions - I'm operating with deletion and files recreation in more threads using the same sources. But I'm not able to reproduce failed C&B action when I'm repeating it immediately after lastly successfully completed C&B (as was reported). Are you able to reproduce it also in that case, please? Thanks...
Yes, I wait until clean and build finishes and then I start it again. Probably happens only on windows and maybe on slower computers.
re: Yes, I wait until clean and build finishes and then I start it again. Probably happens only on windows and maybe on slower computers. i reported bug, quad core win 7, 64bit, 64bit java, 4gig ram --is not a slow computer.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss