ObjectDB Database Search

51-100 of 200 results

OptimisticLockException

- since someone can change the object just after the refresh . In that case - use pessimistic locks. support ... - since someone can change the object just after the refresh. In that case - use pessimistic locks ... , so that doesn't help me. Pessimistic locks might not help either, given #3 above, ie: it seems like

Optimistic lock failed for object

, that setting is for optimistic locking. My question was about pessimistic locking (specifically, pessimistic write locking). Your documentation seems unclear about that.   dmoshal David Moshal ... pessimistic locking only? I've tried various xml configurations, and also various transaction

"Attempt to lock a non entity object" error

.getSelectedValue(),       LockModeType. PESSIMISTIC _ WRITE ); . . } //doEdit ... , LockModeType. PESSIMISTIC _ WRITE );         System.out.println ... ;      em.lock(p, LockModeType. PESSIMISTIC _ WRITE );     

Occasionally slow requests in load testing

the next build an option to disable this zero writing in order to see if it helps. If we disable ... .RandomAccessFile:writeBytes, which takes up to 10 seconds. I've also noticed a large IO write spike at the same ... that can cause large file writes ? I would estimate the size of actual data in the db file

Database Inconsistency or corruption

. ObjectValue ID:=100, TYPE:=Person, REVISION:=0, isPersisted:=true, LockMode:= PESSIMISTIC _ WRITE ... . ObjectValue ID:=100, TYPE:=Person, REVISION:=2, isPersisted:=true, LockMode:= PESSIMISTIC _ WRITE

Pessimestic Locking doesn't release when application unexpectedly terminates.

; support Support A possible solution (which is currently not implemented) is to use pessimistic locking ... want to use Pessimistic Lock as a way of enforcing a cluster wide singleton of services, a pessimistic ... adds automatic release of pessimistic locks on client-server disconnection. The locks

Optimistic locking failure

= A + B + 20 | WRITE (B) version=2 value=20 A = A + B + 10 | WRITE (A) version=2 value=10 ...   Thanks. eurojet P. F. Martinez Please explain the test output: Sequential=true Lock= WRITE ... value=0 Thread[Thread-2,5,main] WRITE A1 version=2 value=10 Thread[Thread-3,5,main] READ  A1

Error 363 - Failed to read value of inverse relationship

: [ObjectDB 2.2.8_01] javax.persistence.PersistenceException Failed to write the value of field property edu ... : Failed to write the value of field property edu.um.fcsit.jpa.entity.Guest.phoneList using enhanced ... Failed to write the value of field field org.dyndns.fzoli.mill.server.model.entity.Player

OptimisticLockException

. Also have the Explorer open Questions: a) what is it about? b) is there a setting for pessimistic mode? In my app ... guess I should read doco more. I ran into the same error from a pessimistically locked entity (global ... on pessimistically tracked entity.   Modified conf file, and got the test case working perfectly.  

Master database switching to read-only mode, possibly caused by slave failure

:25:43 - MASTER instance stopped responding to write requests. All requests sent to the database ... (Unknown Source) The reading continued to work and there was nothing in the server DB logs. All write ... are executed and WRITE requests are rejected. Maybe even the high GC on the slave is the result

best practice for DB recovery

and add them to my persistence unit but being able to read and not write is a condition that can't last ... have two(or more) entity managers in my DAO layer and write all changes to both instances(may have IDs synchronization issues), if one of the instances is not available, I'll keep writing to the instance

Some technical questions

? Yes, if it has not been locked with pessimistic WRITE . , and will it see the old attribute? Yes

TypedQuery.getResultStream() - JPA Method

PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException

InterfaceRef jakarta.persistence.StoredProcedureQuery

PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException

Query.getSingleResultOrNull() - JPA Method

context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails

TypedQuery.getSingleResultOrNull() - JPA Method

- if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking

javax.persistence.LockTimeoutException

Is it possible to change a LockTimeout for  pessimistic  lock? glaz Alexandr Kurucin Currently ObjectDB throws a LockTimeoutException immediately when a pessimistic lock cannot be granted. Future versions will support timeout setting. You may fill a feature request to increase the priority of this feature.   support Support

Setting temp directory location in ObjectDB

to write to the parent directory. support Support can you please elaborate what exactly "Try running ObjectDB in a process with no permission to write to the parent directory". I did not undertand ... how to do this. And if write permission permission is blocked for the parent folder, won't ObjectDB locking method

OneToMany and cascade delete problem

to write the value of field field com.objectdb.test.bug.forum.T501$Store.offers using reflection ... ) Caused by: com.objectdb.error.UserException: Failed to write the value of field field com.objectdb.test ... .type.user.UserMember. write (UserMember.java:544) at com.objectdb.type.user.UserMemberList. write

