ObjectDB Database Search

51-100 of 200 results

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

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

EM close causes an exception

, do you know why? Caused by: com.objectdb.o._PersistenceException: Failed to read from file '/tmp ... .objectdb.o.UserException: Failed to read from file '/tmp/objectdb_2306457094224783100/pages0.dat ... .lang.RuntimeException: Failed to read from file '/tmp/objectdb_9120972825587144595/pages0.dat' '/tmp

Lock prevents PersistenceManager.close when retainValues = false

.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream. read (SocketInputStream.java:171) at java.net.SocketInputStream. read (SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream. read (BufferedInputStream.java:265

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

Failover from Master to Slave

Garris Hi! You can read more about this here:  https://www.objectdb.com/java/jpa/tool/replication The disadvantage is that slaves can be used just for reading . zmirc Mircea Chirac Hi Z, Thank you for the response. I did read the article about replication which helps with scaling reads

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

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

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

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 ... Support I read this before: "Note: In applications that use optimistic locking - it is acceptable

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

ODB should auto-restart if it detects it's necessary

to read the value of field field xxx.xxx.entity.p2.ExerciseSetResult.rest using reflection at com.objectdb ... .objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686) at xxx.xxx.extra.ReadWorkoutPlan. read ... . read (ReadWorkoutPlan.java:36) This gave a big headache, and we couldn't get rid

Create simple index for a Id field

fast inserting the elements, but when it comes to read seems like the performance falls. I can understand that reading is a complex task, because you first have to lookup and then retrieve the object ... to perform massive reads ? ksii13 E ObjectDB is faster than other DBMS, not just in writing but also in

Performance Questions...

): Q1: If my whole database is read only, is there a way to exploit this and optimize query ... AlAwad When your database is read only it might be easier to share the same EntityManager by ... . But otherwise read only databases are not faster. Future versions of ObjectDB might share an L1 cache

Occasionally slow requests in load testing

a high load - around 25000 calls to the db per minute. This includes variety of read and update ... because of reading ). The max heap size of the process is set to 8GB and it never goes ... become slower when the disk is busy (including if the disk is busy because of reading ). The number of read

ClassCastException of same object type

when using the csv reading storage classes. I am now trying to abstract the data storage so that different types of storage are possible in order to allow previous data to still be read from csv files ... rather than the plugin classes? cmahony Craig Mahony I have been reading some of the threads in

EntityManagerFactory objects being locked during EntityManager creation

)         at java.net.SocketInputStream. read (SocketInputStream.java:171)         at java.net.SocketInputStream. read (SocketInputStream.java:141)     ... ; at java.io.BufferedInputStream. read (BufferedInputStream.java:345)        

General Performance Issues Illustrated with a Specific Method

the Explorer)? support Support I don't think you even bothered to even read my pos before replying. In ... ) may be the issue. I think there is an issue with the configuration. Can you please advice after reading ... are properly indexed. MOH-SL Ministry of Health Sri Lanka  I don't think you even bothered to even read

objectdb got hang after fetch some record.

(SocketInputStream.java:116) java.net.SocketInputStream. read (SocketInputStream.java:171) java.net.SocketInputStream. read (SocketInputStream.java:141) java.io.BufferedInputStream.fill(BufferedInputStream ... . read (BufferedInputStream.java:345) - locked java.io.BufferedInputStream@294f1aa com.objectdb.o.NTS.n

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 ... , how to define a priory order for visiting a slave than a master? For the reading balance, one may want

Broken @ManyToOne reference

reference written: testobjectdb.Parent@e425743 Parent reference read back: null Regards, Vladimir ... : testobjectdb.Parent@76a9b9c Parent reference read back: testobjectdb.Parent@6ab30913   ... returned: Parent reference written: testobjectdb.Parent@20873723 Parent reference read back: objectdb

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

. At the moment I am trying to read in data written previously with JDO. As I am testing many frameworks ... start reading the data the error occurs. For finding the error I even tried using ... with other technologies using  persistence.xml as well, these file were somehow read in as well (even if they were in

Query for objects persisted within the same transaction

I have a question concerning reading uncommited entities with query, within active transaction. For example, I read data from file. Each line contains value of one of entity's attributes ... duplicates, after reading every line I first check using a query, if an entity with that attribute

EnumConstRef jakarta.persistence.CacheStoreMode.REFRESH

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: JPA 2.0

EnumConstRef jakarta.persistence.CacheStoreMode.USE

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: JPA 2.0

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

AnnotationRef jakarta.persistence.Version

, that is, if the version or timestamp held in the database changes between reading the state of an entity

EnumConstRef jakarta.persistence.CacheRetrieveMode.USE

JPA Enum Constant in jakarta.persistence.CacheRetrieveMode USE Read entity data from the cache: this is the default behavior. Since: JPA 2.0

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

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

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

/ticket/305) If you are the person who handled this issue but have not read or dealt with that support ticket above, please read it, it is important to understand. It seems with ObjectDB I ... . Note also and please read (and please read external links) if have not already the forum posting

Blocked by find

rbccm.digest.workflow.serialisation.WorkflowSerialiser. read (Unknown Source) rbccm.digest.workflow ... :662) I'm not sure how to read this but it looks like objectdb is blocked in the commit ... .workflow.serialisation.WorkflowSerialiser. read (Unknown Source) at rbccm.digest.workflow

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

of office building data corresponding to ownedElements-owner.   webel Dr Darren Kelly Please read ... you use extended scope EntityManager (have you read #4?). This is not something that ObjectDB or any ... /what-is-the-preferred-design-pattern-for-combining-jpa-ejb-and-jsf-managed-beans Have read : can you please provide (I

Freeze during save

) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream. read (SocketInputStream.java:171) at java.net.SocketInputStream. read (SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream. read

Add Type level permissions to ObjectDB Server

such entity class could be either accessible for READ or for both READ and WRITE. More ideas and feedback ... might be to look at it in terms of CRUD as opposed to READ /WRITE. ThreaT Ashton Hogan