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 143207 - org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to C:\Documents and Settings\rm153204.GRIF\.netbeans\dev\config\Databases\SQLHISTORY\sql_history.xml (probably
Summary: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclu...
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: John Baker
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 17:49 UTC by Roman Mostyka
Modified: 2008-08-19 14:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 87790


Attachments
stacktrace (1.52 KB, text/plain)
2008-08-07 17:49 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-08-07 17:49:48 UTC
Build: NetBeans IDE Dev (Build 200808061401)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows XP, 5.1, x86

User Comments: 
1. Rightclick some table and choose "View Data..."
2. Do the same for several different tables very quickly so statements should be executing in the same time.

Result: FSException arises.

Stacktrace: 
org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to C:\Documents and Settings\rm153204.GRIF\.netbeans\dev\config\Databases\SQLHISTORY\sql_history.xml (probably opened for reading).
        at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:125)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusionSupport.addResource(MutualExclusionSupport.java:99)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:97)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getOutputStream(FileObj.java:84)
        at org.netbeans.modules.db.sql.history.SQLHistoryPersistenceManager$AtomicWriter.run(SQLHistoryPersistenceManager.java:233)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
Comment 1 Roman Mostyka 2008-08-07 17:49:52 UTC
Created attachment 66840 [details]
stacktrace
Comment 2 Jiri Skrivanek 2008-08-08 08:45:02 UTC
Probably InputStream is never closed at SQLHistoryPersistenceManager.AtomicReader.
Comment 3 David Vancouvering 2008-08-15 20:42:02 UTC
Hey, John, please evaluate when you get a chance.
Comment 4 John Baker 2008-08-19 00:36:55 UTC
Should be fixed when I was cleaning up.
Comment 5 Roman Mostyka 2008-08-19 14:17:33 UTC
Verified with build 080819.