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.
It's umbrella bug for code model repository issues.
*** Bug 196225 has been marked as a duplicate of this bug. ***
*** Bug 194500 has been marked as a duplicate of this bug. ***
*** Bug 196154 has been marked as a duplicate of this bug. ***
*** Bug 196540 has been marked as a duplicate of this bug. ***
*** Bug 197682 has been marked as a duplicate of this bug. ***
*** Bug 197490 has been marked as a duplicate of this bug. ***
*** Bug 198635 has been marked as a duplicate of this bug. ***
*** Bug 199178 has been marked as a duplicate of this bug. ***
*** Bug 199179 has been marked as a duplicate of this bug. ***
*** Bug 199326 has been marked as a duplicate of this bug. ***
*** Bug 199409 has been marked as a duplicate of this bug. ***
*** Bug 199483 has been marked as a duplicate of this bug. ***
*** Bug 200972 has been marked as a duplicate of this bug. ***
*** Bug 200975 has been marked as a duplicate of this bug. ***
*** Bug 203726 has been marked as a duplicate of this bug. ***
*** Bug 204384 has been marked as a duplicate of this bug. ***
*** Bug 205260 has been marked as a duplicate of this bug. ***
*** Bug 205663 has been marked as a duplicate of this bug. ***
*** Bug 205664 has been marked as a duplicate of this bug. ***
*** Bug 207370 has been marked as a duplicate of this bug. ***
*** Bug 207378 has been marked as a duplicate of this bug. ***
*** Bug 207368 has been marked as a duplicate of this bug. ***
Ok, so there are lots of duplicates for this bug. Its been around for nearly a year and it appears that there is no solution (or at least not one posted here). For users that see such an error, is there (a) a way to characterize it to know that it falls in this bucket? And when it does, is there (b) a workaround to get the faults to stop? For example, is there a particular set of stack frames in the stack trace that you use to qualify it as a dup? And can you make the faults stop by removing ~/.netbeans/dev/var/chache or some other action?
*** Bug 210022 has been marked as a duplicate of this bug. ***
*** Bug 205551 has been marked as a duplicate of this bug. ***
*** Bug 213074 has been marked as a duplicate of this bug. ***
perf tests rather stable in producing: 1 of java.lang.IllegalStateException: Failed to get container sorage by key FileDeclarationsKey (/export1/sside/oss_perf_tests/sources/mozilla-2.0N, /export1/sside/oss_perf_tests/sources/mozilla-2.0/ipc/chromium/src/base/scoped_bstr_win_unittest.cc) 1 of java.lang.IllegalStateException: no file for UID KeyBasedUID on FileKey (/export1/sside/oss_perf_tests/sources/mozilla-2.0N, /export1/sside/oss_perf_tests/sources/mozilla-2.0/layout/forms/nsButtonFrameRenderer.h)
*** Bug 218168 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201209190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7ee77ee9d511 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: tracing for #196228 - Code model repository is unstable
with the following changes in IndexedStorageFile public Persistent read(final Key key) throws IOException { Persistent object = null; - final ChunkInfo chunkInfo = index.get(key); + ChunkInfo chunkInfo = index.get(key); if (chunkInfo != null) { object = fileRWAccess.read(key.getPersistentFactory(), chunkInfo.getOffset(), chunkInfo.getSize()); if (Stats.fileStatisticsLevel > 0) { fileStatistics.incrementReadCount(key); } + } else { + chunkInfo = index.get(key); + chunkInfo = null; } under debugger the second "get" returns non-null value. If not under debugger => still null
helpful keys to check were: + String clsName = key.getClass().getName(); + if (!clsName.contains("Project") && !clsName.contains("ndex")) { + data = getDiskStorage(key).read(key); + if (data != null) { + System.err.println("second read returned object " + data + " for " + key); + } + data = null; + }
hopefully fixed by http://hg.netbeans.org/cnd-main/rev/a11e4cd857d3 there remains suspicious code in IndexedStorageFile when writeLock is not always used to make "write" modifications for fileRWAccess/fileRWAccessSize (i.e. call to truncate)
Let's observe perf-tests to see if java.lang.IllegalStateException: Failed to get... are gone
Integrated into 'main-golden', will be available in build *201210130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a11e4cd857d3 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #196228 - Code model repository is unstable - get without sync does not guaranty in java that object is visible after "put" under lock from other thread => IndexedStorageFile.read had index.get(key) as null even on second try (if not under debugger)
*** Bug 219471 has been marked as a duplicate of this bug. ***
extra fix for mentioned inconsistency: http://hg.netbeans.org/cnd-main/rev/39e1a4ff5337 real fix is the previous commit: http://hg.netbeans.org/main-golden/rev/a11e4cd857d3
1 of java.lang.IllegalStateException: Failed to get container sorage by key ProjectDeclarationContainerKey /export1/sside/oss_perf_tests/sources/mozilla-2.0/N/ in last FU report is due to previous OOM exceptions => unable to deserialize at all.
*** Bug 222818 has been marked as a duplicate of this bug. ***
*** Bug 221827 has been marked as a duplicate of this bug. ***
*** Bug 221149 has been marked as a duplicate of this bug. ***
*** Bug 221148 has been marked as a duplicate of this bug. ***
*** Bug 220968 has been marked as a duplicate of this bug. ***
*** Bug 220878 has been marked as a duplicate of this bug. ***
*** Bug 220380 has been marked as a duplicate of this bug. ***
*** Bug 218185 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201212070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1eb934b90c2e User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixing #196228 - Code model repository is unstable - do not work disposed project or invalid file
*** Bug 223408 has been marked as a duplicate of this bug. ***
extra fixes http://hg.netbeans.org/cnd-main/rev/57de0b4a02fd
*** Bug 223405 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201212080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/57de0b4a02fd User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #196228 - Code model repository is unstable - check for invalid object before asserting
*** Bug 223927 has been marked as a duplicate of this bug. ***