About failure

forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... - either by invocation of rollback or by a commit failure." Quite different behavior from what I expected and would ...

 
forum_thread

Optimistic lock

Hello When I get an optimistic lock on an object, refresh(), start trans and persist?  Will the changes made to the object before the violation be retained or must they be duplicated in the retry code?  Assuming it affects only one object.  tia. ... By default, objects after transaction failure (regardless of cause) retain their values in memory. Objects ...

 
issue

Internal exception

Hello. We got the following stacktrace. Can you explain me what this internal exception means and why it was thrown? It only happens when the entities are enhanced. Best regards BTC ES   ... the mapped by instances. The stack trace indicates a failure to cascade persist operation from unknown reason during that flush. ...

 
forum_thread

Error using query with MAX() function

I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the latest remark I get a internal error when the remark is larger than 1966 chars. Here is a test class and entity that reproduces the problem on my system. ... fails there are no Notes entities yet. After the failure the database fails Doctor check ObjectDB Doctor [ version ... between how often I commit and the results of success or failure. If I commit after every update it seems to work. If I ...

 
release

2.0.2

... Fixed a bug in the new log based (recording) recovery from failure mechanism. Fixed a bug in finding an entity after a ...

 
page

ObjectDB Object Database Features

ObjectDB provides a rich set of features, many of them as the result of supporting the JPA and JDO APIs.... Recovery from failure by using a  recovery file and double writing. ...

 
issue

Large query parameter - out of memory

I have an entity object composed of an id, large data in the form of a string and the hashcode of the string as an index. The attached test saves 2000 of these objects, writing the data to a txt file as it goes. It then loops through the data from the file and queries for the entity id based on the data hashcode and the data itself. ... Your test demonstrates a failure of ObjectDB in evaluating cached query result size. Since Java ...

 
release

2.0.1

... Fixed a bug in the new log based (recording) recovery from failure mechanism. Fixed a bug in finding an entity after a ...

 
forum_thread

Remove not working

Hello! We have a strange problem. ... I make a mistake, or is this configuration showing a true failure? import javax. jdo . JDOHelper ; import javax. ... If I manually set ignoreCache=false to correct the failure above, then the test succeeds. ...

 
release

2.0.4

... Fixed a bug in the new log based (recording) recovery from failure mechanism. Fixed a bug in finding an entity after a ...