About READ

manual

Locking in JPA

Explains how to use optimistic locking and pessimistic locking in JPA.... pessimistic lock modes are: PESSIMISTIC_READ LockModeType.PESSIMISTIC_READ enum constant Pessimistic read lock. See JavaDoc Reference ...

 
forum_thread

Error in reading Enum in JPA - Failed to read using reflection

I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE). When an entity User is created, everything looks OK and I have seen on explorer that User is created as expected with valid values of Status. This is all done with JPA/EJBs. However, at the time of reading the Object (findById), the system throws an error  com.objectdb.o.UserException: Failed to read the value of field com.xxx.User.status using reflection caused by.. ... com.objectdb.o.UserException: Failed to read the value of field com.xxx.User.status using reflection caused ... Reply Please read carefully the posting instructions - before posting to ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid ... (web app), I create the readings in one call and I try to read them in another call. I checked the database and all the entities are ... (web app), I create the readings in one call and I try to read them in another call. What happens when you do that in the same ...

 
forum_thread

Failed to read DB file while online backup is running

Hi, it happened already few times (seemingly randomly), that some db operation (read and also write) failed with an exception during an online backup of the same DB file was running and was close to finish its task. The version of ObjectDB I am running is 2.6.1.b02 Any idea what is causing this and how to avoid it ?   Stacktrace 1: ... few times (seemingly randomly), that some db operation (read and also write) failed with an exception during an online backup of the ... by: com.objectdb.o._JdoUserException: Failed to read from file ... by: com.objectdb.o._JdoUserException: Failed to read from file ...

 
forum_thread

Failing to read entities under load in multithreaded tests

Hi, We are experiencing an issue in our application that only occurs under load - we sometimes fail to read entities from the database. ... that only occurs under load - we sometimes fail to read entities from the database. I've isolated this ... in multithreaded application it sometimes fails to read them from the DB with "No matching results for a unique query" error. ...

 
forum_thread

Intermittent Exception "Attempt to update types in read only mode"

I have a master/slave(s) setup and I am finding on the slaves that the slave client will get this message when trying to establish an EntityManager to the slave: ... to update types in read only mode (error 614) at ... com.objectdb.o.UserException: Attempt to update types in read only mode at com.objectdb.o.MSG.d(MSG.java:61) at ... Reply Please read carefully the posting instructions - before posting to ...

 
issue

Exception Failed to read from file

Hello, we have found several these exceptions in our log ... 2.5.0_06] javax.persistence.PersistenceException Failed to read from file 'C:\SafeQORS\server\cache\MainORSCache.odb' (error ... by: com.objectdb.o.UserException: Failed to read from file 'C:\SafeQORS\server\cache\MainORSCache.odb' at ... Reply Please read carefully the posting instructions - before posting to ...

 
forum_thread

Puzzler: Not getting cascades on read from Spring context

I've determined that the database is correctly initialized, looking at it from the Object Explorer, I can run the code that loads the database in a Junit test and it's initializing the children objects correctly, but in the application running in Jetty with Spring, fetching is not cascading. My best guess is that perhaps I have something misconfigured in my persistence.xml or my context.    -dh ... work by default for detached objects. Please read see this issue  and as a workaround you may try setting ... Reply Please read carefully the posting instructions - before posting to ...

 
forum_thread

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: ... com.objectdb.o.UserException Message: Failed to read the value of field field Character.stats using reflection Stack ... Reply Please read carefully the posting instructions - before posting to ...

 
forum_thread

Error reading UTF string

Good day, I have many errors like this, when try to use java.util.UUID as string in querys. ... Reply Please read carefully the posting instructions - before posting to ...