Issue #827: [ObjectDB 2.4.1] Unexpected exception (Error 990) on getObjectById

Type: BugVersion: 2.4.1Priority: NormalStatus: ClosedReplies: 3

In this code:

String id = "my key";
ABC itemDb = pm.getObjectById(ABC.class, id);

I get this:

[ObjectDB 2.4.1] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) Client VM 1.6.0_29 (on Windows 7 6.1).
Please report this error on
com.objectdb.o.InternalException: null
at com.objectdb.o.InternalException.f(
at com.objectdb.o.STA.K(
at com.objectdb.o.ENT.y(
at com.objectdb.o.ENT.H(
at com.objectdb.o.LDR.w(
at com.objectdb.o.LDR.v(
at com.objectdb.o.LDR.s(
at com.objectdb.o.OBC.aN(
at com.objectdb.o.OBC.aL(
at com.objectdb.o.OBC.aF(
at com.objectdb.jdo.PMImpl.getObjectById(


Ideas welcome.


The stack trace indicates an internal ObjectDB bug (unexpected state).

If you can post a test case that causes this exception it would be very helpful. 

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Unfortunately I was trying to retrofit ObjectDB into an existing rather complex app, rather than start from scratch, so it isn't feasible to extract a test case in the time I have available.

For information, the problem exhibited itself in a scenario when all the database records had been deleted in a successful transaction immediately prior to executing the get which errored.


It is unclear what you are trying to retrieve just after deleting all the objects from the database.

The following test program tries to reproduce it but with no success:

import javax.jdo.*;
import javax.jdo.annotations.*;

public class T827 {

    public static void main(String[] args) {
        PersistenceManagerFactory pmf =
        PersistenceManager pm = pmf.getPersistenceManager();
        try {
            Object oid = null;
            for (int i = 0; i < 3; i++) {
                A a = new A();
                oid = pm.getObjectId(a);
            pm.newQuery("SELECT a FROM A a").deletePersistentAll();
        finally {
    public static class A {

A way to reproduce the exception is required in order to proceed with working on this issue.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login