Hi,

I tried to update our application from 1.128 to newest h2 version.
Although I placed the h2mig_pagestore_addon.jar in the classpath the
migration did not start and I got a  "Unsupported database file
version or invalid file header in file" error.

I stepped through the source code and found that the method
org.h2.upgrade.DbUpgrade.connectOrUpgrade(String, Properties)
returns null in line 68 because it just not finds our data.db file.

Our application configures the base directory by setting the
h2.baseDir property:
 System.setProperty("h2.baseDir", "../../db");

It seems like this property is not taken into account by the migration
code.

If you need more input on that, don't hesitate to contact me.

best regards,
Flo

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to