Error updating database. Cause: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table ;

565 views
Skip to first unread message

art...@gmail.com

unread,
Jan 27, 2015, 2:18:25 AM1/27/15
to h2-da...@googlegroups.com
I am using the H2 1.4.185.


### Error updating database.  Cause: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table ; SQL statement:
delete from ACT_RU_JOB where ID_ = ? and REV_ = ? [50200-185]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:168)
at org.h2.command.Command.filterConcurrentUpdate(Command.java:301)
at org.h2.command.Command.executeUpdate(Command.java:256)
at org.h2.server.TcpServerThread.process(TcpServerThread.java:345)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:159)
at java.lang.Thread.run(Unknown Source)
Caused by: org.h2.jdbc.JdbcSQLException: Concurrent update in table "ACT_RU_JOB": another transaction has updated or deleted the same row [90131-185]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:168)
at org.h2.mvstore.db.MVSecondaryIndex.remove(MVSecondaryIndex.java:249)
at org.h2.mvstore.db.MVTable.removeRow(MVTable.java:610)
at org.h2.command.dml.Delete.update(Delete.java:94)
at org.h2.command.CommandContainer.update(CommandContainer.java:78)
at org.h2.command.Command.executeUpdate(Command.java:254)
... 3 more
Caused by: java.lang.IllegalStateException: Entry is locked [1.4.185/101]
at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:773)
at org.h2.mvstore.db.TransactionStore$TransactionMap.set(TransactionStore.java:1012)
at org.h2.mvstore.db.TransactionStore$TransactionMap.remove(TransactionStore.java:970)
at org.h2.mvstore.db.MVSecondaryIndex.remove(MVSecondaryIndex.java:243)
... 7 more

The MVCC mode is enabled by default, but it didn't work. 

tc-activiti.log

Thomas Mueller

unread,
Mar 9, 2015, 1:14:53 PM3/9/15
to h2-da...@googlegroups.com
Hi,

Well the error message says timeout, are sure it is not a timeout?

Regards,
Thomas
--
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 h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages