Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Key class not found exception

532566Sep 7 2006 — edited Sep 7 2006
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

Greybird-Oracle
Hello,

Thanks for reporting this. I'll take a look and post back to this thread.

Mark
Greybird-Oracle
Hi,

I was able to reproduce the problem exactly as you described it, and we have put a fix in. You can expect this fix in the next upcoming release. You are correct that the workaround is to register your key class in advance.

Thanks again for finding this -- good catch!
Mark
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 5 2006
Added on Sep 7 2006
2 comments
1,148 views