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 197280 - IndexOutOfBoundsException at java.nio.Buffer.checkIndex
Summary: IndexOutOfBoundsException at java.nio.Buffer.checkIndex
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Spellchecker (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 12:10 UTC by olksy
Modified: 2011-05-03 05:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 172707


Attachments
stacktrace (1.25 KB, text/plain)
2011-03-31 12:10 UTC, olksy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description olksy 2011-03-31 12:10:24 UTC
Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Linux

User Comments:
GUEST: find command is wrong, when i used it, and change sth after it found

olksy: Hit "Refresh" button in "Clearcase->Show Changes..." view

GUEST: repalce comnand is wrong




Stacktrace: 
java.lang.IndexOutOfBoundsException
   at java.nio.Buffer.checkIndex(Buffer.java:0)
   at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:0)
   at org.netbeans.modules.spellchecker.TrieDictionary.readByte(TrieDictionary.java:259)
   at org.netbeans.modules.spellchecker.TrieDictionary.readInt(TrieDictionary.java:250)
   at org.netbeans.modules.spellchecker.TrieDictionary.findNode(TrieDictionary.java:200)
   at org.netbeans.modules.spellchecker.TrieDictionary.validateWordImpl(TrieDictionary.java:118)
Comment 1 olksy 2011-03-31 12:10:29 UTC
Created attachment 107403 [details]
stacktrace
Comment 2 Jan Lahoda 2011-05-02 07:58:55 UTC
Not quite sure what happened - appear that the on-disk dictionary cache is broken. Trying to rebuild it in such case:
http://hg.netbeans.org/jet-main/rev/58e3365f8031
Comment 3 Jan Lahoda 2011-05-02 08:06:16 UTC
Sorry, I referred to an incorrect changeset, the correct one is:
http://hg.netbeans.org/jet-main/rev/bdab063a0917
Comment 4 Quality Engineering 2011-05-03 05:26:48 UTC
Integrated into 'main-golden', will be available in build *201105030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bdab063a0917
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #197280: if the dictionary on disk is not readable (for whatever reason), try to rebuild it.