BufferUnderflowException while recovering corrupted database

78 views
Skip to first unread message

Vineeth Akenapalli

unread,
Aug 1, 2022, 3:01:59 AM8/1/22
to H2 Database
Hi,

We have a corrupted database that we are trying to recover. We used the following command to recover the database.

java -cp h2-1.4.200.jar org.h2.tools.Recover -transactionLog -trace
 
We are getting following error.

Created file: C:/h2backup_165/ac_data.mv.txt
java.nio.BufferUnderflowException
        at java.base/java.nio.Buffer.nextGetIndex(Buffer.java:651)
        at java.base/java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:454)
        at org.h2.mvstore.MVStoreTool.dump(MVStoreTool.java:225)
        at org.h2.tools.Recover.process(Recover.java:344)
        at org.h2.tools.Recover.runTool(Recover.java:196)
        at org.h2.tools.Recover.main(Recover.java:158)

Has anyone got this error and got some resolution? Please help with this. Thanks in advance.

Thanks,
Vineeth
Reply all
Reply to author
Forward
0 new messages