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 132384 - AssertionError: Can not get project settings validator
Summary: AssertionError: Can not get project settings validator
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-09 09:20 UTC by Alexander Simon
Modified: 2008-04-10 13:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2008-04-09 09:20:27 UTC
Assertion should be cached and right processed.
Result of the Assertion:
- infinite "Parsing" progress bar
- no code model at all
-----------------------------------
java.lang.AssertionError: Can not get project settings validator data by the key ProjectSettingsValidatorKey
/home/as204739/NetBeansProjects/boost_1_34_1_1N
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ProjectSettingsValidator.restoreSettings(ProjectSettingsValidator.java:140)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.createProjectFilesIfNeed(ProjectBase.java:568)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.ensureFilesCreated(ProjectBase.java:448)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onAddedToModelImpl(ProjectBase.java:697)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$2.run(ProjectBase.java:668)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl$3.run(ModelImpl.java:363)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Vladimir Kvashin 2008-04-09 11:08:19 UTC
What is critical here is incorrect error processing.
Error restoring project settings validator breaks project initialization.
Instead, it should just mark project persistence as invalid and proceed.
Comment 2 Jesse Grodnik 2008-04-09 17:51:55 UTC
Serious problem. Escalated to P1.
Comment 3 Vladimir Kvashin 2008-04-09 18:05:03 UTC
The fix is a part of the workaround for #131701.
It's now pushed into main:

http://hg.netbeans.org/main/rev/e3ae83ea3c90
http://hg.netbeans.org/main/rev/833fe4b6ef83
Comment 4 Vladimir Voskresensky 2008-04-09 18:20:20 UTC
I reviewed the fix as part of 131701 and agree that this is the correct and safe fix (not workaround :-))
Comment 5 Alexander Pepin 2008-04-09 21:21:15 UTC
verified in NB6.1 (build 200804082140) with jar file from the fix for issue #131701
Comment 6 Vladimir Kvashin 2008-04-09 21:25:56 UTC
The mentioned error processing flaw is fixed.
Changes are pushed to release61:
http://hg.netbeans.org/release61/rev/702c45463635

Comment 7 Vladimir Kvashin 2008-04-09 21:29:16 UTC
Sorry, the previous comment pointed to incorrect changeset (automatic erge).
Here is the correct changesets:
http://hg.netbeans.org/release61/rev/bbfd88659244
http://hg.netbeans.org/release61/rev/e6aba9752fca
Comment 8 Alexander Pepin 2008-04-10 13:41:06 UTC
verified in NB6.1RC1 build