About retrieve

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? #1 2011-04-28 01:37 Ran into this error for the first time (after many years of using odb): Caused by: com.objectdb.o._Opti ...

 
issue

[ObjectDB 2.5.5_03] Unexpected exception (Error 990)

Hello! When I run this query SELECT t FROM Unit t WHERE t.lastGeocodedPosition IS NULL OR t.lastGeocodedPosition.receiveTime < :lastGeocodedPosition.receiveTime I get the following exception: ... you should implement a better exception for trying to retrieve a field of a not set parameter. Thanks for your help ...

 
issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: Bug Version: 2.3.0 Priority: Normal Status: Fixed Replies: 3 Type:  Bug ...

 
forum_thread

ObjectDB's Database Doctor Incorrect Error Report

Am I reading this correctly?  It seems that Doctor is telling me that one of my objects is missing.  Looking at the database with ObjectDB's Database Explorer though seems to show that the reference to the object is good and that the object does indeed exist.   Output from Doctor Diagnose and Doctor Repair is attached.  So are the two databases and screenshots of Explorer showing the reference to the object and the existence of the object. ... Note that even with large 256KB pages you may still retrieve large pages and use only part of them. Page size of 256KB may be more ...

 
api-jpa

javax.persistence.PessimisticLockException

Thrown by the persistence provider when an pessimistic locking conflict occurs.(Exception of JPA)

 
api-jpa

javax.persistence.QueryTimeoutException

Thrown by the persistence provider when a query times out and only the statement is rolled back.(Exception of JPA)

 
api-jpa

javax.persistence.NonUniqueResultException

Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult() is executed on a query and there is more than one result from the query.(Exception of JPA)

 
api-jpa

javax.persistence.TransactionRequiredException

Thrown by the persistence provider when a transaction is required but is not active.(Exception of JPA)

 
api-jpa

javax.persistence.NoResultException

Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult()is executed on a query and there is no result to return.(Exception of JPA)

 
api-jpa

javax.persistence.RollbackException

Thrown by the persistence provider when EntityTransaction.commit() fails.(Exception of JPA)