About ORDER BY

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 ...

 
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

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

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, ...

 
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

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 ...

 
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 ...

 
issue

Incorrect entity returned by query

Hello, during the analysis of a bug in our program we found an issue with a query that does not return the expected entity. We have attached the corresponding database. The query is: SELECT dep FROM UsedInDependency AS dep WHERE dep.sheet.uid == '317j' AND dep.source.row.q + dep.source.row.offsetEntry.offset >= 1 AND dep.source.row.q + dep.source.row.offsetEntry.offset <= 1 AND dep.target.row.q + dep.target.row.offsetEntry.offset > 1   ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph code words ... names) with the code style (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex ...

 
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

Extending model by "common entity"

Hi, I have a question about extending working model with one, common entity, that all other entities will inherit from. For example I have 2 different entities in database with some data:... [na:1.6.0_22] Caused by: java.lang.ClassNotFoundException: pl.hplxtool.model.BaseEntity at ... This schema change should be handled by ObjectDB - so the exception is unexpected. Maybe you have to restart the server (I see that the stack trace is generated by the server). If it doesn't help - please post (or submit in a support ...