About ObjectDB

forum_thread

Fetching Collections Puzzle

I am working on a project where I need to travel through a massive graph of objects. One of the main entity is the Node which is shown below. class Node { Node parent List<Node> children Node rightSibling Node leftSibling int rank } I have the following issues/doubts ... work. I also tried DB4O but it leaves a lot to be wanted. ObjectDB was a pleasant surprise until I got stuck with this problem. I would ... field is expected to hold a proxy list  (e.g. objectdb.java.util.ArrayList , which extends java.util.ArrayList) . ...

 
issue

Unexpected Exception during commit

I'm testing code that otherwise has been working with a clean database. I have seen several examples of the following exception. It never seems to happen in the same place twice, though. If you can give me a hint as to what would internally cause this, I'll try to reproduce it. Carl   ... try to reproduce it. Carl   [ObjectDB 2.2.9_01] javax.persistence.RollbackException Failed to commit ... Unexpected internal exception (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) at ... at java.lang.Thread.run(Thread.java:662) Caused by: com.objectdb.o.InternalException: Unexpected internal exception at ...

 
issue

Read only hint for query

Second thing after @FetchGroup I've found is read-only hint for EM. You can specify this hint to EM when executing query meaning that returned data will never be edited or persisted. My understanding of this is that each entity returned from query is in detached state as default state. query.setHint("odb.read-only", "true"); This could be useful in situation when you are sure, that you won't modify those entities - like listing entities, paging, logging, reporting. ... posting instructions - before posting to the ObjectDB website. You may have to ...

 
issue

NullPointerException on initial database creation

I'm getting the following exception on initial creation of a database.  There's no indication as to what's wrong and there's nothing in the log.   ... there's nothing in the log.   com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.SCO.b(SCO.java:209) at com.objectdb.o.NTS.z(NTS.java:286) at com.objectdb.o.CLS.S(CLS.java:335) at ...

 
forum_thread

Possible issue with timestamps

Hi, If I query doing something like: select c from CDI c where c.creationDate > {ts '2012-03-29 11:00:00} and c.creationDate < {ts '2012-03-29 12:00:00'} the test fails. Its ONLY for 12:00:00. When I started digging I found that if I queried 00:00:00 to 00:25:00 and then did 12:00:00 to 12:25:00 I got IDENTICAL results. For some reason 12:00:00 is being treated the same as 00:00:00. All other hours seem to be fine. ... a testcase. Paul. objectdb_example.zip edit ... Persistence . createEntityManagerFactory ( "objectdb:$objectdb/db/test.tmp;drop" ) ; EntityManager ...

 
forum_thread

Glassfish 4 AbstractMethodError: com.objectdb.jpa.EMF.createEntityManager

Hi! I've been trying to get Glassfish 4 (Java EE 7) work with ObjectDB the whole day. It seems to be an error. The same code (adapted to Java EE 6) works perfect in Glassfish 3.1.2.2. I attached the samples as NetBeans projects, so that you could check easier. 1 for GF3 (6) and 1 for GF4 (7). Thanks! ... been trying to get Glassfish 4 (Java EE 7) work with ObjectDB the whole day. It seems to be an error. The same code (adapted to Java ...

 
issue

ArrayIndexOutOfBounds on showing Tree Window

... from the Schema in ObjectDB Explorer in version 2.6.5_04 I get then the following exception (plenty of them). ... ... from the Schema in ObjectDB Explorer in version 2.6.5_04 I get then the following ... java.lang.ArrayIndexOutOfBoundsException: -1 at com.objectdb.o.PEI.al(PEI.java:341) at com.objectdb.o.PEI.x(PEI.java:140) at com.objectdb.o.PEI.ac(PEI.java:121) at ...

 
forum_thread

2.5.3_02: java.lang.UnsupportedOperationException

Hello! I use Glassfish 4.0.0 and ObjectDB 2.5.3_02. When I do entityManager.createQuery I get an exception: ... Hello! I use Glassfish 4.0.0 and ObjectDB 2.5.3_02. When I do entityManager.createQuery I get an ... java.lang.UnsupportedOperationException at com.objectdb.jpa.EMF.createEntityManager(EMF.java:517) at ... Glassfish 4.0 is based on JPA 2.1. Build 2.5.3_02 of ObjectDB added initial dummy implementation of the new JPA 2.1 methods, ...

 
issue

NullpointerException at a normal select

When I run the following code: EntityManager em = getEm(); Customer result = null; try {     logger.debug("Ident: "+ident);     result = em.createQuery("Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident).getSingleResult(); } catch (javax.persistence.NoResultException nre) { } finally {      em.close(); } I get the following error (you can also see the log message containing the String parameter at the top): ... in context with path [/ContentSite] threw exception [ObjectDB 2.5.6_02] Unexpected exception (Error 990) Generated by Java ... Mac OS X 10.9.5). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: ...

 
issue

Enable intern() for Retrieved Strings

Implement a setting, where the developer can specify which Strings should be loaded via the String.intern() function. Hint for this enhancement: When loading a large list of persons, the persons first names are many time the same ones (here it is Martin, Michael, Thomas, ...). Instead of instantiating every first name with a new String, the user should be able to specify that this field should be loaded via String.intern() (with all its advantages and disadvantages). ... posting instructions - before posting to the ObjectDB website. You may have to ...