lbehnke / h2database

Automatically exported from code.google.com/p/h2database
0 stars 0 forks source link

ConcurrentModificationException in DiskFile (h2-1.1.114) #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
org.h2.jdbc.JdbcSQLException: General error: 
java.util.ConcurrentModificationException; SQL statement:
        insert into ... values      (?, ?, ?, ?, ?)      
[50000-114]
    at org.h2.message.Message.getSQLException(Message.java:105) [h2-
1.1.114.jar:1.1.114]
    at org.h2.message.Message.convert(Message.java:277) [h2-
1.1.114.jar:1.1.114]
    at org.h2.table.TableData.addRow(TableData.java:139) [h2-
1.1.114.jar:1.1.114]
    at org.h2.command.dml.Insert.update(Insert.java:101) [h2-
1.1.114.jar:1.1.114]
    at org.h2.command.CommandContainer.update(CommandContainer.java:72) 
[h2-1.1.114.jar:1.1.114]
    at org.h2.command.Command.executeUpdate(Command.java:208) [h2-
1.1.114.jar:1.1.114]
    at 
org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:175) 
[h2-1.1.114.jar:1.1.114]
    at 
org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPrepa
redStatement.java:169) [commons-dbcp-1.2.2.jar:1.2.2]
    at 
com.ibatis.sqlmap.engine.execution.SqlExecutor.executeUpdate(SqlExecutor.ja
va:78) [ibatis-sqlmap-2.jar:na]
    at 
com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteUpdat
e(GeneralStatement.java:200) [ibatis-sqlmap-2.jar:na]
    at 
com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(G
eneralStatement.java:78) [ibatis-sqlmap-2.jar:na]
    ... 16 common frames omitted
Caused by: java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.remove(Unknown Source) 
[na:1.6.0_07]
    at org.h2.store.DiskFile.reuseSpace(DiskFile.java:702) [h2-
1.1.114.jar:1.1.114]
    at org.h2.store.DiskFile.allocate(DiskFile.java:604) [h2-
1.1.114.jar:1.1.114]
    at org.h2.store.Storage.allocate(Storage.java:293) [h2-
1.1.114.jar:1.1.114]
    at org.h2.store.Storage.addRecord(Storage.java:182) [h2-
1.1.114.jar:1.1.114]
    at org.h2.index.ScanIndex.add(ScanIndex.java:119) [h2-
1.1.114.jar:1.1.114]
    at org.h2.table.TableData.addRow(TableData.java:121) [h2-
1.1.114.jar:1.1.114]
    ... 24 common frames omitted

Original issue reported on code.google.com by a.kosenkov on 23 Oct 2009 at 9:40

GoogleCodeExporter commented 9 years ago
Is this reproducible with a more recent version of H2? If yes could you post a
simple, standalone test case that reproduces the problem? It would be great if 
the
test case does not have any dependencies except the H2 jar file (that is, a 
simple
SQL script that can be run in the H2 Console, or a Java class uses the JDBC API 
and
is run using a static main method). Please include any initialization code 
(CREATE
TABLE, INSERT and so on) in the Java class or in a .sql script file.

Original comment by thomas.t...@gmail.com on 29 Oct 2009 at 8:31

GoogleCodeExporter commented 9 years ago
Just the stack trace is not a valid bug report. See my comments.

Original comment by thomas.t...@gmail.com on 5 Nov 2009 at 8:18