About access

forum_thread

OptimisticLockException

Ran into this error for the first time (after many years of using odb): Caused by: com.objectdb.o._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version 2 instead of 3) Also the first time I'm using odb in C/S mode rather than embedded. Also have the Explorer open Questions: a) what is it about? ... In my app, I don't expect more than one thread to access a database at any one time, and in the rare case that this happens, the ...

 
forum_thread

package.jdo validation error (Connection timed out)

HI, I am trying to read the odb file generated using objectdb 1.0. Using converter.jar, i converered to new objectDB file and then was trying to read the file and i got the following exception. com.objectdb.o._JdoUserException: Failed to validate xml file <somePath>\RTDLogger.jar#package.jdo: Connection timed out: connect NestedThrowables: java.net.ConnectException: Connection timed out: connect #1 2012-05-21 15:37 HI, I am trying to read the odb file generated using objectdb 1.0. Using converter.jar, i converered to n ...

 
forum_thread

Attempt to execute a query using a closed EntityManager

Hi again! Suddenly, my app started to throw this exception. I would really appreciate some advices. #1 2013-06-02 16:40 Hi again! Suddenly, my app started to throw this exception. I would really appreciate some advices. ...

 
forum_thread

Can't get arraylist/vector type attributes

I have a class that contains some attributes of type Vector (also tried with ArrayList and same happens). When I try to get an object from that class doing using the find method it works fine, I get the object. But when I call the close method to close the EntityManager the information from the Vector dissapears and I get an empty vector. ... 2017-03-09 21:04 Access it before closing the EntityManager or load it eagerly ( ...

 
forum_thread

Newbie : How to return the auto-generated ID

Hello, I am new to this community, as well as JPA and ObjectDB. I want to read the auto-generated ID when I persist a new entity (with @Id @GeneratedValue annotations applied). I am following the following link : http://www.objectdb.com/tutorial/jpa/eclipse/web/entity Thanks. ... The id is available in the id field so you can simply access it. By default, however, the allocated value is available only ...

 
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: ... have a simple database which contains one type of Entity. Access is through an application wrapper object with "put" and "get" methods - ... is to provide a data cache for the main application - access is typically a number of persists as a request enters the system, ...

 
api-jdo

PersistenceCapable.READ_OK

If jdoFlags is set to READ_OK, then the fields in the default fetch group can be accessed for read without notifying the StateManager.(Static Field of javax.jdo.spi.PersistenceCapable)

 
issue

ArrayIndexOutOfBoundsException with enhanced Entity

Hi! ... we load a TestEmbed class from the object database and do access the myEmbed property the first time with getMyEmbed() then we get an ...

 
forum_thread

Attempt to begin a new transaction when a transaction is active

The code I have a RecordDao stateless java bean :  ...   From other beans I need concurrent access to the database in order to persist records.  For example ...

 
forum_thread

Understanding Database max-threads objectdb.conf Settings Option

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   In the objectdb.conf file (attached to forum thread mentioned above), I set Database max-threads.  In the documentation, it was not completely clear to me if this setting controlled how many internal threads ObjectDB uses, or if ObjectDB is doing some sort of queue/locking whose depth is determined by this setting (and entries are per thread request). ... a semaphore that limits the number of threads that can access the database file concurrently (queuing additional threads if any). ...