Error opening H2 Database

Asked

Viewed 464 times

1

I have been trying to open a H2 Database file that is not corrupted and H2 Database has returned me the following error:

Encryption error in file "C:/Users/Administrator/test.h2.db" [90049-189] 90049/90049 (Help)
org.h2.jdbc.JdbcSQLException: Encryption error in file "C:/Users/Administrator/test.h2.db" [90049-189] 
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) 
    at org.h2.message.DbException.get(DbException.java:179) 
    at org.h2.message.DbException.get(DbException.java:155) 
    at org.h2.store.FileStore.init(FileStore.java:203) 
    at org.h2.engine.Database.openFile(Database.java:533) 
    at org.h2.store.PageStore.openExisting(PageStore.java:328) 
    at org.h2.store.PageStore.open(PageStore.java:288) 
    at org.h2.engine.Database.getPageStore(Database.java:2464) 
    at org.h2.engine.Database.open(Database.java:672) 
    at org.h2.engine.Database.openDatabase(Database.java:269) 
    at org.h2.engine.Database.<init>(Database.java:263) 
    at org.h2.engine.Engine.openSession(Engine.java:65) 
    at org.h2.engine.Engine.openSession(Engine.java:175) 
    at org.h2.engine.Engine.createSessionAndValidate(Engine.java:153) 
    at org.h2.engine.Engine.createSession(Engine.java:136) 
    at org.h2.server.TcpServerThread.run(TcpServerThread.java:149) 
    at java.lang.Thread.run(Thread.java:745) 

    at org.h2.engine.SessionRemote.done(SessionRemote.java:624) 
    at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:143) 
    at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:448) 
    at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:329) 
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107) 
    at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91) 
    at org.h2.Driver.connect(Driver.java:72) 
    at org.h2.server.web.WebServer.getConnection(WebServer.java:735) 
    at org.h2.server.web.WebApp.test(WebApp.java:893) 
    at org.h2.server.web.WebApp.process(WebApp.java:221) 
    at org.h2.server.web.WebApp.processRequest(WebApp.java:170) 
    at org.h2.server.web.WebThread.process(WebThread.java:133) 
    at org.h2.server.web.WebThread.run(WebThread.java:89) 
    at java.lang.Thread.run(Thread.java:745) 

I am new to Java and I would like to know more or less what is this mistake...

  • How are you doing to try to connect to the bank? Some information is wrong, such as the encryption algorithm or user/password

  • @Brunocésar If the user/password had been wrong it had not q appear 'Wrong user name or password [28000-189] 28000/28000' ?

  • I connect to the H2 database console

  • No, this 28000 is when you use ordinary authentication, not the way you’re trying

  • So do I have to know user/password to sign in? Or is there something wrong in the formation of encryption?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.