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 193918 - AssertionError: no object for UID KeyBasedUID on FileKey (/usr/includeL, /usr/include/bits/mathdef.h)
Summary: AssertionError: no object for UID KeyBasedUID on FileKey (/usr/includeL, /usr...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 18:18 UTC by Alexander Simon
Modified: 2011-01-06 09:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 175447


Attachments
stacktrace (3.72 KB, text/plain)
2010-12-29 18:18 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2010-12-29 18:18:06 UTC
Build: NetBeans IDE Dev (Build 101229-2a2cb56e7689)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

Stacktrace: 
java.lang.AssertionError: no object for UID KeyBasedUID on FileKey (/usr/includeL, /usr/include/bits/mathdef.h)
   at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase._getFile(OffsetableBase.java:157)
   at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase.getContainingFile(OffsetableBase.java:132)
   at org.netbeans.modules.cnd.modelimpl.impl.services.IncludeResolverImpl.isObjectVisible(IncludeResolverImpl.java:333)
   at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.isEnoughAfterFilterVisibileObjects(CompletionResolverImpl.java:302)
   at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:611)
   at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:254)
Comment 1 Alexander Simon 2010-12-29 18:18:10 UTC
Created attachment 104601 [details]
stacktrace
Comment 2 Alexander Simon 2010-12-29 18:27:54 UTC
P1 because code model repository totally broken.
One of the issue roots is:
java.lang.AssertionError
        at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeUTF(PersistentUtils.java:242)
        at org.netbeans.modules.cnd.modelimpl.csm.core.AbstractFileBuffer.write(AbstractFileBuffer.java:179)
        at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeBuffer(PersistentUtils.java:168)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.write(FileImpl.java:1704)
Comment 3 Leonid Lenyashin 2010-12-29 19:21:43 UTC
What is the scenario? Totally broken model is not necessarily a P1 if the scenario is a corner case. If it is always broken, then surely it is.
Comment 4 Alexander Simon 2010-12-29 19:56:52 UTC
broken writing CsmFile in the repository with -ea.
Comment 5 Alexander Simon 2010-12-29 19:58:13 UTC
fixed, change set
http://hg.netbeans.org/cnd-main?cmd=changeset;node=356f3199b98f
Comment 6 Quality Engineering 2011-01-06 09:08:44 UTC
Integrated into 'main-golden', will be available in build *201101060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/356f3199b98f
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #193918 AssertionError: no object for UID KeyBasedUID on FileKey (/usr/includeL, /usr/include/bits/mathdef.h)