Hi Thomas,

Thanks for your response. After some analysis, I realized that we have to
do this:

Constants.SUFFIX_MV_FILE + Constants.SUFFIX_MV_STORE_NEW_FILE,
Constants.SUFFIX_MV_FILE + Constants.SUFFIX_MV_STORE_TEMP_FILE,

to get the final suffix. It now works fine.

It would be great if Constants.java provided an array of all final
suffixes. Also, ".data.db" is not there in Constants.java.

Is this suffix being used by mistake? If I don't give that permission, I
get an exception:

java.security.AccessControlException: access denied
("java.io.FilePermission" "/home/default/user.h2.data.db" "read")
    at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
    at
java.security.AccessController.checkPermission(AccessController.java:884)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
    at java.io.File.exists(File.java:814)
    at org.h2.store.fs.FilePathDisk.exists(FilePathDisk.java:149)
    at org.h2.store.fs.FileUtils.exists(FileUtils.java:31)
    at org.h2.engine.Database.open(Database.java:572)
    at org.h2.engine.Database.openDatabase(Database.java:266)

​best,​
-- 
*Harshad RJ <http://lavadip.com>*

-- 
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 http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to