About named

forum_thread

Problems down-casting in WHERE clause

I have a family of related types, like this: @Entity class Base { String val1; String val2; }; @Entity class Derived1 extends Base { String val3; }; @Entity class Derived2 extends Base { String val4; };  I'm trying to implement a query which will return all Base objects which have a given string within any of their String-typed fields.  The query I'm using looks somewhat like this: #1 2013-07-07 03:04 I have a family of related types, like this: @ Entity class Base { String val1 ...

 
forum_thread

Replicated cluster recovery

If I create a replicated database cluster as per http://www.objectdb.com/java/jpa/tool/replication what is the behaviour of the master database after a failure? For example, say I have MasterDB and SlaveDB in the cluster. If MasterDB goes offline the application will automatically switch to SlaveDB. When MasterDB comes back online it will have missed any activity that occured during the downtime. #1 2011-04-08 16:07 If I create a replicated database cluster as per http://www.objectdb.com/java/jpa/tool/replication what is the be ...

 
forum_thread

Missing Data on Retrieval (0, null values)

I try  to export all Objects in an Flatfile-Hiearchy (.csv). But only the first exported Table contains all necessary Data. Most of the others  contains all  Object-Rows', but most Values of the Columns are missing. With a  em.clear() inside the Loop, all tables are exported correctly but the Enity-Keys do not match. I can't get the point - what am i doing wrong?   emf = Persistence.createEntityManagerFactory(dbFile); em = emf.createEntityManager(); #1 2016-04-13 07:07 I try  to export all Objects in an Flatfile-Hiearchy (.csv). But only the first exported Table contains ...

 
forum_thread

Mysterious "Attempt to persist a reference to a non managed instance" error

I've been working with ObjectDB for the past several months, and it's behaved pretty much as expected. I made a few modifications to a working set of classes today, and it's started throwing exceptions at commit time. I've stripped it down to a  set of files that seem to be of trivial complexity, but it's still failing. It involves two entities, Index and Ostrich. The thing to note is that the Index structure is recursive through maps; but that's never caused any problem for me in the past. #1 2011-06-08 20:51 I've been working with ObjectDB for the past several months, and it's behaved pretty much as expected. I ...

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: Bug Version: 2.3.3 Priority: Critical Status: Fixed Replies: 2 Type:  Bug ...

 
forum_thread

JPA vs JDO - which is more efficient for OneToMany queries?

I'm curious about the trade offs between JDO and JPA. Seems to me that JDO will perform better and be statically typed. For example: Assume there are Customers and Orders. #1 2010-11-09 12:04 I'm curious about the trade offs between JDO and JPA. Seems to me that JDO will perform better and be statically ...

 
issue

Error in production. Failed to commit transaction: Unexpected database state: BTree -152 is not found

2014-06-16 11:52:26,684 ERROR cl.intelidata.servlet.Fact .respondeRut (122 ): Unexpected internal exception [ObjectDB 2.5.5] Unexpected exception (Error 990) Generated by OpenJDK 64-Bit Server VM 1.7.0_25 (on Linux 3.11.0-12-generic). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException Bug Version: 2.5.5 Priority: Normal Status: Active Replies: 1 Type:  Bug ...

 
forum_thread

Unexpected NoSuchFieldError exception

Hi, suddenly running into a number of issues:   1) no-arg constructor (error 352) 2) java.lang.NoSuchFieldError: __odbTracker 3) Attempt to start a transaction while another transaction is running. In each case, I've found it difficult to figure out where to find the right documentation. Below is an example that has #1 and #2 together. #1 2017-02-24 02:45 Hi, suddenly running into a number of issues:   1) no-arg constructor (error 352) 2 ...

 
forum_thread

Performance and memory usage of queries

Hello, we can't understand why the performance of queries is not the best and the execution requires so much memory. In the implementation of our UnitTests we have used "DELETE FROM Object" to delete the database. That did not work because we often get an "out of memory" exception. What's all done in the execution of queries? Why is so much memory is required, although from the application point of view, no object is loaded. #1 2015-03-10 09:22 Hello, we can't understand why the performance of queries is not the best and the execution requires ...

 
issue

[ObjectDB 2.6.9] Unexpected exception (Error 990)

[2017-03-29 14:04:44 #1 client] [ObjectDB 2.6.9] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_121 (on Windows 8.1 6.3). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: null com.objectdb.o.InternalException at com.objectdb.o.BYR.o(BYR.java:113) at com.objectdb.o.BYR.w(BYR.java:206) at com.objectdb.o.VUT.j(VUT.java:350) at com.objectdb.o.RST.C(RST.java:194) at com.objectdb.o.RTT.l(RTT.java:134) Bug Version: 2.5.6 Priority: High Status: Duplicate Replies: 6 Type:  Bug ...