Hi,
Could you post the complete error message including error code and all
other stack traces?
Regards,
Thomas
On Tuesday, January 31, 2012, Stanislav wrote:
> hi all, I far as I failed to find any jira or other bug tracking link
> for h2sql, posting the following issue here.
>
> I got NPE when I run h2 in a cluster mode (3 nodes):
>
> Caused by: java.lang.NullPointerException
> at org.h2.table.RegularTable.removeRow(RegularTable.java:344)
> at org.h2.engine.UndoLogRecord.undo(UndoLogRecord.java:98)
> at org.h2.engine.Session.rollbackTo(Session.java:530)
> at org.h2.engine.Session.rollback(Session.java:507)
> at
> org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:
> 49)
> at org.h2.command.CommandContainer.update(CommandContainer.java:73)
> at org.h2.command.Command.executeUpdate(Command.java:226)
>
> It happens when DB was under a heavy load (see code below) and I was
> running org.h2.tools.CreateCluster to join failed node back to
> cluster. Exception is thrown by the client code (not by
> org.h2.tools.CreateCluster) which was inserting data into DB. Client
> doesn't use multi-threading. The code is very straightforward and
> literally something like that snipped with total_recs around 1000000:
>
> for(long i = startFrom; i < TOTAL_RECS; ++i) {
> stmt.setLong(1, i);
> stmt.setString(2, "stuff"+i);
> stmt.execute();
> if ( i % 10 == 0 ) {
> getConnection().commit();
> lastCommited = i;
> }
> }
>
> Sorry, but managed to reproduce it just once.
>
> --
> 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]<javascript:;>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:;>.
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>
>
--
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.