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 176854 - java.io.FileNotFoundException: E:\Documents and Settings\Udi\.netbeans\winp.dll (The process cannot access the file because it is being used by another process)
Summary: java.io.FileNotFoundException: E:\Documents and Settings\Udi\.netbeans\winp.d...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 01:15 UTC by udioron
Modified: 2010-04-02 05:16 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 154108


Attachments
stacktrace (1.59 KB, text/plain)
2009-11-15 01:15 UTC, udioron
Details
stacktrace (1.49 KB, text/plain)
2010-03-08 15:31 UTC, laurin1
Details
stacktrace (1.49 KB, text/plain)
2010-03-09 13:49 UTC, laurin1
Details
stacktrace (1.49 KB, text/plain)
2010-03-09 17:14 UTC, laurin1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description udioron 2009-11-15 01:15:28 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP, 5.1, x86

User Comments:
udioron: source > scan externals

GUEST: I stopped a Mongel 1.1.5 instance through the ide ui of a running rails app.



Stacktrace: 
java.io.FileNotFoundException: E:\Documents and Settings\Udi\.netbeans\winp.dll (The process cannot access the file because it is being used by another process)
        at java.io.FileOutputStream.open(FileOutputStream.java:0)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:0)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:0)
        at org.jvnet.winp.Native.load(Native.java:81)
        at org.jvnet.winp.Native.<clinit>(Native.java:52)
        at org.jvnet.winp.WinProcess.enableDebugPrivilege(WinProcess.java:200)
Comment 1 udioron 2009-11-15 01:15:31 UTC
Created attachment 91049 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-11-15 01:15:37 UTC
This issue already has 11 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154108
Comment 3 Antonin Nebuzelsky 2009-11-19 02:15:26 UTC
processtreekiller

Reassigning to Milos.
Comment 4 Milos Kleint 2009-11-19 03:17:41 UTC
i guess only one process can be killed at a time. or we keep holding the file's io streams when we should not..
Comment 5 laurin1 2010-03-08 15:31:15 UTC
Created attachment 94878 [details]
stacktrace
Comment 6 laurin1 2010-03-09 13:49:36 UTC
Created attachment 94941 [details]
stacktrace
Comment 7 laurin1 2010-03-09 17:14:39 UTC
Created attachment 94948 [details]
stacktrace
Comment 8 Exceptions Reporter 2010-03-09 17:14:54 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154108
Comment 9 Petr Hejl 2010-03-23 11:51:32 UTC
This is quite strange issue as it seems the OS is reporting it is locked by another process (and NetBeans lives in one process). Messages from exc. reporter are kind of "netbeans start" or "resume on hibernate". Perhaps windows lock survives some time even if the process is dead.

Not P2. 

Anyone is able to reproduce this?
Comment 10 katsuke 2010-03-26 14:39:23 UTC
Am getting this same error on a very specific condition: 

Have NetBeans IDE 6.8 (Build 200912041610) open, then try to open NetBeans IDE Dev (Build 201003250201) right at the start of the second instance the error is triggered.

When the second instance of NetBeans opens apparently tries to gain access to winp.dll, but since there is another instance of NetBeans running, it kind of makes sense that its being blocked doesn't it?

I tried opening 2 instances of the same version and it doesn't allow me. So i would guess that this issue happens cause opening two different versions of NetBeans at the same time.

(If this description doesn't relate to the issue feel free to delete it)
Comment 11 Petr Hejl 2010-03-31 10:04:20 UTC
Fixed in web-main adc8a80e06bb.

katsuke can you verify once it is in dev build? Note that you should use two instances newer than adc8a80e06bb to really test the problem and solution (although one old and and one instance containing fix should work fine as well).
Comment 12 Quality Engineering 2010-04-02 05:16:52 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/adc8a80e06bb
User: Petr Hejl <phejl@netbeans.org>
Log: #176854 java.io.FileNotFoundException: E:\Documents and Settings\Udi\.netbeans\winp.dll (The process cannot access the file because it is being used by another process)