ObjectDB ObjectDB

problems using the explorer

#1

we are currently evaluating objectDB.

Environment

OSX 10.9.2, JavaSE-1.7

Version: Kepler Service Release 2
Build id: 20140224-0627

ObjectDB 2.5.5

Maven project, objectDB relevant sections:

...

  <repositories>
    <repository>
      <id>objectdb</id>
      <name>ObjectDB Repository</name>
      <url>http://m2.objectdb.com</url>
    </repository>
  </repositories>

  ...

  <dependency>
    <groupId>com.objectdb</groupId>
    <artifactId>objectdb</artifactId>
    <version>2.2.5</version>
  </dependency>

...

 

Problem:

we created a small example that just writes and retrieves an entity, everything works fine (start several times, run...)

as soon as we open the database wit explorer, view at the table, close the connection again, we have these messages on starting the project in Eclipse again:

Exception in thread "main" [ObjectDB 2.2.5] javax.persistence.PersistenceException
Attempt to open a database file '/Users/hgz/objectdb/db/coreSystemDb.odb' with an old unsupported format (error 143)
at com.objectdb.jpa.EMF.createEntityManager(EMF.java:163)
at com.agile.hummingbird.CoreDaemon.connectDbJPA(CoreDaemon.java:63)
at com.agile.hummingbird.CoreDaemon.main(CoreDaemon.java:101)
Caused by: com.objectdb.o.UserException: Attempt to open a database file '/Users/hgz/objectdb/db/coreSystemDb.odb' with an old unsupported format
at com.objectdb.o.MSG.d(MSG.java:61)
at com.objectdb.o.SFL.<init>(SFL.java:238)
at com.objectdb.o.MST.<init>(MST.java:111)
at com.objectdb.o.MST.aG(MST.java:96)
at com.objectdb.o.MSF.UH(MSF.java:167)
at com.objectdb.o.OMF.ai(OMF.java:725)
at com.objectdb.jpa.EMF.ai(EMF.java:143)
at com.objectdb.o.OMF.ah(OMF.java:681)
at com.objectdb.jpa.EMF.createEntityManager(EMF.java:160)
... 2 more

 

edit
delete
#2

The stack trace indicates using ObjectDB 2.2.5, which was downloaded automatically by the Maven example.

If you open the database using the Explorer of version 2.5.5, the database file may be updated to a newer format that is not supported by version 2.2.5.

Try changing your pom.xml file, in order to use version 2.5.5 also by your application:

  <dependency>
    <groupId>com.objectdb</groupId>
    <artifactId>objectdb</artifactId>
    <version>2.5.5</version>
  </dependency>

 

ObjectDB Support
edit
delete
#3

smiley thanks, time to buy same glasses ...

edit
delete

Reply

To post on this website please sign in.