From: Alex B. <boi...@in...> - 2006-09-26 20:03:47
|
ClassCastException is unlikely if you're using the BTree correctly. Some ideas/thoughts to get you started debugging: * If your code manipulates records using recids directly, double-check your program logic to make sure you are not mistakenly overwriting some previously allocated BTree records. * If your application has multiple classloaders, make sure objects are reloaded in the appropriate context. alex Brian Mason wrote: > I not really new to JDBM but I have a problem I have never seen before. > I am inserting records into a JDBM data base, after a few inserts to a > tree, I get a class cast exception. The cast is down in JDBM code. > I insert a series of records into a several trees. It does not seem > to matter which tree I am inserting into. I have tried commenting out > all but one, I can vary which tree I am inserting to but it does not > matter, after a few inserts, I will get a class cast exception > Any one have any experiance with this??? > at jdbm.btree.BPage.loadBPage(BPage.java:826) > at jdbm.btree.BPage.insert(BPage.java:446) > at jdbm.btree.BPage.insert(BPage.java:356) > at jdbm.btree.BTree.insert(BTree.java:322) > > > Thanks, > Brian Mason > br...@ga... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Jdbm-developer mailing list > Jdb...@li... > https://lists.sourceforge.net/lists/listinfo/jdbm-developer > > |