About ORDER BY

forum_thread

A lot of ENT and SIV instances which are not cleared by GC

Hello. I have a JSF application (Glassfish 4, Java 8, ObjectDB 2.6.0). In some time the heap is getting 95% full with java.lang.OutOfMemoryError: GC overhead limit exceeded.  The first screenshot from VisualVM shows used heap during a 1000 requests stress test. The second shows that after this test there are many com.objectdb.o.ENT and com.objectdb.o.SIV instances. Why isn't it cleaned? I use simple EJB managers containing EntityManagers. On bean's PreDestroy and in servlet's i make entityManager.clear(); ... build 2.6.1_01) a bug in cascading detach through mapped by to-many relationships. Please check the new build. If you still get ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ...

 
manual

[ODB1] Chapter 8 - ObjectDB Server

An ObjectDB server can manage one or more databases. Databases that are managed by a server can be accessed by multiple processes simultaneously. In addition, the server supports accessing these databases from remote machines by TCP/IP. More details about client server mode vs. embedded database mode are discussed in Section 1.2.... manage one or more databases. Databases that are managed by a server can be accessed by multiple processes simultaneously. In addition, the server supports ...

 
forum_thread

Connection is closed Caused by: java.io.EOFException

I am getting this exception on a regular basis, after a period of time of repeating the same code execution.  I don't understand why.  I restart the DB server and my code works again for another period of time until same exception is encountered again.  I cannot pin down a pattern e.g. after a certain period of time,  because the time  periods between exceptions are not regular, although frequent.  Any test case  I use will pass most of the time but will fail after an undetermined period. ... but will fail after an undetermined period. Caused by: com.objectdb.o.UserException: Connection is closed at ... ... 39 more Caused by: java.io.EOFException at com.objectdb.o.NTS.z(NTS.java:317) ... EntityManager instances without closing them. By the way, following your report the exception on the client side was changed, ...

 
release

2.6.6

... Fixed a bug in ordering query result by an expression that is used in IN operator. Fixed a bug in ... bugs. Fixed a performance issue with mapped by fetch. Fixed the ObjectDB Maven repository and Maven examples ...

 
issue

Blocked by find

I have a container object which wraps an objectdb database. There is a "putIfAbsent(String id, Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager "find" method. If nothing is returned from the db the passed object is persisted to the db. I have 5 threads which use this method. In a run today one of the threads seems to have got stuck somewhere in the find. The thread dump looks like: ... which is synchronized and attempts to load an object by id using the EntityManager "find" method. If nothing is returned from the db ... owned by: DEV1-WSAgent-1-Existing/3 Total blocked: 190 Total waited: 69 Stack ... BLOCKED on com.objectdb.o.LKM@254e85f4 owned by: ODB-FileWriter Total blocked: 789 Total waited: 616 Stack ...

 
forum_thread

Null returned by Persistence.createEntityManagerFactory

Hi, So I'm currently having an issue where createEntityManagerFactory returns null. When I run the application on the my local machine through Tomcat it works fine, the odb file is created.    ... I get an exception. The exception is ultimately caused by a null pointer on the line "em = emf.createEntityManager()" in ... are occasionally inaccurate. Try to change your code by moving suspected lines to separate methods, etc. ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ...

 
forum_thread

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... ) ; System. out . printf ( "find by retrieval : %s %n" ,tn3. getTa ( ) ) ; System. ... H, e, l, l, o, W, o, r, l, d, 2 ] find by retrieval : H Arrays : [ H, e, l, l, o, W, o, r, l, d, 2 ...

 
forum_thread

Master database switching to read-only mode, possibly caused by slave failure

We had a database failure causing a production outage. Both master and slave databases have failed, slave became unresponsive and the master switched to read-only mode. By the look of it the slave database failed first and possibly caused the master to switch to read-only mode. The sequence of events was: ... unresponsive and the master switched to read-only mode. By the look of it the slave database failed first and possibly caused the ... by: com.objectdb.o.UserException: Connection is closed at ... is closed by 30752@hardhead We did not see anything wrong in the monitoring data ...

 
forum_thread

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results. Is this a known limitation or a bug? Do you have any idea how to solve this problem? ... I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: ... 2.2.4] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_23 (on Windows 7 6.1). Please report ... Sorry about the error message - it should be replaced by a more descriptive error message in future versions. However, this ...