How to fix: Embedded H2 Database “NonTransientError: Unable to read the page at position” error?

前端 未结 5 1512
一生所求
一生所求 2021-01-17 16:51

I am creating a JavaFX program with an embedded H2 database that will be used to handle user logins and passwords. Using Intellij Ultimate, I have a database that I can run

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-17 17:37

    https://github.com/h2database/h2database/issues/2078 you should use the same driver, so reading it with 1.4.200 (current spring data version) is not possible after modification with 1.4.196 (used by IDEA). So mine crash scenario was open db in IDEA with driver 1.4.196 while spring application code used 1.4.200. So it will not start again. You can declare 1.4.196 version in pom.xml for your app but it looks like that you will be bounded to this version and I don't know how you can completely repair your db.

提交回复
热议问题