Hi, I can reproduce the problem. Even thought "long" is used for file access, it looks like an integer overflow if the file is larger than 2 GB. I'm currently debugging this.
Regards, Thomas On Thursday, June 4, 2015, John Smith <[email protected]> wrote: > I'm getting that exception now with "mem" mode too; after running tests on > memFS and memLZF modes, I tried to reload our database back to mem but now > I'm getting the same error in mem mode. Though now the index appears to be > a differnt value (-2095986 vs -2095880). > > Any ideas? I've even rebooted the server, nothing helps. The csv files > haven't been modified recently. I've reloaded this database multiple times > in mem mode, this is the first time it is consistently failing. > > > Unable to perform query General error: > "java.lang.ArrayIndexOutOfBoundsException: -2095968" [50000-181] > org.h2.jdbc.JdbcSQLException: General error: > "java.lang.ArrayIndexOutOfBoundsException: -2095968" [50000-187] at > org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at > org.h2.message.DbException.get(DbException.java:168) at > org.h2.message.DbException.convert(DbException.java:295) at > org.h2.server.TcpServerThread.sendError(TcpServerThread.java:221) at > org.h2.server.TcpServerThread.run(TcpServerThread.java:161) at > java.lang.Thread.run(Unknown Source) Caused by: > java.lang.ArrayIndexOutOfBoundsException: -2095968 at > org.h2.store.fs.FileMemData.expand(FilePathMem.java:513) at > org.h2.store.fs.FileMemData.readWrite(FilePathMem.java:622) at > org.h2.store.fs.FileMem.read(FilePathMem.java:309) at > org.h2.store.fs.FileBase.read(FileBase.java:41) at > org.h2.mvstore.cache.FilePathCache$FileCache.read(FilePathCache.java:81) at > org.h2.mvstore.DataUtils.readFully(DataUtils.java:429) > > -- > 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] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- 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.
