• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

h2 커넥션이 안됩니다.

21.11.27 20:19 작성 조회수 3.69k

0

h2다운받고 서버 시작 하려는데 아래 같은 애러가 나옵니다...

인터넷에 쳐도 답이 잘 나오지 않네요.. 두번째 강의에서 벌써 막혀 속상합니다...

 

General error: "The write format 1 is smaller than the supported format 2 [2.0.202/5]" [50000-202] HY000/50000 (Help)
org.h2.jdbc.JdbcSQLNonTransientException: General error: "The write format 1 is smaller than the supported format 2 [2.0.202/5]" [50000-202]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:554)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:477)
    at org.h2.message.DbException.get(DbException.java:212)
    at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:166)
    at org.h2.mvstore.db.Store.<init>(Store.java:140)
    at org.h2.engine.Database.<init>(Database.java:325)
    at org.h2.engine.Engine.openSession(Engine.java:92)
    at org.h2.engine.Engine.openSession(Engine.java:222)
    at org.h2.engine.Engine.createSession(Engine.java:201)
    at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:342)
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:117)
    at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:287)
    at org.h2.server.web.WebServer.getConnection(WebServer.java:785)
    at org.h2.server.web.WebApp.login(WebApp.java:1029)
    at org.h2.server.web.WebApp.process(WebApp.java:226)
    at org.h2.server.web.WebApp.processRequest(WebApp.java:176)
    at org.h2.server.web.WebThread.process(WebThread.java:139)
    at org.h2.server.web.WebThread.run(WebThread.java:94)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.h2.mvstore.MVStoreException: The write format 1 is smaller than the supported format 2 [2.0.202/5]
    at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:1004
)
    at org.h2.mvstore.MVStore.getUnsupportedWriteFormatException(MVStore.java:1059)
    at org.h2.mvstore.MVStore.readStoreHeader(MVStore.java:878)
    at org.h2.mvstore.MVStore.<init>(MVStore.java:455)
    at org.h2.mvstore.MVStore$Builder.open(MVStore.java:4052)
    at org.h2.mvstore.db.Store.<init>(Store.java:129)

 

답변 1

답변을 작성해보세요.

1

안녕하세요. 김대호님

아마도 H2 데이터베이스 버전 차이에 따른 오류인 것 같아요.

설치한 H2 데이터베이스가 1.4.200이라면 다음을 참고하셔서 pom.xml을 다음과 같이 고쳐보시겠어요?

https://www.inflearn.com/questions/250718

감사합니다.

김대호님의 프로필

김대호

질문자

2021.11.29

네, 1.4.2버전으로 하니 바로 접속이 됩니다... 

감사합니다!!