About long

forum_thread

Exception on creation when running multithreaded

Hi, I'm trying to test the creation of an object from my datamodel(Organisation) and the creation process includes the creation of an acl for the newly created organisation all in the same transaction. The process is as followed: 1. The organisation gets created 2. The acl is being searched to check if it already exists 3. if it exists it will be updated, otherwise it will be created   ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
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! ... public void com.mirq.controller.UserC.findUser(java.lang.Long) WARNING:   javax.ejb.TransactionRolledbackLocalException: ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ...

 
forum_thread

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org.sportscoring.ssv.xc.core.XCCompetitorCount cannot be cast to org.sportscoring.ssv.xc.core.XCCompetitorCount ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
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.     ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
issue

Database access error , Doctor hanging on trying to repair, production shutdown at our biggest customer

we have a database shutdown, logs are showing: [2017-07-10 21:07:23 #1 store] Database 'F:\Hummingbird\Objectdb\db\coreSystemDb.odb' is opened by 11028@wzbhb101 [2017-07-10 21:07:23 #2 server] Server on port 3333 has started by 11028@wzbhb101 [2017-07-14 07:08:38 #3 store] SectionClassifier: SectionClassifier{2->merger[2699]-missing:1} [2017-07-14 07:09:08 #4 store] SectionClassifier: SectionClassifier{2->merger[2699]-missing:1} ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
issue

Issue with DISTINCT Select

It is getting more and more frustrating :( We've introduced distinct select instead of regular selection in our code (no changes else) and suddenly receive invalid identifiers in queries exceptions in various queries. Here's the stacktrace: ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
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: ... Unfortunately this meant I could let it run for long enough to confirm the blocking issue is resolved. ... Use numbers if possible. Even a composite primary key of 2 long values could be faster than a string (but that should be checked). ...

 
issue

ObjectDB can't be activated

Hello, we are trying to activate objectdb on a virutalized debian 7 server, but do not have any success. Steps we made to activate the server: ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...

 
issue

Use temporary files to enable very large transactions

We have transactions in which many objects are created. These objects are no longer needed in the current transaction after creation. Unfortunately, we will receive an OutOfMemory exception because the objects are kept in the first level cache of ObjectDB. In the forum thread http://www.objectdb.com/database/forum/921 on post #4 you wrote, that ObjectDB should support very large transactions in further version. Can you implement it that ObjectDB used temporary files? ... Regarding a new maximum for transaction size. In the long term we will be able to eliminate any practical limit (although the ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ...

 
forum_thread

Cast exception?

Somehow I am unable to persist an entity class I wrote with manual @Id. I have a small Player class and I wish to store it with user ID as the primary key. So I declared the (only) primary key field as: @Id public int uid; This is how I'm persisting the instance: ... overflow of published source code examples by breaking long lines . You may mark in paragraph code words (e.g. class ... (can be applied by ctrl + D). Long stack traces (> 50 lines) and complex source examples (> 100 lines) ...