Improvement in replication

do only few writes (mostly reads), but those writes are important for us - objects rating, profile modifications ... and all writes fails. I was thinking about special version of one master / one slave only cluster ... yet, and therefore, if the slave accepts write operations they may be based on a state, which is not the most up to date

using DbUnit with ObjectDb

doesn't support JDBC connections and the only way to load data is by using JPA or JDO, i.e. by writing ... with JAXB, so writing lists of entities to xml file should be easy - a generic mechanism to read / unmarshall those files into lists of entities for writing to database may be more ObjectDB / JPA centric

Which storage fits best to ObjectDB?

is reading/ writing the files. The tests are showing that the HW RAID5/6 of HDDs deliver comparable ... files, so in fact it means sequential reads/ writes . If it is tested on small files the speed is getting ... ObjectDB read/ write the DB files by large chunks and then it parses it within the RAM (so it would mean

use of Singleton into tomcat

hi all. i would write a class singleton that encapsulate the entitymanagerFACTORY    ... multiple servlet. but into the class singleton i would write a set of method for the operation ... for update, write . read , create Users it to be syncornized into signature or with the word syncornized

Replication Question

availability and fault tolerance? Unless the application is read only and no write , as long as ... ; So basically both read and write will always be going to the master and the load ... , not even read load) - Not for Read+ Write failover?   Thank you. Trianglehead Json Error Not

ObjectDB Clustering VS Hadoop Hbase

, in which WRITE requests are served by one master server and READ requests can be served by ... data is divided between nodes. All the servers handle WRITE requests and READ requests of data ... for one server and when there is a need for more than one server to handle WRITE requests. support

Database size is much larger than expected (x2)

