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.
Build: NetBeans IDE Dev (Build 20140217-1fe308be131c) VM: Java HotSpot(TM) Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13 OS: SunOS User Comments: vv159170: opened cc project Stacktrace: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926) at java.util.HashMap$EntryIterator.next(HashMap.java:966) at java.util.HashMap$EntryIterator.next(HashMap.java:964) at org.netbeans.modules.cnd.repository.storage.UnitDescriptorsDictionary.getUnitDescriptor(UnitDescriptorsDictionary.java:87) at org.netbeans.modules.cnd.repository.storage.Storage.getUnitName(Storage.java:588) at org.netbeans.modules.cnd.repository.storage.StorageManager.getUnitName(StorageManager.java:265)
Created attachment 145298 [details] stacktrace
race condition: if we delete filepaths dictionary from the map even if we put it to the writer queue it can be updated before storing to disk and therefore the content will be broken Introduced new method flush() for Storage and StorageManager which will be invoked on shutdown and it will put file paths dictionaries to the writer queue fixed in http://hg.netbeans.org/cnd-main/rev/65229ec80efc
Integrated into 'main-silver', will be available in build *201402180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/65229ec80efc User: Maria Dalmatova <mromashova@netbeans.org> Log: fixed bz#241990 - Exception: Path should be absolute: <WRONG FILE> and bz#241999 - java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry race condition: if we delete filepaths dictionary from the map even if we put it to the writer queue it can be updated before storing to disk and therefore the content will be broken Introduced new method flush() for Storage and StorageManager which will be invoked on shutdown and it will put file paths dictionaries to the writer queue