[hawtdb] ClassCastException in the HawtTxPageFile.recover() method

34 views
Skip to first unread message

Kiran Ayyagari

unread,
May 18, 2010, 12:45:46 PM5/18/10
to haw...@googlegroups.com
hello guys,

I have just started to evaluate hawtdb and have encountered a
ClassCastException while reloading the
index from an existing file.

Environment : java 1.6, Mac OS X 10.5.8

Stacktrace is pasted below and attaching the test case

java.lang.ClassCastException:
org.fusesource.hawtdb.internal.util.Ranges cannot be cast to
org.fusesource.hawtdb.internal.page.Batch
at org.fusesource.hawtdb.internal.page.HawtTxPageFile.recover(HawtTxPageFile.java:457)
at org.fusesource.hawtdb.api.TxPageFileFactory.open(TxPageFileFactory.java:55)
at org.fusesource.hawtdb.perf.HawtdbPerfTest.createPageFileAndIndex(HawtdbPerfTest.java:34)
at org.fusesource.hawtdb.perf.HawtdbPerfTest.testInsertionPerf(HawtdbPerfTest.java:66)

Please let me know if I am missing something or doing it wrong here

Kiran Ayyagari
HawtdbPerfTest.java

chi...@gmail.com

unread,
May 18, 2010, 5:44:34 PM5/18/10
to hawtdb
yeah.. I saw that problem with the 1.0 release. Should be fixed in
the current 1.1-SNAPSHOT
Basically if you create a new page file and kill your app before you
flush() the page file, next time you open it you will get that
exception.

Regards,
Hiram
>  HawtdbPerfTest.java
> 3KViewDownload

Kiran Ayyagari

unread,
May 19, 2010, 5:01:35 PM5/19/10
to haw...@googlegroups.com
thanks Hiram for the quick reply

Kiran Ayyagari
Reply all
Reply to author
Forward
0 new messages