About Doctor

forum_thread

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) ... using Windows 7 64 bits. jdk1.6.0_27. ObjectDB doctor did not find any anormalie in the file I found the following log ...

 
forum_thread

Removing objects where ManyToMany relationships exist

Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany private Set<OtherEntity> setOfOtherEntities; public Set<OtherEntity> getOtherEntities() {     if (setOfOtherEntities == null) {       setOfOtherEntities = new TreeSet<OtherEntity>();     }     return setOfOtherEntities;   } ... with null values when the database is fixed using the Doctor. In this specific scenario you may consider using a ...

 
forum_thread

Automatic schema evolution causes ArrayOutOfBoundsException

Hi, I did 2 modification to our schema. Our schema looks like this: class Entity     - List<String> permissions class ServiceProvider extends Entity     - String name class Airline extends Entity     - String name     - String iata ... permissions field to something else it works. The objectdb doctor states "No errors have been found". Is there any other way to resolve ...

 
forum_thread

Replication Error

Hello! I try to get a replication setup working on two test servers. So i copied my test database to one of them, enabled recording and started odb. The dbname.odr folder got created so i think everything is ok. Afterwards i added the replication tag to the configuration of the second server and started it. The second server starts complaining instantly with the following Exception: ... seconds. I already tried to fix the db with the doctor. No error is found. I use the latest version of ObjectDB. ...

 
forum_thread

Objectdb recovery

Hello, I have question regarding objectdb recovery when objectdb is not finished correctly (power outage). We are using following configuration: <recovery enabled="true" sync="false" path="." max="128mb"/> <recording enabled="false" sync="false" path="." mode="write"/> Is there any possibility of data loss when power outage? ... database file after such events by running the ObjectDB Doctor. Regarding data lose, recovery returns your database to the most ...

 
forum_thread

Remove not working

Hello! We have a strange problem. ... Newest version of ObjectDB. No errors if I run the doctor. I've reduced my testcase to this: @ Test @ ...

 
forum_thread

JDO @Index in JPA?

Hi! I have a project which has all entities as JPA entities. I would like to make use of indexing, which I know that it's not available in JPA, but ObjectDB works with JDO as well. Question1: will adding JDO @Index in a JPA entity have any effect or I have to switch that entity to JDO? Question2: switching entities from JPA to JDO can happen when there is already data in the database? Or do I have to delete the previous data and start with a fresh db? Thank you. ... has non indexed instances stored in the database - use the Doctor to rebuild the index  in a new copy of your database. ...

 
forum_thread

Connection performace after upgrade to objectdb 2

Hi, I have a problem with objectdb 2 when I tried to get the PersistenceManagerFactory and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(getProperties(physicalPath, objectName), JDOHelper.class.getClassLoader()); takes only 3ms PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2, the same instructions take respectively : 257ms and 238ms which is very expensive. ... two odb file for version 1 and 2. ps. I run the doctor this odb file, indexes seems to be fine Regards,   ...

 
issue

Can't open DB-file with explorer, but from within my code it works

Hi, The problem occured since an update from my old-version (2.4.7_08) to the new version(2.4.7_18): 1) my recent db-file, created with the old-version, has been copied to the local db-folder of the new version automatically 2) But I can't open the db-file with the objectDB explorer, neither with the old-version, nor with the new version. The error message shown in a message-box is: ... (from within my code) without any errors 4) the db doctor ends without error messages Scanning the database file... 0MB ...

 
forum_thread

ObjectDB stability after power failure

I'm considering using ObjectDB in a system that is going to be running continuously without support instantly available for many years.  How stable is ObjectDB when it comes to power failures and unattended restarts?  Is database integrity maintained during such events?  I have seen database vendors perform 'kick the plug out' demonstrations of how their product will survive power failures.  Is ObjectDB suitably robust that it won't fail in such situations?    ... data. Finally, if everything goes wrong you can use the Doctor to fix the database. In general the risk of losing data is very small. ...