Hi,
I keep getting quite randomly the following kind of error when reading
BLOBs from database
org.h2.message.DbException: IO Exception: "java.io.EOFException";
"/root/.lobs.db/172.temp.db" [90031-143]
at
org.h2.message.DbException.get(DbException.java:156)
at
org.h2.message.DbException.convertIOException(DbException.java:313)
at
org.h2.store.FileStore.readFully(FileStore.java:287)
at
org.h2.store.FileStoreInputStream.fillBuffer(FileStoreInputStream.java:93)
at
org.h2.store.FileStoreInputStream.readBlock(FileStoreInputStream.java:73)
at
org.h2.store.FileStoreInputStream.read(FileStoreInputStream.java:61)
Behind it comes
Caused by: org.h2.jdbc.JdbcSQLException: IO Exception:
"java.io.EOFException"; "/root/.lobs.db/172.temp.db" [90031-143]
at
org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
... 31
more
Caused by:
java.io.EOFException
at
java.io.RandomAccessFile.readFully(RandomAccessFile.java:383)
at
org.h2.store.FileStore.readFully(FileStore.java:285)
... 28 more
My webserver shows images that are in the database and it seems that the
/root folder mentioned
in the exception point's to the webserver's (that is client's) /root folder.
This happens quite randomly so that when reloading the page, that
contains a list of images,
the image (BLOB) that causes the exception changes in a seemingly random
fashion.
Sometimes the exception is different like this
java.lang.NegativeArraySizeException
at
org.h2.util.Utils.newBytes(Utils.java:362)
at
org.h2.store.Data.expand(Data.java:1119)
at
org.h2.store.Data.checkCapacity(Data.java:1114)
at
org.h2.store.FileStoreInputStream.fillBuffer(FileStoreInputStream.java:100)
at
org.h2.store.FileStoreInputStream.readBlock(FileStoreInputStream.java:73)
at
org.h2.store.FileStoreInputStream.read(FileStoreInputStream.java:61)
Any ideas what this might be about or how to debug it further?
- Rami
--
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.