Temp DB isn't creating

46 views
Skip to first unread message

kishan kumar yadav

unread,
Apr 28, 2016, 11:41:07 AM4/28/16
to MapDB
Hi,

 File file = new File("../TestMapDB/src/main/java/com/demotest/tempFile.txt");

 dbDisk =DBMaker.fileDB(file).executorEnable().closeOnJvmShutdown().checksumStoreEnable().allocateStartSize(1024).make();

Error :-  Exception in thread "main" org.mapdb.DBException$WrongFormat: Wrong file header, not MapDB file
at org.mapdb.StoreDirectAbstract.fileHeaderCheck(StoreDirectAbstract.kt:93)
at org.mapdb.StoreDirect.<init>(StoreDirect.kt:93)

Plz i want to know what mistake i am doing.
Thanks

Jan Kotek

unread,
Apr 28, 2016, 12:14:04 PM4/28/16
to ma...@googlegroups.com

You are trying to open existing test file.

 

On Thursday, April 28, 2016 08:41:07 kishan kumar yadav wrote:

../TestMapDB/src/main/java/com/demotest/tempFile.txt



Reply all
Reply to author
Forward
0 new messages