View Single Post
  #1 (permalink)  
Old 02-27-2003
christoph christoph is offline
Registered User
 
Name: C
Organization: A
Project: none
 
Join Date: Feb 2003
Location: Stuttgart, Germany
Posts: 4
DB 4.0.14 and IceJ problems

Hello,

I found some problems running the tests in IceJ's Freeze directory.
While the C++ tests worked perfectly all the java tests failed.
It seems that Berkeley DB's java wrapper is the reason for the problems.
Unfortunately, I could not find any information about it on Sleepycats website.

Btw, I'm using db 4.0.14-64 on Linux (SuSE 8.0).

Here are some more details about the failed tests:

* cursor
line 118 in Client.java: the call to cursor.next() always returns "true"

* complex and dbmap
the problem is visible in Freeze.Map.put():
try {
byte[] v = _db.get(k);
o = decodeValue(v, _communicator);
} catch(DBNotFoundException e) ...

_db.get() does not raise a DBNotFoundException if key was not found but returns "null".
So the next call to decodeValue() results in a NullPointerException.

* evictor
The same thing happens in Freeze.Map.get()

An update to db 4.1.25 does not work either. The reason for that might be an API change
(db.open) as indicated in the documentation.

Christoph
Reply With Quote