Command line:
java -cp h2*.jar org.h2.tools.ChangeFileEncryption -cipher "XTEA" -dir
"~" -db "test"
Result:

Encryption error in file "C:\Documents and Settings\Administrator
\test.h2.db" [90049-125] 90049/90049 (Help)
org.h2.jdbc.JdbcSQLException: Encryption error in file "C:\Documents
and Settings\Administrator\test.h2.db" [90049-125]
    at org.h2.message.Message.getSQLException(Message.java:111)
    at org.h2.message.Message.getSQLException(Message.java:122)
    at org.h2.message.Message.getSQLException(Message.java:75)
    at org.h2.store.FileStore.init(FileStore.java:217)
    at org.h2.tools.ChangeFileEncryption.process
(ChangeFileEncryption.java:169)
    at org.h2.tools.ChangeFileEncryption.process
(ChangeFileEncryption.java:157)
    at org.h2.tools.ChangeFileEncryption.run(ChangeFileEncryption.java:
90)
    at org.h2.server.web.WebApp.tools(WebApp.java:366)
    at org.h2.server.web.WebApp.process(WebApp.java:213)
    at org.h2.server.web.WebApp.processRequest(WebApp.java:142)
    at org.h2.server.web.WebThread.process(WebThread.java:137)
    at org.h2.server.web.WebThread.run(WebThread.java:94)
    at java.lang.Thread.run(Thread.java:595)



On 12月12日, 上午2时25分, Thomas Mueller <[email protected]>
wrote:
> Hi,
>
> > Would this resolve the issue?
> > System.getProperty("file.separator");
>
> No. The slash / backslash is not a problem.
>
> Is the database still open? The database must be closed before calling
> this tool.
>
> If not, could you post the complete error message and stack trace?
>
> Regards,
> Thomas

--

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