java.lang.ArrayIndexOutOfBoundsException: Array index out of range
566 views
Skip to first unread message
Nick Leong
unread,
Jun 2, 2012, 2:11:44 AM6/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Krati
adding to my previous post about the data lost and initialCapacity,
sometime I get the ArrayIndexOutOfBoundsException when restarting the
program -
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
Array index out of range: 963047
at krati.core.array.SimpleDataArray.rangeCheck(SimpleDataArray.java:
418)
at krati.core.array.SimpleDataArray.set(SimpleDataArray.java:726)
at krati.core.array.SimpleDataArray.set(SimpleDataArray.java:708)
at krati.store.DynamicDataStore.split(DynamicDataStore.java:681)
at
krati.store.DynamicDataStore.initLinearHashing(DynamicDataStore.java:
632)
at krati.store.DynamicDataStore.<init>(DynamicDataStore.java:129)
at krati.store.index.HashIndex.<init>(HashIndex.java:51)
at krati.store.IndexedDataStore.<init>(IndexedDataStore.java:157)
Jingwei
unread,
Jun 2, 2012, 2:34:30 AM6/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Krati
Hi Nick,
As stated in my previous reply, you cannot modify initialCapacity
after an IndexedDataStore is created at present.
Thanks.
Jingwei
Nick Leong
unread,
Jun 2, 2012, 3:31:34 AM6/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Krati
I didn't modify the initialCapacity in this case. just used a smaller
initialCapacity, and got this exception once in a while...
Jingwei
unread,
Jun 5, 2012, 12:41:25 AM6/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Krati
Hi Nick,
I will take a note of this when debugging the missing keys of
IndexedDataStore.