akarshan2701 / h2database

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

org.h2.util.Utils.newBytes throws an java.lang.NegativeArraySizeException #223

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. We use a Hibernate ScrollableResult to query an H2 database. Sometimes we 
get the exception described in the stack trace below.
2. Issue is not easy to reproduce, we don't see any deterministic pattern yet
3. It could be that it is related to performance. We experience the issue if 
the DB is under high load.

We're using H2 version 1.2.131

What is the expected output? What do you see instead?
Expected: Return results as usual ;-)
What we see: see exceptin in the stack trace

Please use labels and text to provide additional information.

Original issue reported on code.google.com by kecsapos...@gmail.com on 11 Aug 2010 at 3:59

GoogleCodeExporter commented 8 years ago
Hi

It looks like the file where the BLOB is stored is corrupt in some way. I don't 
know what the problem might be however. Is it possible to reproduce the problem 
with a newer version of H2? You are using version 1.2.131. If it is possible to 
reproduce, can it be reproduced with a new database (using the current version 
of H2) and the system property h2.lobInDatabase set to true? I'm not saying you 
need to use the newer version of H2 (in any case the problem needs to be 
understood and fixed) but trying to find out what exactly the problem is.

Regards,
Thomas

Original comment by thomas.t...@gmail.com on 14 Aug 2010 at 5:07

GoogleCodeExporter commented 8 years ago
Hi Thomas,

I was able to reproduce the issue with version 1.2.140 and also with the 
proposed system property. We can also close out the corrupt DB (I have 
recreated the whole DB) additionally the problem appears randomly during the 
load of BLOBs (there is no continuously failing BLOB).

We are focusing on NFS now. In normal case our application access H2 via NFS 
but the problem could not be reproduced with a local DB instance till now. The 
details are not clear for us at the moment.

Cheers,
Lajos

Original comment by kecsapos...@gmail.com on 16 Aug 2010 at 5:47

GoogleCodeExporter commented 8 years ago
Hi,

I'm sorry, but I think I will need a reproducible test case to understand and 
solve the problem.

Original comment by thomas.t...@gmail.com on 15 Oct 2010 at 6:40

GoogleCodeExporter commented 8 years ago
I'm closing this bug because I can't reproduce the problem. If it occurs again 
or if you can reproduce it, please add a comment, I will then reopen this issue.

Original comment by thomas.t...@gmail.com on 2 Nov 2010 at 7:33