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 216198 - FileChangeEvent delivered while FileLock is hold by: j2seplatform.libraries.J2SELibraryTypeProvider$
Summary: FileChangeEvent delivered while FileLock is hold by: j2seplatform.libraries.J...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 13:31 UTC by Petr Cyhelsky
Modified: 2012-11-22 12:01 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170016


Attachments
stacktrace (4.39 KB, text/plain)
2012-07-31 13:31 UTC, Petr Cyhelsky
Details
stacktrace (11.89 KB, text/plain)
2012-08-07 15:06 UTC, Sergey Petrov
Details
stacktrace (11.09 KB, text/plain)
2012-08-15 08:54 UTC, Sergey Petrov
Details
stacktrace (4.59 KB, text/plain)
2012-10-16 19:26 UTC, marco76
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-07-31 13:31:07 UTC
Build: NetBeans IDE Dev (Build 20120730-53c840e333f9)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b20
OS: Linux

User Comments:
maik: no other Netbeans instance was running...

Chiana: Opened project, freshly installed with a new userdir




Stacktrace: 
java.lang.Throwable: Locked by:
   at org.openide.filesystems.FileLock.<init>(FileLock.java:85)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.<init>(LockForFile.java:91)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:102)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:359)
   at org.openide.filesystems.FileObject.getOutputStream(FileObject.java:736)
   at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(PropertyUtils.java:199)
Comment 1 Petr Cyhelsky 2012-07-31 13:31:09 UTC
Created attachment 122582 [details]
stacktrace
Comment 2 Jaroslav Tulach 2012-08-07 14:58:09 UTC
   at org.netbeans.spi.project.support.ant.PropertyUtils.putGlobalProperties(PropertyUtils.java:167)
   at org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider$1.run(J2SELibraryTypeProvider.java:140)
Comment 3 Sergey Petrov 2012-08-07 15:06:45 UTC
Created attachment 122837 [details]
stacktrace

fresh build, fresh j2se project
invoke new entity from db
Comment 4 Sergey Petrov 2012-08-15 08:54:48 UTC
Created attachment 123135 [details]
stacktrace

expand Databases node.
it's fresh build. with new user dir, j2se project is created and switch to Services and attempt to expand Databases
Comment 5 marco76 2012-10-16 19:26:17 UTC
Created attachment 126036 [details]
stacktrace

Opened a project, the cvs plugin started the automatic download and the maven index was rebuilding
Comment 6 Exceptions Reporter 2012-10-16 19:26:24 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=170016
Comment 7 Tomas Zezula 2012-10-17 12:36:41 UTC
1st) The FileObject$1.close(FileObject.java:751) fires an event before the file is closed.
2nd) Either the mutex runs the task twice or the FileObject$1.close(FileObject.java:751) fires more events on more files.
Comment 8 Jaroslav Tulach 2012-11-06 09:21:33 UTC
ergonomics#dbe4a14f456c
Comment 9 Quality Engineering 2012-11-08 02:53:14 UTC
Integrated into 'main-golden', will be available in build *201211080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dbe4a14f456c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #216198: Release lock before delivering fileChange events