@@ -468,6 +468,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>Automatic detection of redundant indexes.
</li><li>If the database URL ends with ";INIT=<url>" then the SQL script from the given file or URL is executed (the user name must have admin rights). Example URL: jdbc:h2:mem:test;INIT=~/init.sql
</li><li>Maybe reject join without "on" (except natural join).
</li><li>Cluster: support load balance with values for each server / auto detect.
org.h2.tools.Backup=Creates a backup of a database.\nThe database must be closed before using this tool,\nexcept when running in quiet mode.
org.h2.tools.Backup=Creates a backup of a database.\nThis tool copies all database files. The database must be closed before using\nthis tool. To create a backup while the database is in use, run the BACKUP\nSQL statement. In an emergency, for example if the application is not\nresponding, creating a backup using the Backup tool is possible by using the\nquiet mode. However, if the database is changed while the backup is running\nin quiet mode, the backup could be corrupt.
org.h2.tools.Backup.main=Options are case sensitive. Supported options are\:\n[-help] or [-?] Print the list of options\n[-file <filename>] The target file name (default\:backup.zip)\n[-dir <dir>] The source directory (default\:.)\n[-db <database>] Source database; not required if there is only one\n[-quiet] Do not print progress information
org.h2.tools.ChangeFileEncryption=Allows changing the database file encryption password or algorithm.\nThis tool can not be used to change a password of a user.\nThe database must be closed before using this tool.
org.h2.tools.ChangeFileEncryption.main=Options are case sensitive. Supported options are\:\n[-help] or [-?] Print the list of options\n[-cipher type] The encryption type (AES or XTEA)\n[-dir <dir>] The database directory (default\:.)\n[-db <database>] Database name (all databases if not set)\n[-decrypt <pwd>] The decryption password (if not set\:not yet encrypted)\n[-encrypt <pwd>] The encryption password (if not set\:do not encrypt)\n[-quiet] Do not print progress information
@@ -47,9 +47,7 @@ Please provide any additional information below.
-----------------
ClassCastException
There is a known problem in version 1.2.120 that can cause a ClassCastException. Did you use version 1.2.120 with this database? If not, I have a few more questions:
This looks like a serious problem. I have a few questions:
- Could you send the full stack trace of the exception including message text?
- What is your database URL?
...
...
@@ -64,11 +62,15 @@ There is a known problem in version 1.2.120 that can cause a ClassCastException.
- Did the application run out of memory (once, or multiple times)?
- Do you use any settings or special features (for example, the setting
LOG=0, or two phase commit, linked tables, cache settings)?
- Do you use any H2-specific system properties?
- Is the application multi-threaded?
- What operating system, file system, and virtual machine
(java -version) do you use?
- How did you start the Java process (java -Xmx... and so on)?
- To you use temporary tables?
- Is it (or was it at some point) a networked file system?
- How big is the database (file sizes)?
- How much heap memory does the Java process have?
- Is the database usually closed normally, or is process terminated
forcefully or the computer switched off?
- Is it possible to reproduce this problem using a fresh database