My Oracle Support Banner

Use of Non-direct Byte Buffers When Constructing a DatabaseEntry (Doc ID 549154.1)

Last updated on FEBRUARY 05, 2020

Applies to:

Berkeley DB - Version 4.3 to 4.6.21
Information in this document applies to any platform.

Symptoms

In the Java API for Berkeley DB Core, the DatabaseEntry(ByteBuffer b) constructor takes a byte buffer as an argument, but really handles only direct byte buffers. When using a non-direct byte buffer for the constructor, an ambiguous error message is returned:

java.lang.IllegalArgumentException: offset + ulen greater than array length 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.