Hi,
We're using H2 (version 1.2.140) with connection string
"jdbc:h2:split:nioMapped:/
testDB;LOCK_MODE=3;CACHE_SIZE=262144;TRACE_LEVEL_FILE=0;DB_CLOSE_ON_EXIT=FALSE;MVCC=TRUE"
and we have a NullPointerException with this stack:
2010-08-06 10:34:25,895 WARN
[org.jboss.messaging.core.impl.JDBCSupport] (http-0.0.0.0-8080-5)
SQLException caught, SQLState HY000 code:50000- assuming deadlock
detected, try:9
org.h2.jdbc.JdbcSQLException: General error:
"java.lang.NullPointerException"; SQL statement:
INSERT INTO JBM_MSG_REF_CJQ (CHANNEL_ID, MESSAGE_ID, TRANSACTION_ID,
STATE, ORD, PAGE_ORD, DELIVERY_COUNT, SCHED_DELIVERY) VALUES
(?, ?, ?, ?, ?, ?, ?, ?) [50000-140]
at
org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:156)
at org.h2.message.DbException.convert(DbException.java:279)
at org.h2.table.RegularTable.addRow(RegularTable.java:134)
at org.h2.command.dml.Insert.insertRows(Insert.java:120)
at org.h2.command.dml.Insert.update(Insert.java:82)
at
org.h2.command.CommandContainer.update(CommandContainer.java:70)
at org.h2.command.Command.executeUpdate(Command.java:199)
at
org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:
141)
at
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:
127)
[...]
Caused by: java.lang.NullPointerException
at
org.h2.store.fs.FileObjectDiskMapped.readFully(FileObjectDiskMapped.java:
140)
at org.h2.store.fs.FileObjectSplit.read(FileObjectSplit.java:
52)
at
org.h2.store.fs.FileObjectSplit.readFully(FileObjectSplit.java:59)
at org.h2.store.FileStore.readFully(FileStore.java:281)
at org.h2.store.PageStore.readPage(PageStore.java:1097)
at org.h2.store.PageStore.getPage(PageStore.java:561)
at org.h2.store.PageStore.getFreeList(PageStore.java:922)
at org.h2.store.PageStore.allocatePage(PageStore.java:989)
at org.h2.store.PageStore.allocatePage(PageStore.java:977)
at org.h2.index.PageDataLeaf.split(PageDataLeaf.java:356)
at org.h2.index.PageDataNode.addRowTry(PageDataNode.java:151)
at org.h2.index.PageDataIndex.addTry(PageDataIndex.java:159)
at org.h2.index.PageDataIndex.add(PageDataIndex.java:124)
at org.h2.table.RegularTable.addRow(RegularTable.java:116)
This happened only twice since we're using 1.2.140, so I couldn't get
more info debugging (I'll try if I get this error again).
I've been reading the code and I suppose that there's a problem in
org.h2.store.fs.FileObjectSplit.getFileObject(), but I haven't found
anything obvious. Hope you can help.
Thanks!
--
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.