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.
This bug was originally marked as duplicate of bug 240503, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0 (Build 201403022200) VM: OpenJDK 64-Bit Server VM, 24.51-b03, OpenJDK Runtime Environment, 1.7.0_51-b31 OS: Linux User Comments: GUEST: I called Find Usages tbrunhoff: Find usages, yielding no results. GUEST: I was trying to do a "Find Usages" right click context menu while hovering over a private member function declaration in the header file for the class. abalint21: No clue Stacktrace: java.lang.IndexOutOfBoundsException: Index: 12, Size: 12 at java.util.ArrayList.RangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at java.util.Collections$UnmodifiableList.get(Collections.java:1211) at org.netbeans.modules.cnd.repository.storage.Storage$UnitIDReadConverterImpl.layerToClient(Storage.java:851) at org.netbeans.modules.cnd.indexing.impl.TextIndexStorage.toClientKey(TextIndexStorage.java:144) at org.netbeans.modules.cnd.indexing.impl.TextIndexStorage.query(TextIndexStorage.java:85)
Created attachment 146288 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=208666
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=208666
20 reports => P2
*** Bug 243688 has been marked as a duplicate of this bug. ***
*** Bug 244510 has been marked as a duplicate of this bug. ***
On CentOS6.5 clearing <userHome>/.cache/netbeans/ seems to help.
Created attachment 149504 [details] stacktrace searching text
Created attachment 149505 [details] stacktrace "find usages"
Created attachment 149905 [details] stacktrace Reparsed the dbx project, then calling find usages
Created attachment 149906 [details] stacktrace reparsed dbx, then called find usages for o\push_aggr
64 reports => P1
changeset: 281385:d73529c85185 tag: tip user: Maria Dalmatova <mromashova@netbeans.org> date: Mon Dec 01 15:43:24 2014 +0400 summary: attempt to fix bz#243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12]
Integrated into 'main-silver', will be available in build *201412020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d73529c85185 User: Maria Dalmatova <mromashova@netbeans.org> Log: attempt to fix bz#243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12] invoke close of DocumentIndex on shutdown of the TextIndexStorage added check (turned on in -ea mode) that what encoding/decoding is correct for (unitid,fileIndex) <-> CndTextKey
I've been using the nightly since it is available and had no issues with find usage. Thank you for the fix!
Integrated into 'main-silver', will be available in build *201412160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b0ed11b3947d User: Vladimir Voskresensky <vv159170@netbeans.org> Log: extra fix for #243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12] - fix potential NPE after read (when empty string was written)
Full lists of commits: changeset: 281928:5146e1f1b3d7 user: Maria Dalmatova <mromashova@netbeans.org> date: Fri Dec 12 16:29:19 2014 +0400 summary: we will never remove all information about the unit changeset: 281789:8d3bc43bbc5f user: Maria Dalmatova <mromashova@netbeans.org> date: Wed Dec 10 16:57:25 2014 +0400 summary: spec version increased as API is changed changeset: 281788:65d6d9b1803d user: Maria Dalmatova <mromashova@netbeans.org> date: Wed Dec 10 16:57:25 2014 +0400 summary: write unitID in index file changeset: 281785:929539f83a6f user: Maria Dalmatova <mromashova@netbeans.org> date: Wed Dec 10 13:31:03 2014 +0400 summary: upgrade of spec version as API is changed changeset: 281784:180a391e2242 user: Maria Dalmatova <mromashova@netbeans.org> date: Wed Dec 10 13:31:02 2014 +0400 summary: repository serialization fix. units id which were written on disk were client long uin id (10000012) which is temporary value, changeset: 281783:86fa315894ea user: Maria Dalmatova <mromashova@netbeans.org> date: Wed Dec 10 13:30:57 2014 +0400 summary: fixed incorrect usage of Boolean.valueOf changeset: 281425:b421594b54e6 user: Maria Dalmatova <mromashova@netbeans.org> date: Tue Dec 02 15:27:41 2014 +0400 summary: correct fix for closing index changeset: 281424:609fb134fe13 user: Maria Dalmatova <mromashova@netbeans.org> date: Tue Dec 02 15:07:56 2014 +0400 summary: fixed exception occurred on shutdown
changeset: 282010:b0ed11b3947d user: Vladimir Voskresensky <vv159170@netbeans.org> date: Mon Dec 15 19:28:46 2014 +0300 summary: extra fix for #243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12]
Integrated into 'main-silver', will be available in build *201412200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b724e79a5862 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: extra fix #243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12] - fix unit registration by index
*** Bug 245661 has been marked as a duplicate of this bug. ***
*** Bug 249459 has been marked as a duplicate of this bug. ***
*** Bug 249447 has been marked as a duplicate of this bug. ***
*** Bug 249415 has been marked as a duplicate of this bug. ***
*** Bug 249416 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201412230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/175e4eed858b User: Maria Dalmatova <mromashova@netbeans.org> Log: extra fix #243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12] clean repository if no index file do not use UnitIDReadConverter clientToLayer method -> it is illegal
*** Bug 249573 has been marked as a duplicate of this bug. ***
Can anyone tell me please when will there be a release with this patch beside the nightlies? Thank you.
(In reply to abalint21 from comment #27) > Can anyone tell me please when will there be a release with this patch > beside the nightlies? > Thank you. Hello, We are just back from long NY/Christmas holidays. I hope patch for 8.0.2 to be ready during January. Anyway it would be great if you can try nightly to verify that fix works in your env. Thanks, Vladimir.
The fix is working great. I've been using the latest nightlies ever since.
Integrated into 'main-silver', will be available in build *201504040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/30ffdf691778 User: Alexander Simon <alexvsimon@netbeans.org> Log: extra fix #243240 - repository [IndexOutOfBoundsException: Index: 12, Size: 12] - fix typo of extra fix "fix FS registration by index"
*** Bug 257055 has been marked as a duplicate of this bug. ***