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 178947 - 2nd clean&build in less than 3 seconds after 1st allways gets error
Summary: 2nd clean&build in less than 3 seconds after 1st allways gets error
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-21 14:20 UTC by emiddio
Modified: 2016-07-07 08:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
show 2nd build errors (407.06 KB, image/jpeg)
2009-12-21 14:21 UTC, emiddio
Details
ide messages.log (76.60 KB, text/plain)
2009-12-22 12:21 UTC, emiddio
Details
next "Clean&Build" failed (145.28 KB, image/png)
2011-02-01 10:02 UTC, rov63rus
Details
FileNotFoudException stack trace. (1.22 KB, text/plain)
2011-09-13 11:01 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2009-12-21 14:20:28 UTC
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.
Comment 1 emiddio 2009-12-21 14:21:32 UTC
Created attachment 92831 [details]
show 2nd build errors
Comment 2 Peter Pis 2009-12-22 01:04:55 UTC
To Reporter: please attach messages.log.
Comment 3 emiddio 2009-12-22 12:21:20 UTC
Created attachment 92870 [details]
ide messages.log

same problem; worked 2nd time
Comment 4 Jiri Prox 2009-12-23 04:10:46 UTC
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
Comment 5 emiddio 2009-12-23 12:39:59 UTC
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)
Comment 6 emiddio 2009-12-23 12:56:15 UTC
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)
Comment 7 Dusan Balek 2010-01-04 06:18:19 UTC
Not a java compiler problem. Reassigning.
Comment 8 rov63rus 2011-02-01 10:02:50 UTC
Created attachment 105540 [details]
next "Clean&Build" failed

I have the same bug on 7.0 latest dev version
Comment 9 Martin Fousek 2011-04-04 08:44:55 UTC
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?
Comment 10 Martin Fousek 2011-09-13 09:47:31 UTC
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...
Comment 11 Jiri Skrivanek 2011-09-13 11:01:09 UTC
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)
Comment 12 Jiri Skrivanek 2011-09-13 11:01:47 UTC
Created attachment 110698 [details]
FileNotFoudException stack trace.
Comment 13 Martin Fousek 2011-09-14 11:50:04 UTC
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...
Comment 14 Jiri Skrivanek 2011-09-14 15:15:25 UTC
Yes, I wait until clean and build finishes and then I start it again. Probably happens only on windows and maybe on slower computers.
Comment 15 emiddio 2011-09-14 15:51:21 UTC
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.
Comment 16 Martin Balin 2016-07-07 08:53:05 UTC
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