to commit transaction: Failed to write the value of field field image.URI.baURI using reflection (error ... .objectdb.o.UserException: Failed to write the value of field field image.URI.baURI using reflection ... : Failed to write the value of field field image.URI.baURI using reflection at com.objectdb.o.MSG.d(MSG

Too many persistable types (>10) - exceeds evaluation limit

.entities.instance.ProjectSnapshot smuessemeier Stefan Müssemeier Maybe you are writing to a database ... of the writing . But the writing is ok. Everything is written correctly as far as I can tell. When I ... only one persistence unit and writing without the added ;drop in the connectionURL. Still the error occurs

Failover from Master to Slave

down the application will still be able to read from the slaves but writes will not be allowed ... cart because that would require a database write . If the master is down for even an hour ... marker so it decides to write to A. Well there you go .. you have a high probability of database

EnumConstRef jakarta.persistence.PessimisticLockScope.NORMAL

JPA Enum Constant in jakarta.persistence.PessimisticLockScope NORMAL This value defines the default behavior for pessimistic locking. The persistence provider must lock the database row(s) that correspond to the non-collection-valued persistent state of that instance. If a joined inheritance

ClassRef jakarta.persistence.EntityNotFoundException

when EntityManager.lock is used with pessimistic locking is used and the entity no longer exists in

ClassRef jakarta.persistence.LockTimeoutException

JPA Exception LockTimeoutException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  java.lang.RuntimeException ∟  jakarta.persistence.PersistenceException ∟  jakarta.persistence.LockTimeoutException Thrown by the persistence provider when a pessimistic

ClassRef jakarta.persistence.PessimisticLockException

when a pessimistic locking conflict occurs. This exception may be thrown as part of an API call, a flush or

ClassRef jakarta.persistence.PersistenceConfiguration

. Since: JPA 3.2 JDBC_USER Username for JDBC authentication. Since: JPA 3.2 LOCK_TIMEOUT Default pessimistic

FieldRef jakarta.persistence.PersistenceConfiguration.LOCK_TIMEOUT

JPA Static Field in jakarta.persistence.PersistenceConfiguration LOCK_TIMEOUT Default pessimistic lock timeout hint. Since: JPA 3.2

Optimistic lock failed

pessimistic exceptions, but it is more efficient to remain with optimistic locking (which is the default

EntityTransaction.commit() - JPA Method

JPA Method in jakarta.persistence.EntityTransaction void commit () Commit the current resource transaction, writing any unflushed changes to the database. Throws: IllegalStateException - if {@link #isActive()} is false RollbackException - if the commit fails Since: JPA 1.0

InterfaceRef jakarta.persistence.EntityTransaction

()} is true Since: JPA 1.0 void commit () Commit the current resource transaction, writing any unflushed

InternalException during producer/consumer scenario

and LockMode set to PESSIMISTIC _ WRITE . This results in the exceptions below. Could you advise on the errors

ObjectDB 2 JDO Manual

The new ObjectDB Manual describes how to use ObjectDB 2 with JPA. An additional manual that focuses on using ObjectDB 2 with JDO can help JDO users. But since writing a new manual ... however, married to JDO, although I think it's good. Its lack of true (before commit) pessimistic locking

Server out of memory exceptions

. The message size going into the queue is not large - around 4k at most. Each read/ write operation ... for each database) and 2 reader threads (1 for each database). Each thread should read or write 10 msgs ... might have actually replicated it now... The attached test (testObjectDbPipe) has 10 threads which write msgs

ObjectDB 2.2.4

Added support of JPA UPDATE and DELETE queries ( issue #12 ). Added support of pessimistic lock timeout ( javax.persistence.lock.timeout ). Added implementation of the getParameters method. Added exception on pessimistic locking retrieval with no active transaction. Improved support of entity

cannot delete objects after crash (see issue 2283)

of your production OS or disk requires special consideration (e.g. if synchronized writing by ObjectDB to the disk returns before the physical writing is completed and the data is still buffered by the OS / disk ... after writing and flushing the transaction updates to the recovery file (the database file

ArrayIndexOutOfBounds with Critera API and function call

-2.4.4.jar:] at com.objectdb.jpa.criteria.JpqlWriter. write (JpqlWriter.java:94) [objectdb-2.4.4.jar ... :] at com.objectdb.jpa.criteria.JpqlWriter. write (JpqlWriter.java:90) [objectdb-2.4.4.jar:] at com ... .jpa.criteria.JpqlWriter. write (JpqlWriter.java:94) [objectdb-2.4.4.jar:] at com.objectdb.jpa.criteria

Exception when the log file is full and no archive is defined

into when the limit is hit. What would be a preferred action? Stopping writing to the log? Ignoring the limit and continuing writing to same file? Or maybe just improving the error message to indicate that it is writing to a log archive directory that failed? support Support Agreed

ObjectDB 2.6.8

Added JPA XML validation schema files to Maven/JEE objectdb.jar. Added automatic release of pessimistic locks on client-server connection failure. Fixed an OptimisticLockException bug on commit after flushing a removed modified entity object. Fixed a  NullPointerExeption on new index building

NPE at com.objectdb.jpa.JpaQuery.getResultList

O'Hare It seems as a separate issue. Maybe related to pessimistic locking. Can you provide a test

ObjectDB 2.3.2

instead of Long ) and then updated. Fixed retrieval with pessimistic lock to bypass cache and to force refresh.

ObjectDB 2.3.1

UnsupportedOperationException  error message. Fixed a pessimistic lock timeout bug ( issue #520 ). Fixed

ObjectDB 2.2.1

Added support for using ObjectDB with JBoss AS 6.0 / 6.1 . Fixed several bugs in handling eager fetch. Fixed a pessimistic locking bug . Fixed a bug in using primary key fields in queries. Fixed a bug in queries on deleted objects before commit / flush.

ObjectDB 2.8.5

Fixed a bug in using AS in SELECT NEW (breaks some Spring Data JPA queries). Fixed a bug in tracking changes to new collections after flush ( issue #2640 ). Fixed a StackOverflowError on no access permission to objectdb.conf ( issue #2643 ). Fixed a bug in managing pessimistic locks after using