Forum Stats

  • 3,769,496 Users
  • 2,252,970 Discussions
  • 7,875,056 Comments

Discussions

Key class not found exception

532566
532566 Member Posts: 1
edited Sep 7, 2006 7:54PM in Berkeley DB Java Edition
I believe there is a bug in the DPL that manifests itself when an entity has a field representing a TOMANY relationship with another entity and this second entity has not yet been encountered by the runtime. I get an exception saying the primary key class for the second entity is not found. Everything works fine if the relationship is TOONE. As I said before, this bug may not appear unless the conditions are right - the runtime needs to encounter the second entity for the first time ever in a TOMANY relationship.

I have worked around the problem by explicitly registering the key classes for all my entities before I open the store.

Be great if someone on the DPL team could take a closer look ...

Comments

This discussion has been closed.