Hi,
today I tried the latest H2 1.3.164 release.
My application compacts that database from time to time by closing all
connections and running "SHUTDOWN COMPACT". After that it reopens the
database by creating a pooled connection.
Using 1.3.164 I see the following exceptions in the trace file:
03-06 12:31:32 database: close
java.lang.NullPointerException
at org.h2.index.PageDataLeaf.moveTo(PageDataLeaf.java:552)
at org.h2.store.PageStore.compact(PageStore.java:709)
at org.h2.store.PageStore.compact(PageStore.java:523)
at org.h2.engine.Database.closeOpenFilesAndUnlock(Database.java:1198)
at org.h2.engine.Database.close(Database.java:1148)
at org.h2.engine.Database.removeSession(Database.java:1027)
at org.h2.engine.Session.close(Session.java:563)
at org.h2.jdbc.JdbcConnection.close(JdbcConnection.java:365)
at <my source code>
03-06 12:31:40 database: close
java.lang.ClassCastException: org.h2.store.PageStreamData cannot be
cast to org.h2.index.PageDataNode
at org.h2.index.PageDataLeaf.moveTo(PageDataLeaf.java:551)
at org.h2.store.PageStore.compact(PageStore.java:709)
at org.h2.store.PageStore.compact(PageStore.java:523)
at org.h2.engine.Database.closeOpenFilesAndUnlock(Database.java:1198)
at org.h2.engine.Database.close(Database.java:1148)
at org.h2.engine.Database.removeSession(Database.java:1027)
at org.h2.engine.Session.close(Session.java:563)
at
org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:
110)
at org.h2.command.CommandContainer.update(CommandContainer.java:73)
at org.h2.command.Command.executeUpdate(Command.java:226)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:177)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:152)
at <my source code>
The database seems to be ok so it's not a problem for me.
But I want to let you know about the exceptions. Maybe something is
wrong there?
Ulrich
--
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.