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 74086 - Netbeans fails to start and/or load cache: The process cannot access the file because it is being used by another process
Summary: Netbeans fails to start and/or load cache: The process cannot access the file...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 13:05 UTC by narve
Modified: 2010-09-23 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log from failing startup (37.91 KB, text/plain)
2006-03-28 13:06 UTC, narve
Details
message log from netbeans failing on scanning classpath (3.98 MB, text/plain)
2007-06-13 14:35 UTC, jgawera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description narve 2006-03-28 13:05:14 UTC
System: 

Windows XP 32bit, Dual-core AMD64, Java 1.5.0_06, Netbeans 55qbuild1 and 5.0final. 

After (multiple) clean installs, after opening one or more projects, Netbeans
threw an exception during "Scanning project classpaths". In
var/log/messages.log, we saw lots of exceptions like this: 
java.io.FileNotFoundException: C:\Documents and
Settings\username\.netbeans\5.0\var\cache\mdrstorage\org-netbeans-java\0.70\f1f41dec8793b72596335c2b6b4bdaefe45bf5f86htsserverlibclient.btx
(The process cannot access the file because it is being used by another process)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:98)
	at
org.netbeans.mdr.persistence.btreeimpl.btreestorage.FileCache.getFile(FileCache.java:109)

Will attach a complete messages.log. 

This led to all sorts of problems in the IDE, mostly related to the metadata
facility (code completion, goto source/definition, even "Run File").
Furthermore, there seems to be bugs in the error handling: Sometimes we got a
dialog box showing a NPE, and on closing this dialog box a new one popped up.
Terminating all netbeans processes using TaskManager was the only way to exit
netbeans at this point. The NPE dialog box appeared by itself sometimes, but
mostly as the error icon in lower right statusbar, and when clicking on that
icon the IDE entered the NPE loop. 

This is a complete showstopper, and only several hours of debugging and
experimenting made us able to run Netbeans again. We believed the problem to be
related to the dual-core / multiprocessor architecture and tried the following
workarounds:
 - using imagecfg.exe -u on netbeans.exe (restricting all netbeans processes to
a single CPU) 
 - AND un-setting netbeans_default_options in netbeans.conf (i.e. stopped using
-J-XX:+UseConcMarkSweepGC)

This workaround seems to have eliminated the problem.
Comment 1 narve 2006-03-28 13:06:40 UTC
Created attachment 29448 [details]
messages.log from failing startup
Comment 2 Daniel Prusa 2006-04-10 10:34:22 UTC
We should investigate why the mdr storage file cannot be accessed when using
dual-core/multiprocessor. The problem can be outside the mdr module, possibly in
jdk.
Comment 3 Jan Becicka 2006-06-13 09:12:13 UTC
Dane please evaluate. Thanks
Comment 4 Daniel Prusa 2006-06-19 09:16:23 UTC
This issue seems to be specific for the given configuration, it is not
reproducible on other multi-processor platforms. Moreover, there have not been
other similar reports so far.
-> decreasing priority to P3

Is the problem reproducible with different jdk than 1.5.0_06?
Comment 5 jgawera 2007-06-13 14:32:26 UTC
Same issue here:
Comment 6 jgawera 2007-06-13 14:35:21 UTC
Created attachment 43620 [details]
message log from netbeans failing on scanning classpath
Comment 7 David Strupl 2010-09-23 09:14:47 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.