ObjectDB Database Search
1-50 of 71 resultsClassCastException on closing PersistenceManager the PersistenceManager after reading the DB: java.lang.ClassCastException: com.objectdb.o.ENT ... ; the method on the bottom of the stack trace looks like this: private PersistenceManager persistenceManager ; public void close() { if( ! this. persistenceManager .isClosed()) {   | |
How Should I Configure objectdb.conf to Obtain 256KB Disk IO Requests and Maximize Shared PersistenceManager Entity Cache?.conf to give 256KB disk accesses and use PersistenceManager L1 ref=soft caching and datastore pagefile caching 1 MB (4 256KB sized pages). The goal is to have frequent PersistenceManager L1 | |
Lock prevents PersistenceManager.close when retainValues = false I have code in which a PersistenceManager is obtained, used in several transactions, and then closed. If those transactions involves writes, then the code jams (use of VisualVM shows ... on a list of managed objects that have to be prepared for detachment during a PersistenceManager | |
PersistenceManager.getObjectsById(Collection,boolean) throwing JDOExceptionPersistenceManager.getObjectsById(Collection,boolean) throwing JDOException | |
JDO PersistenceManager.getSequence() returns null sometimes to reproduce: import javax.jdo. PersistenceManager ; import javax.jdo.PersistenceManagerFactory; import ... .setConnectionURL("build/testcase.odb"); PersistenceManager pm = factory.getPersistenceManager(); Sequence seq1 | |
Soft Reference Object Cache Recommendation myself and, upon detecting a full JVM GC, manually evict JdoBlob2s from their relevant PersistenceManager (via persistenceManager .evict(jdoBlob2)). I would have to maintain the list with a LRU ordering ... " entries from PersistenceManager ). So at this point I think ObjectDB Support Personnel could really | |
OutofMemory error with Object DB 2.0 its 1GB.(however, attached the screen shot from the profiler) I have also tried persistenceManager ... ? It may be the result of creating multiple PersistenceManager instances without closing them. support ... PersistenceManager instance (com.objectdb.jdo.PMImp) The application tries to persist records | |
Where Does ObjectDB Block/Lock?. With my PersistenceManager multiThreaded=true architecture, I desire to know where ObjectDB ... when accessing PersistenceManager by multiple threads? 2) Does it lock at PersistenceManager ... single PersistenceManager (multiThreaded=true) makes all my requests sequential | |
Working with a cleared cache attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory ... the cache? try { // Start the transaction m_ persistenceManager .currentTransaction().begin ... ); Query query = m_ persistenceManager .newQuery(getPersistableClass(), jdoql); Collection toDelete | |
Remove not working that was deleted. The fix was to do a PersistenceManager .flush() before trying to gather the Extent the second time. I did not think this would be required because I had PersistenceManager .ignoreCache=false ... showing a true failure? import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import javax | |
"Attempt to lock a non entity object" error; PersistenceManager pm = em.unwrap( PersistenceManager .class); pm ... their content (discarding changes if any): PersistenceManager pm = em.unwrap( PersistenceManager .class); pm.currentTransaction().setRestoreValues(true); The first option | |
ODB-WeakRefPurger threads not closing at all thread for every DB Connection (using JDO and PersistenceManager ) and not closing any of it. I've counted ... only PersistenceManager instances, not the PersistenceManagerFactory instances. Should I close both of them at the same time ? I can confirm that every PersistenceManager instance | |
Query vs Extent for retrieving data the PersistenceManager prior to accessing any of the fields in the data. The following code block prints ... .getPersistenceManagerFactory(getProperties(filename)); PersistenceManager pm = pmf.getPersistenceManager(); List beans ... out the contents of the bean to just prior to closing the PersistenceManager , it works as I would expect | |
Refreshing a dirty object causes permanent JDOOptimisticVerificationException.JDOOptimisticVerificationException; import javax.jdo. PersistenceManager ; import javax.jdo ... ; PersistenceManager pm = pmf.getPersistenceManager();   ... ; private static Object commitTestEntity( PersistenceManager pm) {   | |
Executing JUnit "all tests" throws "Object ... belongs to another EntityManager" Exception tried using ThreadLocal on the PersistenceManager created from a once-per-test-class ... , to no avail. I'm using JDO, and I only ever knowingly create one PersistenceManager ... only ever knowingly create one PersistenceManager During all tests, you probably create | |
evictAll() behavior PersistenceManager - it is useful only to see changes that have been committed by other persistence managers. To undo changes of the current PersistenceManager you will have to invoke pm.refreshAll ... PersistenceManager " Cool, that is exactly the effect I am looking for. What is the difference / characteristics | |
Can I Disable the Creation of the "log" Directory?. PersistenceManager ; import javax.jdo.PersistenceManagerFactory; import java.nio.file.Files; import java.nio.file ... .getPersistenceManagerFactory(properties); PersistenceManager persistenceManager = persistenceManagerFactory.getPersistenceManager(); persistenceManager .close(); persistenceManagerFactory.close(); if(Files.exists | |
Type xxx is not found (error 301) PersistenceManager from your EntityManager : em.unwrap( PersistenceManager .class ... ) 3) use jdo from jpa - is there a performance penalty for unwrapping PersistenceManager .class ... David Moshal 3) use jdo from jpa - is there a performance penalty for unwrapping PersistenceManager | |
Optimistic Locking); // Persist one Counter object: PersistenceManager pm = pmf.getPersistenceManager(); pm ... (); // First user retrieves and updates the Counter: PersistenceManager pm1 = pmf ... (); c1.increase(); // Second user retrieves and updates the Counter: PersistenceManager pm2 | |
Unable to delete the .odb file programatically code to delte the odb files PersistenceManager pm = ( PersistenceManager ... .setMultithreaded(true); PersistenceManager pm = pmf.getPersistenceManager(); if (codeLogger ... the lock so that database files can be deleted PersistenceManager pm = getPM | |
Rename Application StringIdentity; ... } PersistenceManager persistenceManager = ...; Transaction transaction = persistenceManager .currentTransaction(); try{ transaction.begin(); MyClass myPersistedClass = persistenceManager | |
ObjectDb.conf Defaults entries under "General". import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import ... .getPersistenceManagerFactory(properties); PersistenceManager persistenceManager = persistenceManagerFactory.getPersistenceManager(); persistenceManager .close(); persistenceManagerFactory.close(); } } CBE CBE Is it expected | |
JOD problems regarding detachCopy() Hi, I am new to JDO and trying to get the PersistenceManager .detachCopy functionality working. I ... =JDOHelper.getPersistenceManagerFactory(properties); PersistenceManager pm = pmf.getPersistenceManager ... "); PersistenceManagerFactory pmf =JDOHelper.getPersistenceManagerFactory(properties); PersistenceManager pm | |
Query and commit simultaneously EntityManager/ PersistenceManager instance then operations are executed sequentially ... / PersistenceManager level. To have real concurrent operations, you have to use ObjectDB 2.0 (and not ObjectDB 1.0) and you have to use multiple EntityManager/ PersistenceManager instances, usually one per thread | |
One transaction or two? If I have a large number of objects to delete and then add to a PersistenceManager ... this: PersistenceManager pm = m_pmFactory.getPersistenceManager(); try { pm.currentTransaction().begin(); pm ... / PersistenceManager is low. ObjectDB already manages a pool of underlying resources (e.g. connection | |
Sample JDO Architecture for Follow Up Questions PersistenceManagerFactory and a single PersistenceManager . * All connections to the server will be directed ... PersistenceManager , which is set for multiThreaded=true. * There are a limited number of threads ... application IDs (StringIdentity, case sensitive). PersistenceManager .getObjectById(myApplicationId | |
Replaying recorded requests...) Is this because I'm somehow not closing a transaction properly, or a PersistenceManager , or ... ( PersistenceManager's close doesn't close the database file). support Support Another possibility ... ( PersistenceManager's close doesn't close the database file). I have been closing the PersistenceManagerFactory in | |
Source not found error after downloading ObjectDB 2.3.7_04"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm ... . PersistenceManager ; import javax.jdo.PersistenceManagerFactory; public class Main {   ... ); PersistenceManager pm = pmf.getPersistenceManager(); / | |
Connection performace after upgrade to objectdb 2 and PersistenceManager : In objectdb 1 : PersistenceManagerFactory pmf = JDOHelper ... only 3ms and PersistenceManager pm = pmf.getPersistenceManager(); takes 40ms However, with objectdb 2 ... Gabbouch Just tried to create PersistenceManagerFactory and PersistenceManager for your database | |
Getting a list of all the entity class names). It requires a JDO' s PersistenceManager : String[] classNames = com.objectdb.Utilities.getClassNames(pm); In JPA you have to unwrap the EntityManager as a JDO PersistenceManager : String ... ( PersistenceManager .class)); This method remained from ObjectDB 1.x, but in JPA 2 applications the JPA Metamodel API | |
Database is locked when in use, it is mentioned for EntityManager. How do i achieve the same for PersistenceManager as I ... PersistenceManager to EntityManager . In ObjectDB the same object is an instance of both interfaces | |
Cascading makeTransient be garbage-collected even after the PersistenceManager is closed and they are no longer needed from ... method PersistenceManager .makeTransient(object, true) with a correct FetchPlan? The documentation | |
Problem with byte arrays in JDO - internal exception This code generates an internal exception: package spiffy.test; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import javax.jdo.PersistenceManagerFactory ... ) { PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("test.odb"); PersistenceManager | |
Problem with byte arrays in JDO - ClassCastException.List; import javax.jdo.JDOHelper; import javax.jdo. PersistenceManager ; import javax.jdo ... .getPersistenceManagerFactory("test.odb"); PersistenceManager pm = pmf | |
object creation during pmf.getPersistenceManager() PersistenceManager / EntityManager instantiation operations, which are lighter) - in an ordinary ... ; } EntityWithJdoConstructor( PersistenceManager pm) {   | |
Setting temp directory location in ObjectDB HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax ... ); pmf.setNontransactionalWrite(false); PersistenceManager pm = pmf.getPersistenceManager(); When pmf | |
Access to client/server database from multiple applications;set to false or a new PersistenceManager for new operations (i.e. PersistenceManager | |
ObjectDB is opening too many sockets If you open connections (create EntityManager / PersistenceManager instances) without closing ... ;PersistenceManagerFactory and PersistenceManager with no success. Can you explain more, how to call  | |
EntityTransaction.commit() does not release a pessimistic lock . You can also use this JDO feature from JPA when you use ObjectDB. Giving an EntityManager em : PersistenceManager pm = em.unwrap( PersistenceManager .class); pm.setDetachAllOnCommit(true); In this case entity objects | |
pesimistic Lock semantic() { PersistenceManager pm1 = null; PersistenceManager pm2 = null; try { pm1 = pmf.getPersistenceManager | |
ClassCastException: cannot be cast to com.objectdb.spi.TrackableUserType store( Object instance ) { PersistenceManager pm = connect() def transaction = pm.currentTransaction ... the PersistenceManager (or EntityManager ) you have to close the PersistenceManagerFactory (or EntityManagerFactory | |
Missing Data on Retrieval (0, null values)().isLoaded(m_object)) em.unwrap( PersistenceManager .class).retrieve(obj); Note | |
Change Sequcene Id could I change sequcence id ? allocating small value may not be effect. or something other ways ? javax.jdo.datastore.Sequence seq = em.unwrap(javax.jdo. PersistenceManager .class).getSequence("MyEntity$identity"); long currentValue = seq.currentValue(); // I would like to change currentValue | |
Replicated cluster recovery and two 2 reading data but all hangs up on geting PersistenceManager from the PMF, without cluter | |
Navigation to Collection Elements / PersistenceManager is open. If the referenced objects are not already in memory they will be loaded | |
How to do an Offline Database Backup? the PersistenceManagerFactory (not just the PersistenceManager instances) and avoid opening | |
JDO Predefined ID Classes PersistenceManager methods ( getObjectId , getObjectById , getObjectByIds , etc.) to represent objects | |
JDO External Listeners The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level. | |
Internal error; PersistenceManager by multiple threads and / or other PersistenceManager instances. You wrote: Both threads ... of them uses only objects from its own PersistenceManager ? There are several things ... guess for a possible cause of this exception is sharing entity objects of one PersistenceManager by | |
I can't get cascading delete to work in JDO; PersistenceManager pm = pmf.getPersistenceManager(); pm ... ; public static void persist( PersistenceManager pm) { pm.makePersistent(   ... "))); } public static void delete( PersistenceManager pm) {   |