Re: nioMapped exception

29 views
Skip to first unread message
Message has been deleted

Artjoms Aminovs

unread,
Oct 25, 2012, 1:20:19 AM10/25/12
to h2-da...@googlegroups.com
Added LOG=0;UNDO_LOG=0 connection configuration resolved my problem.

trešdiena, 2012. gada 24. oktobris 11:17:41 UTC+3, Artjoms Aminovs rakstīja:
Hi folks !

   I have question about nioMapped DB. My example down at 30' iteration.

org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.IOException"; "split:30:nioMapped:D:/developing/test/cache.dat.h2.db" [90031-168]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
    at org.h2.message.DbException.get(DbException.java:158)
    at org.h2.message.DbException.convertIOException(DbException.java:315)
    at org.h2.store.FileStore.sync(FileStore.java:416)
    at org.h2.store.PageStore.writeVariableHeader(PageStore.java:947)
    at org.h2.store.PageStore.setLogFirstPage(PageStore.java:941)
    at org.h2.store.PageLog.removeUntil(PageLog.java:706)
    at org.h2.store.PageStore.checkpoint(PageStore.java:434)
    at org.h2.store.PageStore.commit(PageStore.java:1438)
    at org.h2.engine.Database.commit(Database.java:1768)
    at org.h2.engine.Session.commit(Session.java:450)
    at org.h2.command.Command.stop(Command.java:148)
    at org.h2.command.Command.executeUpdate(Command.java:259)
    at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:194)
    at cache.H2Test.main(H2Test.java:46)
Caused by: java.io.IOException
    at java.nio.MappedByteBuffer.force0(Native Method)
    at java.nio.MappedByteBuffer.force(Unknown Source)
    at org.h2.store.fs.FileNioMapped.force(FilePathNioMapped.java:219)
    at org.h2.store.fs.FileSplit.force(FilePathSplit.java:336)
    at org.h2.store.FileStore.sync(FileStore.java:413)
    ... 11 more

OS : WIN 7 64bit, 8G RAM
JVM :
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)

java -Xmx128M

I'm new at H2 DB. If you have some ideas please answer.

Thomas Mueller

unread,
Oct 25, 2012, 1:22:47 AM10/25/12
to h2-da...@googlegroups.com
Hi,

I don't know what it could be, it works for me (on Mac OS X, 64 bit). Do you use a 32 bit or 64 bit JVM (java -version should show you)? If 32 bit, could you try with the other architecture if possible (java -d64 / -d32)?

Regards,
Thomas
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/4qrzafirbd0J.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
Reply all
Reply to author
Forward
0 new messages