jdbc:h2:{database};AUTO_SERVER=TRUE;MV_STORE=FALSE;MVCC=TRUE;DEFRAG_ALWAYS=TRUE;
Caused by: java.lang.ArrayIndexOutOfBoundsException
12-31 11:54:04 jdbc[3]: exception
org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.IOException: java.lang.ArrayIndexOutOfBoundsException"; "lob: null table: 62 id: 753781"; SQL statement:
SCRIPT TO 'C:\backup.sql' [90031-184]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:168)
at org.h2.message.DbException.convertIOException(DbException.java:330)
at org.h2.value.ValueLobDb.getInputStream(ValueLobDb.java:394)
at org.h2.value.ValueLobDb.getReader(ValueLobDb.java:377)
at org.h2.value.ValueLobDb.getString(ValueLobDb.java:292)
at org.h2.value.ValueLobDb.getSQL(ValueLobDb.java:416)
at org.h2.command.dml.ScriptCommand.generateInsertValues(ScriptCommand.java:426)
at org.h2.command.dml.ScriptCommand.query(ScriptCommand.java:300)
at org.h2.command.CommandContainer.query(CommandContainer.java:90)
at org.h2.command.Command.executeQuery(Command.java:197)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:179)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:158)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.execute(JDBCStatementImpl.java:369)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:155)
at org.jkiss.dbeaver.runtime.sql.SQLQueryJob.executeSingleQuery(SQLQueryJob.java:363)
at org.jkiss.dbeaver.runtime.sql.SQLQueryJob.extractData(SQLQueryJob.java:633)
at org.jkiss.dbeaver.ui.editors.sql.SQLEditor$QueryResultsProvider.readData(SQLEditor.java:1169)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetDataPumpJob.run(ResultSetDataPumpJob.java:132)
at org.jkiss.dbeaver.runtime.AbstractJob.run(AbstractJob.java:91)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException: java.lang.ArrayIndexOutOfBoundsException
at org.h2.message.DbException.convertToIOException(DbException.java:364)
at org.h2.store.LobStorageBackend.getInputStream(LobStorageBackend.java:345)
at org.h2.value.ValueLobDb.getInputStream(ValueLobDb.java:392)
... 17 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
Thanks very much
Daniele Renda
--
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.
> CREATE_BUILD 182
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/ZVCOE0QErOo/unsubscribe.
To unsubscribe from this group and all its topics, 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.
--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/ZVCOE0QErOo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database+unsubscribe@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.
--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/ZVCOE0QErOo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database+unsubscribe@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.
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 unsubscribe from this group and all its topics, 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.
Is needed a new db (version 1.4.184) or I can use the actual db?
Because in that case I should copy all data from the actual db to the newer one...and I've the problem that the emailcontent table can't be copied.
--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/ZVCOE0QErOo/unsubscribe.
To unsubscribe from this group and all its topics, 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.
--
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.
How is possibile that that lob is referenced 16millios of times when that value is only readed from other transactions in the application?
In the first case - maybe I'm saying something stupid - is not becauseThanks for the reply Thomas. Every time a new piece of the puzzle is more clear!About your question "why does a value with only 130 bytes get stored as a LOB....." I don't understand if you mean that this should be managed by h2 and it don't work in my case, or if the fact to store the 130bytes inline or as a LOB should be managed by me (Hibernate). Can you clarify please?MAX_LENGTH_INPLACE_LOB
default value is 128? And so 130 > 128In the end, there is a doc that explains as I can see these "session-scope values" autonomously in order to understand when the problems happens and try to make a reproducible tests seeing these values and when they are created?Thanks very much
--Daniele Renda
MAX_LENGTH_INPLACE_LOB
would be a good idea create a sql of the actual db (SCRIPT DROP TO....) and then create a new db with the MAX_LENGTH_INPLACE_LOB to 256 and run RUNSCRIPT FROM? In this case all lob should be put inline, right?