We upgraded our h2 version from 1.3.176 -> 1.4.198
After our version upgrade , we executed the below steps and resulted in
error as shown below .
1) Deleted the *.h2.db file created through 1.3.X version .
2) Started the database server with the args as : args
'-tcp','-tcpPort',"9092",'-tcpAllowOthers','-baseDir',"C:/dev/workspace/projectname/db/")
3) Tried to connect to the database through Squirrel Tool (Remote
Connection through tcp) . While establishing a session with squirrel it
should have created a new db file in baseDir. But resulted in Error .
DB URL used in Squirrel : jdbc:h2:tcp://localhost:9092/YYYDB
*Exception StackTrace :*
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database
"C:/dev/workspace/projectname/db/YYYDB" not found [90013-198]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:616)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
at org.h2.message.DbException.get(DbException.java:205)
at org.h2.message.DbException.get(DbException.java:181)
at org.h2.engine.Engine.openSession(Engine.java:67)
at org.h2.engine.Engine.openSession(Engine.java:201)
at org.h2.engine.Engine.createSessionAndValidate(Engine.java:178)
at org.h2.engine.Engine.createSession(Engine.java:161)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:160)
at java.lang.Thread.run(Thread.java:785)
at java.util.concurrent.FutureTask.report(FutureTask.java:133)
at java.util.concurrent.FutureTask.get(FutureTask.java:217)
at
Downgrading to 1.4.197 creates a new *.db file in baseDir as expected .
1.4.198 also works fine if there is a previous version of *.db file .
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.