About Data Source

issue

Unexpected exception (Error 990) - Merge with no Transaction

I am frequently having an error when merging a detached object outside of a transaction. (Is this allowed? I am not trying to modify the object, just read data from it.) Here is a test case: ... allowed? I am not trying to modify the object, just read data from it.) Here is a test case: package com. ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
issue

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: 2

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: 2 java.lang.ArrayIndexOutOfBoundsException: 2 at com.objectdb.o.UTY.aG(UTY.java:1275) at com.objectdb.o.ENH.b(ENH.java:102) at com.objectdb.o.LDR.J(LDR.java:796) at com.objectdb.o.LDR.UW(LDR.java:1023) at com.objectdb.o.CST.ab(CST.java:478) at com.objectdb.o.CST.U4(CST.java:414) at com.objectdb.o.LDR.F(LDR.java:559) at com.objectdb.o.LDR.E(LDR.java:466) at com.objectdb.o.OBC.UJ(OBC.java:1073)... you could catch these kind of  exceptions where the data model between client and server is different and log a more meaningful ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

persisting object with long[][] arrays of array

Hi, I have an object I am trying to persist (java) - It has several fields of type long[][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit(); Here is the object: ... object's arrays of arrays are n x 1 - so the amount of data saved is exactly the same - So it looks like there is something ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Failover from Master to Slave

Good morning! I am interested in ObjectDB for a client project I am currently working on. In order to evaluate your tool I would like to know if your product has the ability to failover from a Master Database to a Slave Database and then recover back to the master when the master comes back online. I don't see any documentation about automatic failover.   Thanks Rich   ... EE JTA environment without restarting the app? (where all data is taken on app deployment from persistence.xml) ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Cache usage

after a runtime of several weeks we are now analyzing the usage of the cache and so on. Looking at the heap dump we suspect that the cache is really used (see heap dump attached), the RAM allocated by objectdb is much less than we would expect. The database file has around 25 GByte of size and there is heavy traffic of around 400 clients communicating permanently via webSockets to the objectdb. The config is attached as well. The question is: is the cache really used ? ... have to be removed from the cache on every change to the data that may affect them. Query programs are not shown in the heap dump image, ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Transaction isolation support?

I am looking at using ObjectDB for our new project, and its looking good so far. But I have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin   ... handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading. ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Dirty checking

Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: which objects, and which collections of objects, have been dirtied.     ... is a simple example, more complex views are composed of data from several different Entity clases. So, one way to do this, ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Error with org.springframework.data.jpa.domain.AbstractPersistable

I am working on a Spring Boot application. I want to integrate ObjectDB with Spring Data JPA. I refer to the http://www.objectdb.com/database/forum/860 to do the configuration. When I start up my application, I got below error. It seems like ObjectDB does not support a generic @ID in the super class. Is this a bug in the ObjectDB? It was totally fine when working with Hibernate or EclipseLink. ... Boot application. I want to integrate ObjectDB with Spring Data JPA. I refer to the http://www.objectdb.com/database/forum/860 to ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: ... id of 168,000. I've inserted 168,000 objects of dummy data with an importer. A subsequent 'submit' again of cleared up the ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...

 
forum_thread

EntityManager refresh problem

Dear Support, in the following code you can see a EntityManager.refresh() example. The example throws an assertion error with the following statement: Assert.assertEquals("entity 1", simpleEntity1.getFieldA()); In my opinion there should be no assertion error. I have tested the example with several objectdb versions (2.5.4, 2.5.6_06 and 2.5.7). Do you have an explanation for the assertion error? ... in this test is that refresh works by retrieving data from the database and in this test the refreshed object has not been ... block. Avoid overflow of published source code examples by breaking long lines . You may mark in ...