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.
Some times (probability on my computer about 40%) project is reparsed after IDE restarting. Log contains exception: java.lang.IllegalStateException: Can not get project settings validator data by the key ProjectSettingsValidatorKey /home/as204739/NetBeansProjects/clucene-core-0.9.21b_1N at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectSettingsValidator.restoreSettings(ProjectSettingsValidator.java:150) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.createProjectFilesIfNeed(ProjectBase.java:789) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.ensureFilesCreated(ProjectBase.java:628) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onAddedToModelImpl(ProjectBase.java:966) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.access$200(ProjectBase.java:143) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$2.run(ProjectBase.java:931) at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl$2.run(ModelImpl.java:363) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Investigation show that bug is consequences of introducing NativeProjectRegistry. On IDE shutdown NativeProjectRegistry sends "close project" events. Code model has races with: - code model shutdown - notifications from NativeProjectRegistry With 50% probability project CRC are not written fully. As result project will be reparsed at next IDE starting. P2 because project persistence is broken.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/9c4b26b48f4b
Integrated into 'main-golden', will be available in build *201103150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9c4b26b48f4b User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #196681 Random reparse project after IDE restarting
QA, please, check for showstopper status. Due to this bug IDE reparses project in 50% on restart. For enterprise size projects it can be the problem (because we claim, that we parse long time only once - the first time)
fix to reduce sync block restore flag to false when start up for extra protection (i.e. using from tests) http://hg.netbeans.org/cnd-main?cmd=changeset;node=3355aee80da7
remove check of model state introduced in http://hg.netbeans.org/main/rev/9c4b26b48f4b http://hg.netbeans.org/cnd-main/rev/d0beeadf30c1
use keyword to leave fixed bug accessible from dashboard
Integrated into 'main-golden', will be available in build *201103160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3355aee80da7 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: extra fix for #196681 - Random reparse project after IDE restarting - use smaller sync block
*** Bug 196731 has been marked as a duplicate of this bug. ***
OK. Verified in cnd-main-5545-on-110316 build
Fix is correct and safe.
http://hg.netbeans.org/releases/rev/23fb5acc34ae http://hg.netbeans.org/releases/rev/31b7805150b0 http://hg.netbeans.org/releases/rev/035585055476
Verified in NetBeans IDE 7.0 RC1 (Build 201103180000)