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.
Summary: | Annotations FileAlreadyLockedExceptions with saveAnnotationType and parse | ||
---|---|---|---|
Product: | editor | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Options | Assignee: | Milutin Kristofic <mkristofic> |
Status: | NEW --- | ||
Severity: | normal | CC: | abalint21, bennyn, bryan.schmidty, doctorlux, drmuelr, edwin_arley, janis_sl, jskrivanek, lehel, lolo_101, MackSix, marckoby, mentlicher, misterm, soldatov, tstupka, vercinstex, vriha, vvunai, zibr0nk |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 219085 |
Attachments: |
stacktrace
stacktrace |
Description
Exceptions Reporter
2015-08-11 12:18:27 UTC
Created attachment 155266 [details]
stacktrace
An output stream for file "Editors/AnnotationTypes/OtherThread_PC.xml" was created: o.n.m.editor.options.AnnotationTypesFolder.saveAnnotationType(AnnotationTypesFolder.java:222) Another thread tried to create input stream for the same file, but failed, because it stayed locked for more than two seconds (hard drive was probably busy at that moment): o.n.m.editor.options.AnnotationTypeProcessor.parse(AnnotationTypeProcessor.java:178). I'm not sure how this should be fixed. Increasing the timeout globally is risky (and this case is more frequent than other FileAlreadyLockedExceptions). Maybe some synchronization/semaphore could be added to AnnotationTypesFolder/AnnotationTypeProcessor. Reassigning to editor/Options. Please evaluate. Thanks. There is similar issue with Annotations in Bug #242179. I am trying to fix this issue, I have made small fix in Bug #251434, then there was fix in #254483 . If these fixes will not help, I would need to synchronize parse and saveAnnotation. Created attachment 159124 [details]
stacktrace
changed "fonts & colors" profile to "norway today"
|