164 words

Issue #145 - [ObjectDB 2.3.7_08] Unexpected exception (Error 990)

BugVersion: 2.3.7Priority: NormalStatus: ClosedReplies: 2
2012-04-10 02:57

Hello there,

I've encountered InternalException from ObjectDB.

Attached the stacktrace below.

I would require your assistance and advise on resolving this issue.

Likewise, I would provide any information that you require.

Thank you.

pkthoo's picture
Joined on 2012-04-10
User Post #1
2012-04-10 18:13

The stack trace indicates an unexpected primary key value during persist.

Please provide more information on the object that fails to persist. Has it class been changed recently? How exactly the primary key is defined? Which value is used as a primary key in the specific object that fails to persist?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #1,012
2012-04-12 02:39

Hi there,

I traced the problem to a NullPointerException thrown from inside one entity override of toString() method.

The entity was invoking a method from a null field which is now fixed.

I suppose that ObjectDB could not have known first-hand if a field is null when toString() is invoked. Thus it is the responsibility of developers to avoid NPEs during JPA Entity development.

Thank you.


NOTE: You may mark this issue as [Closed] if you deem this issue as trivial and something developers should take into consideration.


pkthoo's picture
Joined on 2012-04-10
User Post #2

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB