ObjectDB Database Search

51-100 of 200 results

WORM (Write once read many) support

WORM (Write once read many) support

Internal ObjectDB error by read the primary key

Internal ObjectDB error by read the primary key

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal ... . But you can disable optimistic locking in the server configuration .   support Support read the documentation ... - since someone can change the object just after the refresh . In that case - use pessimistic locks. support

Optimistic locking: prevent version increment on entity collection attribute

create the readings in one call and I try to read them in another call. I checked the database and all the entities are created (document and readings ) but when I try to get the collection of readings null is returned. I have tried to clear the entity manager in the second call to make sure the reading

jakarta.persistence.LockTimeoutException

the persistence provider when a pessimistic locking conflict occurs that does not result in

jakarta.persistence.EntityNotFoundException

no longer exists in the database. Thrown when EntityManager.lock is used with pessimistic locking is used

Optimistic lock failed for object

pessimistic locking only? I've tried various xml configurations, and also various transaction ... , 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

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects ... .getSelectedValue(),       LockModeType. PESSIMISTIC _WRITE); . . } //doEdit ... , LockModeType. PESSIMISTIC _WRITE);         System.out.println

OptimisticLockException

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

Optimistic locking failure

and roll back. T1 T2 ---------------------------------------------------------- READ (A) version=1 value=0 | READ (B) version=1 value=0 | | READ (A) version=1 value=0 | READ (B) version=1 value=0 | B ... Thread[Thread-2,5,main] READ   A1 version=1 value=0 Thread[Thread-2,5,main] READ   B2 version=1

jakarta.persistence.PessimisticLockScope.NORMAL

Jakarta Persistence (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

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

UTF Error

.InternalException: Error reading UTF string at com.objectdb.o.BYR.U(BYR.java:1217) at com.objectdb.o.BYR.U(BYR.java ... ) WARNING: javax.ejb.EJBException: Error reading UTF string at com.sun.ejb.containers ... .run(Thread.java:829) Caused by: com.objectdb.o.InternalException: Error reading UTF string at com

Database size is much larger than expected (x2)

.URIReader. read (URIReader.java:84)         at image.URIReader.main ... 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) at image.URIReader. read (URIReader.java:82 ... Your code contains file reading operations that are not related to ObjectDB and may cause the problem

jakarta.persistence.CacheStoreMode.USE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheStoreMode USE Insert entity data into cache when read from database and insert/update entity data when written to the database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CacheStoreMode.REFRESH

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheStoreMode REFRESH Insert/update entity data held in the cache when read from the database and when written to the database. Force refresh of cache for items read from database. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Version

in the database changes between reading the state of an entity instance and attempting to update or

Replicated cluster recovery

Currently the slave servers are limited to read only (it is indicated at the beginning of the page ... and read to any node (and maybe such a solution will be included in a future version of ObjectDB ... that when master goes down application can only reads data? And the second question: on which level

SSL cannot connect from client StackOverflow error

option, which I missed on java client side? I read https://www.objectdb.com/java/jpa/setting/ssl ... /sun.nio.ch.SocketDispatcher.read0(Native Method) at java.base/sun.nio.ch.SocketDispatcher. read ... .implRead(NioSocketImpl.java:309) at java.base/sun.nio.ch.NioSocketImpl. read (NioSocketImpl.java:350

ObjectDB CRUD Examples

Would this be correct?     public List read () { EntityManagerFactory emf ... . support Support The only way to do this one:   public List read () {} Is by using a Query? i.e ... you lines of code. support Support Would this be correct?     public List read

Failed to resize file - file system limitation error

. com.objectdb.o.UserException: Failed to read from file 'C:\Users\CMOORE~1\AppDat a\Local\Temp ... to read from file 'C:\Users\CMOORE~1\AppData\Local\Temp\ objectdb_3126483439234298180\DoctorSection ... is locked for reading Try it a again also when the file is locked for reading /writing. These checks

unable to update table in slave server database

to commit transaction: Attempt to commit a transaction in read only mode[ObjectDB 2.8.2] javax.persistence.RollbackException Failed to commit transaction: Attempt to commit a transaction in read ... ! objdbuser In ObjectDB clusters slave databases are read only (see this documentation page

Setting temp directory location in ObjectDB

.class.getClassLoader()); I read in the ObjectDB website that we can change the temp directory using ... ;system property or ..... I m using fileName.odb file to store the objects and reading objects from ... am using objectDb 1.x. i am able to set the temp folder path. When i try to read the odb.file

Optimistic lock failed

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

Some technical questions

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

zip file or JAR manifest missing

/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. Exception in ... EntityManager em = SingleManager.getEntityManager(); public void read (){   int iCnt = 10;   ... ");   SingleManager.clearDB("URI");   new PageTest(). read (); } } the version 2.2.8_6 can not

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

Query only works correctly when debug printing results

I came across a very weird behaviour i cant explain. When trying to read from a local DB (file on pc) the query results are only fully read back when debug printing the result contents before ... part commented out, the result doesnt contain all the data. The field requirementList is read back as null

Unable to execute update query

to do it: [ObjectDB 2.6.5_04] javax.persistence.PersistenceException Failed to read from file '/tmp/objectdb ... .EventDispatchThread.run(EventDispatchThread.java:82) Caused by: com.objectdb.o.UserException: Failed to read from ... (JpaQuery.java:779) ... 39 more [ObjectDB 2.6.5_04] javax.persistence.PersistenceException Failed to read

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

jakarta.persistence.CacheRetrieveMode.USE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CacheRetrieveMode USE Read entity data from the cache: this is the default behavior. Since: Jakarta Persistence (JPA) 1.0

Replaying recorded requests...

it? Another possibility is that your configuration file is not read - you can check it by putting invalid ... is that your configuration file is not read - you can check it by putting invalid content in the configuration ... not being read -  I mangled the tag and get the same behavior, with no exceptions

problem with lazy loading - unittest project attached

4 requests 1. save entity 2. read an existing entity, add onetomany relation 3. read an existing entity, add another onetomany relation 4. read entity, get relations. i have the feeling this is not ... me to call entityManager.getTransaction().begin()/commit() and i also can not set the isolation to READ

Mismatch client-server protocol prefix

for more than one request, failure to read a full request by the server can cause next requests to fail ... multiple times during the day: com.objectdb.o.InternalException: Error reading UTF string    ... issues about getting this exception in other cases. The "Error reading UTF string" exception

virtual servers and one file

disk storage consists of a RAID5 of 4x 2TB SAS-SSDs and brings a write and read performance of 4 ... JVM heap size is 8GB the process should be able to use 16GB. If you see I/O READ operations ... read activity when the system is warm - you shouldn't if the entire database is cached

NullPointerException in ENH.g(ENH.java:401)

.handleOrphans(Entity.java:170) This happens when I try to read a @OneToMany list collection ... Ritter doppelrittberger Markus Ritter The stack trace indicates an unexpected object type on reading ... to read could be read before without any issues so it seems that the database file gets corrupted

best practice for DB recovery

and have a number of applications connecting to it. I realize that I'm able to stand up read only replications and add them to my persistence unit but being able to read and not write is a condition that can't last ... layer). If after reading the other thread you have a clear picture of how you think ObjectDB

Best practise loading big data

. One is to stupidly commit the transaction after a certain number of read accesses (every 10000 read access ... updates to the database or it is read only. If it is a read only operation, do you really need commit ... for posting questionable code snippets. I have repaired it. In this scenario the data is only read

ObjectDB 2 JDO Manual

however, married to JDO, although I think it's good. Its lack of true (before commit) pessimistic locking ... (above). I've also since starting with JDO, a couple of weeks ago, read most of the ObjectDB JPA

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

Server out of memory exceptions

.socketRead0(Native Method) at java.net.SocketInputStream. read (SocketInputStream.java:129) at java ... (BufferedInputStream.java:256) at java.io.BufferedInputStream. read (BufferedInputStream.java:313) at com ... . The message size going into the queue is not large - around 4k at most. Each read /write operation

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

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.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.

Page cache File handling produced an java.io.IOException: Negative seek offset

  The Exception: Failed to read from file 'C:\Users\DEVELO~1\AppData\Local\Temp\objectdb ... .PersistenceException Failed to read from file 'C:\Users\DEVELO~1\AppData\Local\Temp\objectdb ... : com.objectdb.o.UserException: Failed to read from file 'C:\Users\DEVELO~1\AppData\Local\Temp\objectdb

Error in production. Failed to commit transaction: Unexpected database state: BTree -152 is not found

. Read .doGet (115 ): Failed to commit transaction: Unexpected database state: BTree -152 is not found ... ) at cl.intelidata.servlet. Read .actualizaLectura( Read .java:143) at cl.intelidata.servlet. Read .doGet( Read

Can't open replicated database

for a query (just read , no update) but it fails with the error below. The code I'm using is (user & password ... is: [ObjectDB 2.2.8] javax.persistence.PersistenceException Attempt to update types in read ... to update types in read only mode at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.SHN.ab(SHN